Ignore:
Timestamp:
01/27/10 16:31:10 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
a790a90
Parents:
07ae23a
Message:

removed appsettings

  • created 'active' column in 'conference' table
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mvc/conference.h

    r07ae23a r0bb39f5  
    1717    static Conference getById(int id);
    1818    static QList<Conference> getAll();
     19    static int activeConference();
    1920
    2021public:
     
    2930    int dayChange() const { return value("day_change").toInt(); } // in seconds from 00:00
    3031    int timeslotDuration() const { return value("timeslot_duration").toInt(); } // in seconds
     32    bool isActive() const { return value("active").toBool(); }
    3133
    3234    void setId(int id) { setValue("id", id); }
     
    3537    void setVenue(const QString& venue) { setValue("venue", venue); }
    3638    void setCity(const QString& city) { setValue("city", city); }
    37     //void setStart(const QDate& start) { setValue("start", QDateTime(start)); }
    3839    void setStart(const QDate& start) { setValue("start", start); }
    39     //void setEnd(const QDate& end) { setValue("end", QDateTime(end)); }
    4040    void setEnd(const QDate& end) { setValue("end", end); }
    4141    void setDays(int days) { setValue("days", days); }
    4242    void setDayChange(int dayChange) { setValue("day_change", dayChange); }
    4343    void setTimeslotDuration(int timeslotDuration) { setValue("timeslot_duration", timeslotDuration); }
     44    void setActive(bool active) { setValue("active", (int)((active))); }
    4445};
    4546
Note: See TracChangeset for help on using the changeset viewer.