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>
34class 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))
FreeBusyManager::Singleton.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by
doxygen 1.9.5 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.