kalarm
#include <itemlistmodel.h>

Public Types | |
| enum | { TimeColumn = 0, TimeToColumn, RepeatColumn, ColourColumn, TypeColumn, TextColumn, ColumnCount } |
Public Member Functions | |
| AlarmListModel (QObject *parent=0) | |
| ~AlarmListModel () | |
| virtual int | columnCount (const QModelIndex &=QModelIndex()) const |
| CalEvent::Types | eventTypeFilter () const |
| virtual QVariant | headerData (int section, Qt::Orientation, int role=Qt::DisplayRole) const |
| void | setEventTypeFilter (CalEvent::Types types) |
Public Member Functions inherited from ItemListModel | |
| ItemListModel (CalEvent::Types allowed, QObject *parent=0) | |
| KAEvent | event (int row) const |
| KAEvent | event (const QModelIndex &) const |
| QModelIndex | eventIndex (Akonadi::Item::Id) const |
| virtual Qt::ItemFlags | flags (const QModelIndex &) const |
| bool | haveEvents () const |
| CalEvent::Types | includedTypes () const |
Static Public Member Functions | |
| static AlarmListModel * | all () |
Static Public Member Functions inherited from ItemListModel | |
| static int | iconWidth () |
Protected Member Functions | |
| virtual bool | filterAcceptsColumn (int sourceCol, const QModelIndex &sourceParent) const |
| virtual bool | filterAcceptsRow (int sourceRow, const QModelIndex &sourceParent) const |
Additional Inherited Members | |
Signals inherited from ItemListModel | |
| void | haveEventsStatus (bool have) |
Detailed Description
Definition at line 87 of file itemlistmodel.h.
Member Enumeration Documentation
| anonymous enum |
| Enumerator | |
|---|---|
| TimeColumn | |
| TimeToColumn | |
| RepeatColumn | |
| ColourColumn | |
| TypeColumn | |
| TextColumn | |
| ColumnCount | |
Definition at line 91 of file itemlistmodel.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 193 of file itemlistmodel.cpp.
| AlarmListModel::~AlarmListModel | ( | ) |
Definition at line 199 of file itemlistmodel.cpp.
Member Function Documentation
|
static |
Return the model containing all active and archived alarms.
Definition at line 205 of file itemlistmodel.cpp.
|
inlinevirtual |
Reimplemented from ItemListModel.
Definition at line 113 of file itemlistmodel.h.
|
inline |
Return the filter set by setEventTypeFilter().
- Returns
- all event types included in the model
Definition at line 111 of file itemlistmodel.h.
|
protectedvirtual |
Definition at line 239 of file itemlistmodel.cpp.
|
protectedvirtual |
Reimplemented from ItemListModel.
Definition at line 229 of file itemlistmodel.cpp.
|
virtual |
Definition at line 244 of file itemlistmodel.cpp.
| void AlarmListModel::setEventTypeFilter | ( | CalEvent::Types | types | ) |
Set a filter to restrict the event types to a subset of those specified in the constructor.
- Parameters
-
types the event types to be included in the model
Definition at line 215 of file itemlistmodel.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:59:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference
Public Member Functions inherited from