source: src/mvc/track.h @ 72cd3af

qt5
Last change on this file since 72cd3af was 4693fa6, checked in by pavelpa <pavelpa@…>, 13 years ago

changed 'Activity' -> 'Track'

  • Property mode set to 100644
File size: 724 bytes
RevLine 
[9208bdb]1/*
[4693fa6]2 * track.h
[9208bdb]3 *
4 *  Created on: Dec 27, 2009
5 *      Author: Pavol Korinek
6 */
7
[4693fa6]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;
17    static QString const sTableName;
18    static const int sTableColCount;
[807cbdb]19public:
[4693fa6]20    static QMap<int, Track> mIdToTrack;
[9208bdb]21public:
[4693fa6]22    static QList<Track> getAll();
[9208bdb]23    int id() const { return value("id").toInt(); }
24    void setId(int id) { setValue("id", id); }
25    QString name() const { return value("name").toString(); }
26    void setName(const QString & type) { setValue("name", type); }
27public:
[4693fa6]28    static void updateTrackMap();
29    static QString getTrackName(int id);
[9208bdb]30};
31
[4693fa6]32#endif /* TRACK_H */
33
Note: See TracBrowser for help on using the repository browser.