20 #ifndef FDMODELJOURNAL_HPP
21 #define FDMODELJOURNAL_HPP
23 #include <QAbstractTableModel>
27 #include "dataDefinitions.hpp"
55 QVariant
data(
const FdItemJournal_p entry, JournalColumn column)
const;
56 QVariant
data(
const QModelIndex &index,
int role = Qt::DisplayRole)
const;
57 void setData(FdItemJournal_p entry, JournalColumn column,
const QVariant &value);
58 bool setData(
const QModelIndex &index,
const QVariant &value,
int role = Qt::EditRole);
59 QVariant
headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
60 Qt::ItemFlags
flags(
const QModelIndex &index)
const;
61 bool removeRows(
int row,
int count,
const QModelIndex &parent = QModelIndex());
62 int rowCount(
const QModelIndex &parent = QModelIndex())
const;
63 int columnCount(
const QModelIndex &parent = QModelIndex())
const;
67 QModelIndex
itemIndex(FdItemJournal_p entry);
70 QStringList
labels()
const;
78 bool isUsed(FdItemCoa_p account)
const;
79 QDomElement
toXml(QDomDocument& document)
const;
82 void error(
const QModelIndex& index);
85 QModelIndex
addEntry(
const QModelIndex& selected = QModelIndex());
93 #endif // FDMODELJOURNAL_HPP