Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ModelRouteSegment.h
Go to the documentation of this file.
1 #ifndef MODELROUTESEGMENT_H
2 #define MODELROUTESEGMENT_H
3 
4 #include "Model.h"
5 
6 // DATABASE TABLE COLUMNS
7 const QString DATABASE_TABLE_ROUTE_SEGMENT = "route_segment";
9 const QString DATABASE_TABLE_ROUTE_SEGMENT_COLUMN_STOP_PLATFORM_ID1 = "stop_platform_id1";
11 const QString DATABASE_TABLE_ROUTE_SEGMENT_COLUMN_STOP_PLATFORM_ID2 = "stop_platform_id2";
12 
13 // JSON RESPONSE ITEM
20 
21 class ModelRouteSegment : public Model
22 {
23  Q_OBJECT
24  Q_PROPERTY( int stop_id1 READ GetStopID1 WRITE SetStopID1 )
25  Q_PROPERTY( int stop_id2 READ GetStopID2 WRITE SetStopID2 )
26  Q_PROPERTY( int stop_platform_id1 READ GetStopPlatformID1 WRITE SetStopPlatformID1 )
27  Q_PROPERTY( int stop_platform_id2 READ GetStopPlatformID2 WRITE SetStopPlatformID2 )
28 
29 public:
31  virtual ~ModelRouteSegment();
32 
33  int GetStopID1() const;
34  void SetStopID1( int stopID1 );
35 
36  int GetStopPlatformID1() const;
37  void SetStopPlatformID1( int stopPlatformID1 );
38 
39  int GetStopID2() const;
40  void SetStopID2( int stopID2 );
41 
42  int GetStopPlatformID2() const;
43  void SetStopPlatformID2( int stopPlatformID2 );
44 
45 private:
46  class DataClass;
47  QScopedPointer<DataClass> d;
48 };
49 
50 #endif // MODELROUTESEGMENT_H
int GetStopID1() const
Definition: ModelRouteSegment.cpp:32
const QString DATABASE_TABLE_ROUTE_SEGMENT_COLUMN_STOP_PLATFORM_ID2
Definition: ModelRouteSegment.h:11
const QString ROUTE_SEGMENT_JSON_RESPONSE_ITEM_SYNCHRO_POINTS
Definition: ModelRouteSegment.h:19
const QString ROUTE_SEGMENT_JSON_RESPONSE_ITEM_VALUE_STOP_PLATFORM_ID2
Definition: ModelRouteSegment.h:17
const QString DATABASE_TABLE_ROUTE_SEGMENT
Definition: ModelRouteSegment.h:7
const QString ROUTE_SEGMENT_JSON_RESPONSE_ITEM_VALUE_STOP_ID1
Definition: ModelRouteSegment.h:14
const QString DATABASE_TABLE_ROUTE_SEGMENT_COLUMN_STOP_ID2
Definition: ModelRouteSegment.h:10
Definition: ModelRouteSegment.h:21
void SetStopID2(int stopID2)
Definition: ModelRouteSegment.cpp:57
int GetStopID2() const
Definition: ModelRouteSegment.cpp:52
void SetStopID1(int stopID1)
Definition: ModelRouteSegment.cpp:37
Definition: Model.h:11
ModelRouteSegment()
Definition: ModelRouteSegment.cpp:17
int GetStopPlatformID2() const
Definition: ModelRouteSegment.cpp:62
const QString DATABASE_TABLE_ROUTE_SEGMENT_COLUMN_STOP_ID1
Definition: ModelRouteSegment.h:8
Definition: ModelRouteSegment.cpp:3
void SetStopPlatformID1(int stopPlatformID1)
Definition: ModelRouteSegment.cpp:47
void SetStopPlatformID2(int stopPlatformID2)
Definition: ModelRouteSegment.cpp:67
const QString ROUTE_SEGMENT_JSON_RESPONSE_ITEM_VALUE_STOP_ID2
Definition: ModelRouteSegment.h:16
const QString ROUTE_SEGMENT_JSON_RESPONSE_ITEM_VALUE_VERSION
Definition: ModelRouteSegment.h:18
virtual ~ModelRouteSegment()
Definition: ModelRouteSegment.cpp:28
const QString DATABASE_TABLE_ROUTE_SEGMENT_COLUMN_STOP_PLATFORM_ID1
Definition: ModelRouteSegment.h:9
const QString ROUTE_SEGMENT_JSON_RESPONSE_ITEM_VALUE_STOP_PLATFORM_ID1
Definition: ModelRouteSegment.h:15
int GetStopPlatformID1() const
Definition: ModelRouteSegment.cpp:42