int rowCount ( const QModelIndex & parent = QModelIndex() ) const;
void loadEvents(const QDate &aDate, int aConferenceId); // loads Events from the DB
void loadFavEvents(const QDate &aDate, int aConferenceId); // loads Favourite events from the DB
- void loadEventsByTrack(const QDate &aDate, int aConferenceId); // loads Events grouped by Track from the DB
+ void loadEventsByTrack(const QDate &aDate, int aConferenceId); // loads Events sorted by Track id and Event start from the DB
int loadSearchResultEvents(const QDate &aDate, int aConferenceId);
- // a method to force 'EventModel' emit signal 'dataChanged()'
- // a 'view', eg. 'TreeView' listens for this signal and redraws changed items(indexes)
- void emitDataChangedSignal(const QModelIndex &aTopLeft, const QModelIndex &aBottomRight);
+ void loadNowEvents(int aConferenceId); // loads Now events from the DB
+ void loadEventsByRoom(const QDate &aDate, int aConferenceId);
+ void loadConflictEvents(int aEventId, int aConferenceId); // loads events in conflict
private:
struct Group
private:
void createTimeGroups();
void createTrackGroups();
+ void createTrackGroupsNew();
void clearModel();
+ void createRoomGroups();
+
+public slots:
+ void updateModel(int aEventId);
private:
QList<Event> mEvents;