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

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

TodoFlatModel Class Reference

List of all members.

Public Types

enum  Column {
  Summary = 0, Categories, ParentSummary, DueDate,
  RowType, RemoteId, ParentRemoteId, LastColumn = ParentRemoteId
enum  ItemType { StandardTodo = 0, ProjectTodo, FolderTodo, Category }


void collectionChanged (const Akonadi::Collection &collection)

Public Member Functions

Akonadi::Collection collection () const
virtual QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
virtual Qt::ItemFlags flags (const QModelIndex &index) const
QModelIndex indexForItem (const Akonadi::Item &item, const int column) const
Akonadi::Item itemForIndex (const QModelIndex &index) const
virtual QStringList mimeTypes () const
void setCollection (const Akonadi::Collection &collection)
virtual bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
Qt::DropActions supportedDropActions () const
 TodoFlatModel (QObject *parent=0)

Protected Member Functions

virtual bool filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const

Private Slots

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

bool isAncestorOf (const QString &ancestor, const QString &child)
Akonadi::ItemModel * itemModel () const
void setSourceModel (QAbstractItemModel *sourceModel)
ItemType todoType (const QString &remoteId, bool examinateSiblings=true) const

Private Attributes

QHash< QString, QStringList > m_childrenMap
QHash< QString, QString > m_parentMap
QHash< Akonadi::Entity::Id,
QString > 
QHash< QString,
Akonadi::Entity::Id > 

Detailed Description

Definition at line 38 of file todoflatmodel.h.

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

Generated by  Doxygen 1.6.0   Back to index