]> ToastFreeware Gitweb - toast/confclerk.git/blobdiff - src/mvc/event.h
room view added - need to test it
[toast/confclerk.git] / src / mvc / event.h
index 8eaedc170286c626f1b0e7bc04c311da6e1f1459..6c82a2bea3d58bd5214edddc42bd84847a85a304 100644 (file)
@@ -26,6 +26,7 @@ public:
     static QList<Event> getSearchResultByDate(const QDate& date, int conferenceId, QString orderBy);
     static QList<Event> nowEvents(int conferenceId, QString orderBy); // get events scheduled NOW
     static QList<Event> getByTrack(int id);
     static QList<Event> getSearchResultByDate(const QDate& date, int conferenceId, QString orderBy);
     static QList<Event> nowEvents(int conferenceId, QString orderBy); // get events scheduled NOW
     static QList<Event> getByTrack(int id);
+    static QList<Event> getByDateAndRoom(const QDate& date, int conferenceId);
 public:
     int id() const { return value("id").toInt(); }
     int conferenceId() const { return value("xid_conference").toInt(); }
 public:
     int id() const { return value("id").toInt(); }
     int conferenceId() const { return value("xid_conference").toInt(); }
@@ -44,6 +45,7 @@ public:
     QString description() const { return value("description").toString(); }
     // records from other tables associated with 'id'
     QString room() const;
     QString description() const { return value("description").toString(); }
     // records from other tables associated with 'id'
     QString room() const;
+    int roomId() const;
     QStringList persons() const;
 
     void setId(int id) { setValue("id", id); }
     QStringList persons() const;
 
     void setId(int id) { setValue("id", id); }