Changeset 0bb39f5 for src/mvc/conference.h
- Timestamp:
- 01/27/10 16:31:10 (12 years ago)
- Branches:
- master, qt5
- Children:
- a790a90
- Parents:
- 07ae23a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mvc/conference.h
r07ae23a r0bb39f5 17 17 static Conference getById(int id); 18 18 static QList<Conference> getAll(); 19 static int activeConference(); 19 20 20 21 public: … … 29 30 int dayChange() const { return value("day_change").toInt(); } // in seconds from 00:00 30 31 int timeslotDuration() const { return value("timeslot_duration").toInt(); } // in seconds 32 bool isActive() const { return value("active").toBool(); } 31 33 32 34 void setId(int id) { setValue("id", id); } … … 35 37 void setVenue(const QString& venue) { setValue("venue", venue); } 36 38 void setCity(const QString& city) { setValue("city", city); } 37 //void setStart(const QDate& start) { setValue("start", QDateTime(start)); }38 39 void setStart(const QDate& start) { setValue("start", start); } 39 //void setEnd(const QDate& end) { setValue("end", QDateTime(end)); }40 40 void setEnd(const QDate& end) { setValue("end", end); } 41 41 void setDays(int days) { setValue("days", days); } 42 42 void setDayChange(int dayChange) { setValue("day_change", dayChange); } 43 43 void setTimeslotDuration(int timeslotDuration) { setValue("timeslot_duration", timeslotDuration); } 44 void setActive(bool active) { setValue("active", (int)((active))); } 44 45 }; 45 46
Note: See TracChangeset
for help on using the changeset viewer.