source: src/mvc/track.h @ 606c155

qt5
Last change on this file since 606c155 was 606c155, checked in by korrco <korrco@…>, 12 years ago

activities tab implemented

  • Property mode set to 100644
File size: 884 bytes
RevLine 
[9208bdb]1/*
[4693fa6]2 * track.h
[9208bdb]3 *
4 *  Created on: Dec 27, 2009
5 *      Author: Pavol Korinek
6 */
7
[606c155]8#ifndef TRACK_H_
9#define TRACK_H_
[9208bdb]10
11#include <ormrecord.h>
12
[4693fa6]13class Track : public OrmRecord<Track>
[9208bdb]14{
15public:
16    static const QSqlRecord sColumns;
[606c155]17    static const QSqlRecord sInsertColumns;
[9208bdb]18    static QString const sTableName;
19    static const int sTableColCount;
[606c155]20    static const QString NAME;
[807cbdb]21public:
[4693fa6]22    static QMap<int, Track> mIdToTrack;
[9208bdb]23public:
[606c155]24    int insert();
[9208bdb]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); }
29public:
[606c155]30    //static void
31    static QList<Track> getAll();
32    static Track retrieveByName(QString name);
[4693fa6]33    static void updateTrackMap();
34    static QString getTrackName(int id);
[9208bdb]35};
36
[606c155]37#endif /* TRACK_H_ */
Note: See TracBrowser for help on using the repository browser.