Changeset 680a4da for src/mvc/event.h


Ignore:
Timestamp:
01/16/10 16:31:15 (13 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
c790268
Parents:
8860ff4
Message:

work on favourite

  • created 'favourite' column in EVENT table
  • modified 'ormrecord' for setting record's elements
  • favourities view not implemented
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mvc/event.h

    r8860ff4 r680a4da  
    77
    88#include <ormrecord.h>
    9 
    109
    1110/**
     
    3433    QString type() const { return value("type").toString(); }
    3534    QString language() const { return value("language").toString(); }
     35    bool isFavourite() const { return value("favourite").toBool(); }
    3636
    3737    void setId(int id) { setValue("id", id); }
     
    4242    void setType(const QString& type) { setValue("type", type); }
    4343    void setLanguage(const QString& language) { setValue("language", language); }
     44    void setFavourite(bool favourite) { setValue("favourite", favourite); }
    4445
    4546friend class EventTest;
    4647};
    4748
     49#endif // EVENT_H
    4850
    49 
    50 #endif // EVENT_H
Note: See TracChangeset for help on using the changeset viewer.