source: src/mvc/room.h @ 2104023

qt5
Last change on this file since 2104023 was a790a90, checked in by pavelpa <pavelpa@…>, 13 years ago

removed headers from *.h and *.cpp

  • Property mode set to 100644
File size: 691 bytes
Line 
1
2#ifndef ROOM_H_
3#define ROOM_H_
4
5#include <ormrecord.h>
6
7class Room : public OrmRecord<Room>
8{
9public:
10    static const QSqlRecord sColumns;
11    static QString const sTableName;
12    static const int sTableColCount;
13    static const QString NAME;
14public:
15    int id() const { return value("id").toInt(); }
16    void setId(int id) { setValue("id", id); }
17    QString name() const { return value("name").toString(); }
18    void setName(const QString & type) { setValue("name", type); }
19    int insert();
20public:
21    static QList<Room> getAll();
22    static Room retrieve(int id);
23    static QString retrieveRoomName(int id);
24    static Room retrieveByName(QString name);
25};
26
27#endif /* ROOM_H_ */
Note: See TracBrowser for help on using the repository browser.