Changeset 066b41f in confclerk_git for src/mvc/event.cpp


Ignore:
Timestamp:
10/17/11 22:50:54 (11 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master, qt5
Children:
11d7ec5
Parents:
1ca13ef
Message:

Removed unused nowEvent functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mvc/event.cpp

    r1ca13ef r066b41f  
    7878}
    7979
    80 QList<Event> Event::nowEvents(int conferenceId, QString orderBy)
    81 {
    82     uint curTime_t =  QDateTime(QDate::currentDate(),QTime::currentTime(),Qt::UTC).toTime_t();
    83     //uint curTime_t = 1265457610; // for testing
    84 
    85     QSqlQuery query;
    86     query.prepare(selectQuery() + QString("WHERE xid_conference = :conf AND start <= :now1 AND ( start + duration ) > :now2 ORDER BY %1").arg(orderBy));
    87     query.bindValue(":conf", conferenceId);
    88     query.bindValue(":now1", convertToDb(curTime_t, QVariant::DateTime));
    89     query.bindValue(":now2", convertToDb(curTime_t, QVariant::DateTime));
    90 
    91     return load(query);
    92 }
    93 
    94 QList<Event> Event::conflictEvents(int aEventId, int conferenceId)
    95 {
     80
     81QList<Event> Event::conflictEvents(int aEventId, int conferenceId) {
    9682    QSqlQuery query;
    9783    Event event = Event::getById(aEventId,conferenceId);
     
    10995    return load(query);
    11096}
     97
    11198
    11299QList<Event> Event::getFavByDate(const QDate& date, int conferenceId)
Note: See TracChangeset for help on using the changeset viewer.