4 #include <QAbstractItemModel>
8 class EventModel : public QAbstractItemModel
12 QVariant data(const QModelIndex& index, int role) const;
13 QModelIndex index(int row, int column, const QModelIndex & parent = QModelIndex()) const;
14 QModelIndex parent ( const QModelIndex & index ) const;
15 int columnCount ( const QModelIndex & parent = QModelIndex() ) const;
16 int rowCount ( const QModelIndex & parent = QModelIndex() ) const;
17 void loadEvents(const QDate &aDate, int aConferenceId); // loads Events from the DB
18 void loadFavEvents(const QDate &aDate, int aConferenceId); // loads Favourite events from the DB
23 Group(const QString & title,
24 int firstEventIndex) :
27 mFirstEventIndex(firstEventIndex),
37 void createTimeGroups();
42 QHash<int, int> mParents;
45 #endif // EVENTMODEL_H