Changeset 7d7659d for src/mvc/event.h
- Timestamp:
- 01/21/10 14:24:08 (12 years ago)
- Branches:
- master, qt5
- Children:
- 06570e9
- Parents:
- d8d5bd2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mvc/event.h
rd8d5bd2 r7d7659d 19 19 public: 20 20 static const QSqlRecord sColumns; 21 //static QString const sTableName; 22 static const QString sTable1Name; 23 static const QString sTable2Name; 24 static const int sTable1ColCount; 25 static const int sTable2ColCount; 21 static QString const sTableName; 26 22 public: 27 23 static Event getById(int id, int conferenceId); … … 30 26 static QList<Event> getSearchResultByDate(const QDate& date, int conferenceId, QString orderBy); 31 27 public: 32 // Table 133 28 int id() const { return value("id").toInt(); } 34 29 int conferenceId() const { return value("xid_conference").toInt(); } … … 41 36 bool hasAlarm() const { return value("alarm").toBool(); } 42 37 bool hasTimeConflict() const { return true; /*return value("warning").toBool()*/; } //TODO 43 // Table 2 : virtual table for FTS (Full Text Search)44 38 QString tag() const { return value("tag").toString(); } 45 39 QString title() const { return value("title").toString(); } … … 51 45 QStringList persons() const; 52 46 53 // Table 154 47 void setId(int id) { setValue("id", id); } 55 48 void setConferenceId(int conferenceId) { setValue("xid_conference", conferenceId); } … … 61 54 void setFavourite(bool favourite) { setValue("favourite", (int)((favourite))); } 62 55 void setHasAlarm(bool alarm) { setValue("alarm", (int)((alarm))); } 63 // Table 2 : virtual table for FTS (Full Text Search)64 56 void setTag(const QString& tag) { setValue("tag", tag); } 65 57 void setTitle(const QString& title) { setValue("title", title); }
Note: See TracChangeset
for help on using the changeset viewer.