kalarm
EventListModel Class Reference
#include <eventlistmodel.h>

Detailed Description
Definition at line 41 of file eventlistmodel.h.
Public Types | |
| enum | { TimeColumn, TimeToColumn, RepeatColumn, ColourColumn, TypeColumn, TextColumn, TemplateNameColumn, ColumnCount } |
| enum | { StatusRole = Qt::UserRole, ValueRole, SortRole } |
Public Slots | |
| void | reload () |
Public Member Functions | |
| void | addEvent (KAEvent *) |
| void | addEvents (const KAEvent::List &) |
| virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| virtual QVariant | data (const QModelIndex &, int role=Qt::DisplayRole) const |
| QModelIndex | eventIndex (const QString &eventId) const |
| QModelIndex | eventIndex (const KAEvent *) const |
| virtual Qt::ItemFlags | flags (const QModelIndex &) const |
| virtual QVariant | headerData (int section, Qt::Orientation, int role=Qt::DisplayRole) const |
| virtual QModelIndex | index (int row, int column=0, const QModelIndex &parent=QModelIndex()) const |
| void | removeEvent (const QString &eventId) |
| void | removeEvent (const KAEvent *event) |
| void | removeResource (AlarmResource *) |
| virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| virtual bool | setData (const QModelIndex &, const QVariant &value, int role=Qt::EditRole) |
| bool | updateEvent (const QString &oldId, KAEvent *newEvent) |
| bool | updateEvent (const QString &eventId) |
| bool | updateEvent (KAEvent *event) |
| ~EventListModel () | |
Static Public Member Functions | |
| static EventListModel * | alarms () |
| static KAEvent * | event (const QModelIndex &) |
| static int | iconWidth () |
| static EventListModel * | templates () |
Member Enumeration Documentation
| anonymous enum |
- Enumerator:
-
TimeColumn TimeToColumn RepeatColumn ColourColumn TypeColumn TextColumn TemplateNameColumn ColumnCount
Definition at line 45 of file eventlistmodel.h.
| anonymous enum |
Constructor & Destructor Documentation
| EventListModel::~EventListModel | ( | ) |
Definition at line 74 of file eventlistmodel.cpp.
Member Function Documentation
| void EventListModel::addEvent | ( | KAEvent * | event | ) |
Definition at line 612 of file eventlistmodel.cpp.
| void EventListModel::addEvents | ( | const KAEvent::List & | events | ) |
Definition at line 625 of file eventlistmodel.cpp.
| EventListModel * EventListModel::alarms | ( | ) | [static] |
Definition at line 55 of file eventlistmodel.cpp.
| int EventListModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const [virtual] |
Definition at line 115 of file eventlistmodel.cpp.
| QVariant EventListModel::data | ( | const QModelIndex & | index, | |
| int | role = Qt::DisplayRole | |||
| ) | const [virtual] |
Definition at line 129 of file eventlistmodel.cpp.
| KAEvent * EventListModel::event | ( | const QModelIndex & | index | ) | [static] |
Definition at line 686 of file eventlistmodel.cpp.
| QModelIndex EventListModel::eventIndex | ( | const QString & | eventId | ) | const |
Definition at line 588 of file eventlistmodel.cpp.
| QModelIndex EventListModel::eventIndex | ( | const KAEvent * | event | ) | const |
Definition at line 601 of file eventlistmodel.cpp.
| Qt::ItemFlags EventListModel::flags | ( | const QModelIndex & | index | ) | const [virtual] |
Definition at line 332 of file eventlistmodel.cpp.
| QVariant EventListModel::headerData | ( | int | section, | |
| Qt::Orientation | orientation, | |||
| int | role = Qt::DisplayRole | |||
| ) | const [virtual] |
Definition at line 302 of file eventlistmodel.cpp.
| static int EventListModel::iconWidth | ( | ) | [inline, static] |
Definition at line 66 of file eventlistmodel.h.
| QModelIndex EventListModel::index | ( | int | row, | |
| int | column = 0, |
|||
| const QModelIndex & | parent = QModelIndex() | |||
| ) | const [virtual] |
Definition at line 122 of file eventlistmodel.cpp.
| void EventListModel::reload | ( | ) | [slot] |
Definition at line 567 of file eventlistmodel.cpp.
| void EventListModel::removeEvent | ( | const QString & | eventId | ) | [inline] |
Definition at line 75 of file eventlistmodel.h.
| void EventListModel::removeEvent | ( | const KAEvent * | event | ) | [inline] |
Definition at line 74 of file eventlistmodel.h.
| void EventListModel::removeResource | ( | AlarmResource * | resource | ) |
Definition at line 530 of file eventlistmodel.cpp.
| int EventListModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const [virtual] |
Definition at line 108 of file eventlistmodel.cpp.
| bool EventListModel::setData | ( | const QModelIndex & | ix, | |
| const QVariant & | value, | |||
| int | role = Qt::EditRole | |||
| ) | [virtual] |
Definition at line 290 of file eventlistmodel.cpp.
| EventListModel * EventListModel::templates | ( | ) | [static] |
Definition at line 67 of file eventlistmodel.cpp.
Definition at line 660 of file eventlistmodel.cpp.
| bool EventListModel::updateEvent | ( | const QString & | eventId | ) | [inline] |
Definition at line 72 of file eventlistmodel.h.
| bool EventListModel::updateEvent | ( | KAEvent * | event | ) | [inline] |
Definition at line 71 of file eventlistmodel.h.
The documentation for this class was generated from the following files:
KDE 4.1 API Reference