akonadi
20 #ifndef AKONADI_TAGMODEL_H
21 #define AKONADI_TAGMODEL_H
23 #include <QtCore/QModelIndex>
25 #include "akonadi_export.h"
26 #include <akonadi/tag.h>
32 class TagModelPrivate;
34 class AKONADI_EXPORT TagModel :
public QAbstractItemModel
40 IdRole = Qt::UserRole + 1,
47 UserRole = Qt::UserRole + 500,
48 TerminalUserRole = 2000,
52 explicit TagModel( Monitor *recorder, QObject *parent );
55 virtual int columnCount(
const QModelIndex &parent = QModelIndex() )
const;
56 virtual int rowCount(
const QModelIndex &parent = QModelIndex() )
const;
58 virtual QVariant data(
const QModelIndex &index,
int role )
const;
59 virtual QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole )
const;
61 virtual Qt::ItemFlags flags(
const QModelIndex &index )
const;
68 virtual QModelIndex parent(
const QModelIndex &child )
const;
69 virtual QModelIndex index(
int row,
int column,
const QModelIndex &parent = QModelIndex() )
const;
72 Q_DECLARE_PRIVATE( TagModel )
73 TagModelPrivate * d_ptr;
75 TagModel( Monitor *recorder, TagModelPrivate *dd, QObject *parent = 0 );
78 virtual
bool insertRows(
int,
int, const QModelIndex & = QModelIndex());
79 virtual
bool insertColumns(
int,
int, const QModelIndex & = QModelIndex());
80 virtual
bool removeColumns(
int,
int, const QModelIndex & = QModelIndex());
81 virtual
bool removeRows(
int,
int, const QModelIndex & = QModelIndex());
83 Q_PRIVATE_SLOT(d_func(),
void tagsFetched(const Akonadi::Tag::List &tags))
84 Q_PRIVATE_SLOT(d_func(),
void tagsFetchDone(KJob *job))
85 Q_PRIVATE_SLOT(d_func(),
void monitoredTagAdded(const Akonadi::Tag &tag))
86 Q_PRIVATE_SLOT(d_func(),
void monitoredTagRemoved(const Akonadi::Tag &tag))
87 Q_PRIVATE_SLOT(d_func(),
void monitoredTagChanged(const Akonadi::Tag &tag))
91 #endif // AKONADI_TAGMODEL_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Mon Jul 21 2014 08:03:56 by
doxygen 1.8.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.