qt5
Last change
on this file since 979e5be was
a790a90,
checked in by pavelpa <pavelpa@…>, 12 years ago
|
removed headers from *.h and *.cpp
|
-
Property mode set to
100644
|
File size:
700 bytes
|
Line | |
---|
1 | |
---|
2 | #ifndef TRACK_H_ |
---|
3 | #define TRACK_H_ |
---|
4 | |
---|
5 | #include <ormrecord.h> |
---|
6 | |
---|
7 | class Track : public OrmRecord<Track> |
---|
8 | { |
---|
9 | public: |
---|
10 | static const QSqlRecord sColumns; |
---|
11 | static QString const sTableName; |
---|
12 | static const int sTableColCount; |
---|
13 | static const QString NAME; |
---|
14 | public: |
---|
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(); |
---|
20 | public: |
---|
21 | static QList<Track> getAll(); |
---|
22 | static Track retrieve(int id); |
---|
23 | static QString retrieveTrackName(int id); |
---|
24 | static Track retrieveByName(QString name); |
---|
25 | }; |
---|
26 | |
---|
27 | #endif /* TRACK_H_ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.