qt5
Last change
on this file since 606c155 was
606c155,
checked in by korrco <korrco@…>, 13 years ago
|
activities tab implemented
|
-
Property mode set to
100644
|
File size:
884 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 const QSqlRecord sInsertColumns; |
---|
18 | static QString const sTableName; |
---|
19 | static const int sTableColCount; |
---|
20 | static const QString NAME; |
---|
21 | public: |
---|
22 | static QMap<int, Track> mIdToTrack; |
---|
23 | public: |
---|
24 | int insert(); |
---|
25 | int id() const { return value("id").toInt(); } |
---|
26 | void setId(int id) { setValue("id", id); } |
---|
27 | QString name() const { return value("name").toString(); } |
---|
28 | void setName(const QString & type) { setValue("name", type); } |
---|
29 | public: |
---|
30 | //static void |
---|
31 | static QList<Track> getAll(); |
---|
32 | static Track retrieveByName(QString name); |
---|
33 | static void updateTrackMap(); |
---|
34 | static QString getTrackName(int id); |
---|
35 | }; |
---|
36 | |
---|
37 | #endif /* TRACK_H_ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.