Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ModelInterchangeBusStop.h
Go to the documentation of this file.
1 #ifndef MODELINTERCHANGEBUSSTOP_H
2 #define MODELINTERCHANGEBUSSTOP_H
3 
4 #include "Model.h"
5 
6 // DATABASE TABLE COLUMNS
7 const QString DATABASE_TABLE_INTERCHANGE_BUS_STOP = "interchange_bus_stop";
9 const QString DATABASE_TABLE_INTERCHANGE_BUS_STOP_COLUMN_LINE = "line_number";
11 
12 // JSON RESPONSE ITEM
15 
17 {
18  Q_OBJECT
19  Q_PROPERTY( int bus_stop_id READ GetBusStopID WRITE SetBusStopID )
20  Q_PROPERTY( int line_number READ GetLineNumber WRITE SetLineNumber )
21  Q_PROPERTY( int trip_number READ GetTripNumber WRITE SetTripNumber )
22 
23 public:
25  virtual ~ModelInterchangeBusStop();
26 
27  int GetBusStopID() const;
28  void SetBusStopID( const int busStopID );
29 
30  int GetLineNumber() const;
31  void SetLineNumber( const int lineNumber );
32 
33  int GetTripNumber() const;
34  void SetTripNumber( const int tripNumber );
35 
36 private:
37  class DataClass;
38  QScopedPointer<DataClass> d;
39 };
40 
41 #endif // MODELINTERCHANGEBUSSTOP_H
int GetTripNumber() const
Definition: ModelInterchangeBusStop.cpp:48
const QString DATABASE_TABLE_INTERCHANGE_BUS_STOP
Definition: ModelInterchangeBusStop.h:7
const QString DATABASE_TABLE_INTERCHANGE_BUS_STOP_COLUMN_TRIP
Definition: ModelInterchangeBusStop.h:10
ModelInterchangeBusStop()
Definition: ModelInterchangeBusStop.cpp:16
Definition: ModelInterchangeBusStop.cpp:3
Definition: ModelInterchangeBusStop.h:16
virtual ~ModelInterchangeBusStop()
Definition: ModelInterchangeBusStop.cpp:24
void SetTripNumber(const int tripNumber)
Definition: ModelInterchangeBusStop.cpp:53
const QString DATABASE_TABLE_INTERCHANGE_BUS_STOP_COLUMN_LINE
Definition: ModelInterchangeBusStop.h:9
int GetBusStopID() const
Definition: ModelInterchangeBusStop.cpp:28
Definition: Model.h:11
const QString INTERCHANGE_BUS_STOP_JSON_RESPONSE_ITEM_VALUE_BUS_STOP_ID
Definition: ModelInterchangeBusStop.h:13
void SetBusStopID(const int busStopID)
Definition: ModelInterchangeBusStop.cpp:33
const QString DATABASE_TABLE_INTERCHANGE_BUS_STOP_COLUMN_BUS_STOP_ID
Definition: ModelInterchangeBusStop.h:8
int GetLineNumber() const
Definition: ModelInterchangeBusStop.cpp:38
void SetLineNumber(const int lineNumber)
Definition: ModelInterchangeBusStop.cpp:43
const QString INTERCHANGE_BUS_STOP_JSON_RESPONSE_ITEM_DEPARTURES
Definition: ModelInterchangeBusStop.h:14