]> ToastFreeware Gitweb - toast/confclerk.git/blobdiff - src/mvc/conference.h
removed appsettings
[toast/confclerk.git] / src / mvc / conference.h
index c6c8e017746b1384dd6b5cf4e64638ece0a6e289..deb9280730ee246200b569c01eb89fae6de4602f 100644 (file)
@@ -16,6 +16,7 @@ public:
 public:
     static Conference getById(int id);
     static QList<Conference> getAll();
+    static int activeConference();
 
 public:
     int id() const { return value("id").toInt(); }
@@ -28,19 +29,19 @@ public:
     int days() const { return value("days").toInt(); }
     int dayChange() const { return value("day_change").toInt(); } // in seconds from 00:00
     int timeslotDuration() const { return value("timeslot_duration").toInt(); } // in seconds
+    bool isActive() const { return value("active").toBool(); }
 
     void setId(int id) { setValue("id", id); }
     void setTitle(const QString& title) { setValue("title", title); }
     void setSubtitle(const QString& subtitle) { setValue("subtitle", subtitle); }
     void setVenue(const QString& venue) { setValue("venue", venue); }
     void setCity(const QString& city) { setValue("city", city); }
-    //void setStart(const QDate& start) { setValue("start", QDateTime(start)); }
     void setStart(const QDate& start) { setValue("start", start); }
-    //void setEnd(const QDate& end) { setValue("end", QDateTime(end)); }
     void setEnd(const QDate& end) { setValue("end", end); }
     void setDays(int days) { setValue("days", days); }
     void setDayChange(int dayChange) { setValue("day_change", dayChange); }
     void setTimeslotDuration(int timeslotDuration) { setValue("timeslot_duration", timeslotDuration); }
+    void setActive(bool active) { setValue("active", (int)((active))); }
 };
 
 #endif /* CONFERENCE_H */