Changeset 4693fa6 for src/mvc/event.h


Ignore:
Timestamp:
01/20/10 22:02:30 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
8fe9bd2
Parents:
926f106
Message:

changed 'Activity' -> 'Track'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mvc/event.h

    r926f106 r4693fa6  
    2424    static const int sTable1ColCount;
    2525    static const int sTable2ColCount;
    26     static const QString XID_ACTIVITY;
    27     static const QString START;
    2826public:
    2927    static Event getById(int id, int conferenceId);
     
    3432    int id() const { return value("id").toInt(); }
    3533    int conferenceId() const { return value("xid_conference").toInt(); }
    36     QDateTime start() const { return value(START).toDateTime(); }
     34    QDateTime start() const { return value("start").toDateTime(); }
    3735    int duration() const { return value("duration").toInt(); }
    38     int activityId() const { return value(XID_ACTIVITY).toInt(); }
     36    int trackId() const { return value("xid_track").toInt(); }
    3937    QString type() const { return value("type").toString(); }
    4038    QString language() const { return value("language").toString(); }
     
    5553    void setId(int id) { setValue("id", id); }
    5654    void setConferenceId(int conferenceId) { setValue("xid_conference", conferenceId); }
    57     void setStart(const QDateTime & start) { setValue(START, start); }
     55    void setStart(const QDateTime & start) { setValue("start", start); }
    5856    void setDuration(int duration) { setValue("duration", duration); }
    59     void setActivityId(int activityId) { setValue(XID_ACTIVITY, activityId); }
     57    void setTrackId(int trackId) { setValue("xid_track", trackId); }
    6058    void setType(const QString & type) { setValue("type", type); }
    6159    void setLanguage(const QString & language) { setValue("language", language); }
Note: See TracChangeset for help on using the changeset viewer.