Changeset 7d7659d for src/mvc/event.h


Ignore:
Timestamp:
01/21/10 14:24:08 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
06570e9
Parents:
d8d5bd2
Message:

combined EVENT and VIRTUAL_EVENT => 'EVENT' now

  • Maemo sqlite doesn't support Full-Text-Search
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mvc/event.h

    rd8d5bd2 r7d7659d  
    1919public:
    2020    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;
    2622public:
    2723    static Event getById(int id, int conferenceId);
     
    3026    static QList<Event> getSearchResultByDate(const QDate& date, int conferenceId, QString orderBy);
    3127public:
    32     // Table 1
    3328    int id() const { return value("id").toInt(); }
    3429    int conferenceId() const { return value("xid_conference").toInt(); }
     
    4136    bool hasAlarm() const { return value("alarm").toBool(); }
    4237    bool hasTimeConflict() const { return true; /*return value("warning").toBool()*/; } //TODO
    43     // Table 2 : virtual table for FTS (Full Text Search)
    4438    QString tag() const { return value("tag").toString(); }
    4539    QString title() const { return value("title").toString(); }
     
    5145    QStringList persons() const;
    5246
    53     // Table 1
    5447    void setId(int id) { setValue("id", id); }
    5548    void setConferenceId(int conferenceId) { setValue("xid_conference", conferenceId); }
     
    6154    void setFavourite(bool favourite) { setValue("favourite", (int)((favourite))); }
    6255    void setHasAlarm(bool alarm) { setValue("alarm", (int)((alarm))); }
    63     // Table 2 : virtual table for FTS (Full Text Search)
    6456    void setTag(const QString& tag) { setValue("tag", tag); }
    6557    void setTitle(const QString& title) { setValue("title", title); }
Note: See TracChangeset for help on using the changeset viewer.