Changeset 3a09de6 in confclerk_git for src/mvc/event.cpp


Ignore:
Timestamp:
04/16/13 22:52:25 (9 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master, qt5
Children:
e619be9
Parents:
097e1f4
Message:

Alarms are reported via QSystemTray now (see ticket #46).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mvc/event.cpp

    r097e1f4 r3a09de6  
    9595
    9696
     97QList<Event> Event::getImminentAlarmEvents(int maxSecToAlarm, int conferenceId) {
     98    QSqlQuery query;
     99    query.prepare(selectQuery() + "WHERE xid_conference = :conf AND (start < :start AND alarm = 1) ORDER BY start, duration");
     100    query.bindValue(":conf", conferenceId);
     101    query.bindValue(":start", convertToDb(QDateTime::currentDateTime().addSecs(maxSecToAlarm), QVariant::DateTime));
     102    return load(query);
     103}
     104
     105
    97106QList<Event> Event::getFavByDate(const QDate& date, int conferenceId)
    98107{
Note: See TracChangeset for help on using the changeset viewer.