qt5
Last change
on this file since 7620de0 was
7620de0,
checked in by korrco <korrco@…>, 12 years ago
|
room view added - need to test it
|
-
Property mode set to
100644
|
File size:
780 bytes
|
Line | |
---|
1 | /* |
---|
2 | * track.h |
---|
3 | * |
---|
4 | * Created on: Dec 27, 2009 |
---|
5 | * Author: Pavol Korinek |
---|
6 | */ |
---|
7 | |
---|
8 | #ifndef TRACK_H_ |
---|
9 | #define TRACK_H_ |
---|
10 | |
---|
11 | #include <ormrecord.h> |
---|
12 | |
---|
13 | class Track : public OrmRecord<Track> |
---|
14 | { |
---|
15 | public: |
---|
16 | static const QSqlRecord sColumns; |
---|
17 | static QString const sTableName; |
---|
18 | static const int sTableColCount; |
---|
19 | static const QString NAME; |
---|
20 | public: |
---|
21 | int id() const { return value("id").toInt(); } |
---|
22 | void setId(int id) { setValue("id", id); } |
---|
23 | QString name() const { return value("name").toString(); } |
---|
24 | void setName(const QString & type) { setValue("name", type); } |
---|
25 | int insert(); |
---|
26 | public: |
---|
27 | static QList<Track> getAll(); |
---|
28 | static Track retrieve(int id); |
---|
29 | static QString retrieveTrackName(int id); |
---|
30 | static Track retrieveByName(QString name); |
---|
31 | }; |
---|
32 | |
---|
33 | #endif /* TRACK_H_ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.