20 #ifndef FDMODELCOA_HPP
21 #define FDMODELCOA_HPP
23 #include <QAbstractItemModel>
26 #include <QTextStream>
29 #include "dataDefinitions.hpp"
73 QVariant
data(FdItemCoa_p
item, CoaColumn column)
const;
74 QVariant
data(
const QModelIndex &
index,
int role = Qt::DisplayRole)
const;
75 void setData(FdItemCoa_p, CoaColumn column,
const QVariant &value);
76 bool setData(
const QModelIndex &
index,
const QVariant &value,
int role = Qt::EditRole);
77 QVariant
headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
78 Qt::ItemFlags
flags(
const QModelIndex &
index)
const;
81 QModelIndex
index(
int row,
int column,
const QModelIndex &
parent = QModelIndex())
const;
82 QModelIndex
index(FdItemCoa_p
item)
const;
83 QModelIndex
index(FdItemCoa_p
item, CoaColumn column)
const;
86 QMimeData*
mimeData(
const QModelIndexList &indexes)
const;
87 bool dropMimeData(
const QMimeData *
data, Qt::DropAction action,
int row,
int column,
const QModelIndex &
parent);
95 FdItemCoa_p
item(
const QModelIndex &
index)
const;
106 QList<FdItemCoa_p>
accounts()
const;
107 FdItemCoa_p
itemById(QString
id)
const;
110 QDomElement
toXml(QDomDocument& document)
const;
113 QModelIndex
addItem(
const QModelIndex& selected);
118 #endif // FDMODELCOA_HPP