void EventModel::clearModel()
{
- // qDebug() << __PRETTY_FUNCTION__ << this << mEvents.count();
mGroups.clear();
mEvents.clear();
mParents.clear();
// check for existence of the conference in the DB
if(Conference::getAll().count())
{
- qDebug() << "Loading Conference Data: [" << Conference::getById(aConferenceId).title() << "] " << aDate;
mEvents = Event::getByDate(QDate(aDate.year(), aDate.month(), aDate.day()), aConferenceId, "start");
}
createTimeGroups();
// check for existence of the conference in the DB
if(Conference::getAll().count())
{
- qDebug() << "Loading FAV Conference Data: [" << Conference::getById(aConferenceId).title() << "] " << aDate;
mEvents = Event::getFavByDate(QDate(aDate.year(), aDate.month(), aDate.day()), aConferenceId);
}
createTimeGroups();
// check for existence of the conference in the DB
if(Conference::getAll().count())
{
- // qDebug() << "Loading search result Data: [" << Conference::getById(aConferenceId).title() << "] " << aDate;
try{
mEvents = Event::getSearchResultByDate(QDate(aDate.year(), aDate.month(), aDate.day()), aConferenceId, "start");
}
clearModel();
if (Conference::getAll().count())
{
- qDebug() << "Loading Conference Data (by Track): [" << Conference::getById(aConferenceId).title() << "] " << aDate;
mEvents = Event::getByDate(QDate(aDate.year(), aDate.month(), aDate.day()), aConferenceId, "xid_track, start");
}
createTrackGroups();
clearModel();
if (Conference::getAll().count())
{
- qDebug() << "Loading Conference Data (by Room): [" << Conference::getById(aConferenceId).title() << "] " << aDate;
mEvents = Event::getByDateAndRoom(QDate(aDate.year(), aDate.month(), aDate.day()), aConferenceId);
}
createRoomGroups();
// check for existence of the conference in the DB
if(Conference::getAll().count())
{
- qDebug() << "Loading Conference Data: [" << Conference::getById(aConferenceId).title() << "] scheduled NOW";
mEvents = Event::nowEvents(aConferenceId, "start");
}
createTimeGroups();
// check for existence of the conference in the DB
if(Conference::getAll().count())
{
- qDebug() << "Loading Conference Data: [" << Conference::getById(aConferenceId).title() << "] in conflict with " << aEventId;
mEvents = Event::conflictEvents(aEventId, aConferenceId);
}
createTimeGroups();