kalarm
itemlistmodel.cpp
  
Go to the documentation of this file.
   41     KSelectionProxyModel* selectionModel = new KSelectionProxyModel(CollectionControlModel::instance()->selectionModel(), this);
   59     connect(AkonadiModel::instance(), SIGNAL(collectionStatusChanged(Akonadi::Collection,AkonadiModel::Change,QVariant,bool)),
   97 void ItemListModel::collectionStatusChanged(const Collection& collection, AkonadiModel::Change change, const QVariant&, bool inserted)
  116     CalEvent::Type type = static_cast<CalEvent::Type>(sourceModel()->data(sourceIndex, AkonadiModel::StatusRole).toInt());
  154     QModelIndexList list = match(QModelIndex(), AkonadiModel::ItemIdRole, itemId, 1, Qt::MatchExactly | Qt::MatchRecursive);
  235     int type = sourceModel()->data(sourceModel()->index(sourceRow, 0, sourceParent), AkonadiModel::StatusRole).toInt();
  313     KAEvent::Actions actions = static_cast<KAEvent::Actions>(sourceModel()->data(sourceIndex, AkonadiModel::AlarmActionsRole).toInt());
  323 QVariant TemplateListModel::headerData(int section, Qt::Orientation orientation, int role) const
  347     KAEvent::Actions actions = static_cast<KAEvent::Actions>(ItemListModel::data(index, AkonadiModel::AlarmActionsRole).toInt());
Definition: akonadimodel.h:68
virtual bool filterAcceptsColumn(int sourceCol, const QModelIndex &sourceParent) const 
Definition: itemlistmodel.cpp:239
virtual int columnCount(const QModelIndex &parent=QModelIndex()) const 
Definition: itemlistmodel.cpp:63
virtual bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const 
Definition: itemlistmodel.cpp:306
virtual bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const 
Definition: itemlistmodel.cpp:229
Definition: akonadimodel.h:52
Definition: itemlistmodel.h:133
TemplateListModel(QObject *parent=0)
Definition: itemlistmodel.cpp:263
static bool isEnabled(const Akonadi::Collection &, CalEvent::Type)
Return whether a collection is enabled (and valid). 
Definition: collectionmodel.cpp:714
ItemListModel(CalEvent::Types allowed, QObject *parent=0)
Constructor. 
Definition: itemlistmodel.cpp:36
static CollectionControlModel * instance()
Definition: collectionmodel.cpp:653
void setAlarmActionFilter(KAEvent::Actions)
Set which alarm action types should be included in the model. 
Definition: itemlistmodel.cpp:286
virtual Qt::ItemFlags flags(const QModelIndex &) const 
Definition: itemlistmodel.cpp:342
Definition: akonadimodel.h:72
virtual QVariant headerData(int section, Qt::Orientation, int role=Qt::DisplayRole) const 
Definition: itemlistmodel.cpp:323
void setEventTypeFilter(CalEvent::Types types)
Set a filter to restrict the event types to a subset of those specified in the constructor. 
Definition: itemlistmodel.cpp:215
virtual bool filterAcceptsColumn(int sourceCol, const QModelIndex &sourceParent) const 
Definition: itemlistmodel.cpp:317
QModelIndex eventIndex(Akonadi::Item::Id) const 
Definition: itemlistmodel.cpp:152
void haveEventsStatus(bool have)
Signal emitted when either the first item is added to the model, or when the last item is deleted fro...
Definition: akonadimodel.h:57
virtual bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const 
Definition: itemlistmodel.cpp:110
Definition: itemlistmodel.h:138
Definition: akonadimodel.h:69
KAEvent::Actions setAlarmActionsEnabled() const 
Set which alarm types should be shown as disabled in the model. 
Definition: itemlistmodel.h:158
static TemplateListModel * all()
Return the model containing all alarm templates. 
Definition: itemlistmodel.cpp:276
virtual QVariant headerData(int section, Qt::Orientation, int role=Qt::DisplayRole) const 
Definition: itemlistmodel.cpp:244
bool haveEvents() const 
Determine whether the model contains any items. 
Definition: itemlistmodel.cpp:179
Definition: itemlistmodel.h:93
virtual Qt::ItemFlags flags(const QModelIndex &) const 
Definition: itemlistmodel.cpp:142
Definition: akonadimodel.h:48
static AlarmListModel * all()
Return the model containing all active and archived alarms. 
Definition: itemlistmodel.cpp:205
Definition: itemlistmodel.h:87
Definition: itemlistmodel.h:38
Definition: itemlistmodel.h:92
Definition: akonadimodel.h:55
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:59:10 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 22:59:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
    KDE API Reference