akonadi
Akonadi::SubscriptionModel Class Reference
#include <subscriptionmodel_p.h>
Inheritance diagram for Akonadi::SubscriptionModel:

Public Types | |
enum | Roles { SubscriptionChangedRole = CollectionModel::UserRole + 1 } |
![]() | |
enum | Roles { OldCollectionIdRole = Qt::UserRole + 1, OldCollectionRole = Qt::UserRole + 2, CollectionIdRole = Qt::UserRole + 10, CollectionRole = Qt::UserRole + 11, UserRole = Qt::UserRole + 42 } |
Signals | |
void | loaded () |
Public Member Functions | |
SubscriptionModel (QObject *parent=0) | |
~SubscriptionModel () | |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
Qt::ItemFlags | flags (const QModelIndex &index) const |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
void | showHiddenCollection (bool showHidden) |
Collection::List | subscribed () const |
Collection::List | unsubscribed () const |
![]() | |
CollectionModel (QObject *parent=0) | |
virtual | ~CollectionModel () |
virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
virtual bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) |
void | fetchCollectionStatistics (bool enable) |
virtual QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
void | includeUnsubscribed (bool include=true) |
virtual QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
virtual QMimeData * | mimeData (const QModelIndexList &indexes) const |
virtual QStringList | mimeTypes () const |
virtual QModelIndex | parent (const QModelIndex &index) const |
virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
virtual bool | setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::EditRole) |
virtual Qt::DropActions | supportedDropActions () const |
Additional Inherited Members | |
![]() | |
Collection | collectionForId (Collection::Id id) const |
Detailed Description
- Deprecated:
- This should be replaced by something based on EntityTreeModel
An extended collection model used for the subscription dialog.
Definition at line 34 of file subscriptionmodel_p.h.
Member Enumeration Documentation
Additional roles.
Enumerator | |
---|---|
SubscriptionChangedRole |
Indicate the subscription status has been changed. |
Definition at line 39 of file subscriptionmodel_p.h.
Constructor & Destructor Documentation
|
explicit |
Create a new subscription model.
- Parameters
-
parent The parent object.
Definition at line 84 of file subscriptionmodel.cpp.
SubscriptionModel::~SubscriptionModel | ( | ) |
Destructor.
Definition at line 93 of file subscriptionmodel.cpp.
Member Function Documentation
|
signal |
Emitted when the collection model is fully loaded.
void SubscriptionModel::showHiddenCollection | ( | bool | showHidden | ) |
- Parameters
-
showHidden shows hidden collection if set as true
- Since
- : 4.9
Definition at line 183 of file subscriptionmodel.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.