Logo Search packages:      
Sourcecode: zanshin version File versions  Download package

Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes

TodoCategoriesModel Class Reference

List of all members.

Signals

void collectionChanged (const Akonadi::Collection &collection)

Public Member Functions

bool addCategory (const QString &name, const QModelIndex &parent=QModelIndex())
QString categoryForIndex (const QModelIndex &index) const
Akonadi::Collection collection () const
virtual int columnCount (const QModelIndex &parent=QModelIndex()) const
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
virtual bool dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent)
virtual Qt::ItemFlags flags (const QModelIndex &index) const
virtual QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
virtual QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
QList< QModelIndex > indexesForItem (const Akonadi::Item &item, int column=0) const
QModelIndex indexForCategory (const QString &category, int column=0) const
Akonadi::Item itemForIndex (const QModelIndex &index) const
QList< QModelIndex > mapFromSourceAll (const QModelIndex &sourceIndex) const
virtual QModelIndex mapToSource (const QModelIndex &proxyIndex) const
virtual QMimeData * mimeData (const QModelIndexList &indexes) const
virtual QStringList mimeTypes () const
virtual QModelIndex parent (const QModelIndex &index) const
bool removeCategory (const QString &name)
virtual int rowCount (const QModelIndex &parent=QModelIndex()) const
void setCollection (const Akonadi::Collection &collection)
virtual bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
virtual void setSourceModel (QAbstractItemModel *sourceModel)
Qt::DropActions supportedDropActions () const
 TodoCategoriesModel (QObject *parent=0)

Private Slots

void onSourceCollectionChanged (const Akonadi::Collection &collection)
void onSourceDataChanged (const QModelIndex &begin, const QModelIndex &end)
void onSourceInsertRows (const QModelIndex &sourceIndex, int begin, int end)
void onSourceRemoveRows (const QModelIndex &sourceIndex, int begin, int end)

Private Member Functions

void deserializeCategories ()
TodoFlatModelflatModel () const
QModelIndex indexForNode (TodoCategoryTreeNode *node, int column=0) const
void loadCategory (TodoCategoryTreeNode *node, TodoCategoryTreeNode *parent=0)
void loadDefaultCategories ()
virtual QModelIndex mapFromSource (const QModelIndex &sourceIndex) const
TodoCategoryTreeNodenodeForIndex (const QModelIndex &index) const
void serializeCategories ()

Private Attributes

QHash< QString,
TodoCategoryTreeNode * > 
m_categoryMap
Akonadi::Collection m_collection
QHash< Akonadi::Entity::Id,
QList< TodoCategoryTreeNode * > > 
m_itemMap
QList< TodoCategoryTreeNode * > m_roots

Detailed Description

Definition at line 41 of file todocategoriesmodel.h.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index