Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
BusTableInterchangesBusinessLogic.h
Go to the documentation of this file.
1 #ifndef BUSTABLEINTERCHANGESBUSINESSLOGIC_H
2 #define BUSTABLEINTERCHANGESBUSINESSLOGIC_H
3 
4 #include <stdint.h>
5 
6 #include "BusinessLogic.h"
7 
8 class QJsonObject;
9 class QJsonDocument;
11 class UniversalDictionary;
13 
15 {
16 public:
18 
21 
22  bool Init( TripTransfersAndDelaysBusinessLogic *tripTransfersAndDelaysBusinessLogic, NetworkRequestHandler *networkRequestHandler );
23  void IssueIn( const int lineNumber, const int tripNumber );
24  void IssueOut();
25 
26  void OnBusStopDeparture( const int tripBusStopIndex );
27 
28  ApplicationDefines::ResultValue CreateNetworkRequest( const int32_t lineNumber, const int32_t tripNumber, QJsonObject &jsonRequest );
29  ApplicationDefines::ResultValue ProcessNetworkReply( const QJsonDocument &jsonData );
30 
31  void OnDelayChanged( const int delayInSeconds );
32 
33 private:
35 
36  class DataClass;
37  QScopedPointer<DataClass> d;
38 
40 };
41 
42 #endif // BUSTABLEINTERCHANGESBUSINESSLOGIC_H
void IssueIn(const int lineNumber, const int tripNumber)
Definition: BusTableInterchangesBusinessLogic.cpp:121
Definition: BusTableInterchangesBusinessLogic.h:14
The BusinessLogic class is the base class of all business logic classes. Every inherited class has to...
Definition: BusinessLogic.h:11
ResultValue
Definition: ApplicationDefines.h:92
Definition: BusTableInterchangesBusinessLogic.cpp:56
bool Init(TripTransfersAndDelaysBusinessLogic *tripTransfersAndDelaysBusinessLogic, NetworkRequestHandler *networkRequestHandler)
Definition: BusTableInterchangesBusinessLogic.cpp:86
ApplicationDefines::ResultValue CreateNetworkRequest(const int32_t lineNumber, const int32_t tripNumber, QJsonObject &jsonRequest)
Definition: BusTableInterchangesBusinessLogic.cpp:238
void OnBusStopDeparture(const int tripBusStopIndex)
Definition: BusTableInterchangesBusinessLogic.cpp:145
void OnDelayChanged(const int delayInSeconds)
Definition: BusTableInterchangesBusinessLogic.cpp:361
Definition: ApplicationDefines.h:236
ApplicationDefines::ResultValue ProcessNetworkReply(const QJsonDocument &jsonData)
Definition: BusTableInterchangesBusinessLogic.cpp:252
void IssueOut()
Definition: BusTableInterchangesBusinessLogic.cpp:140
BusinessLogicType
Definition: ApplicationDefines.h:186
static const ApplicationDefines::BusinessLogicType mBusinessLogicType
Definition: BusTableInterchangesBusinessLogic.h:17
virtual ~BusTableInterchangesBusinessLogic()
Definition: BusTableInterchangesBusinessLogic.cpp:82
BusTableInterchangesBusinessLogic()
Definition: BusTableInterchangesBusinessLogic.cpp:76
The OtherTripsDelaysBusinessLogic class class provides information about other trip delays witch are ...
Definition: TripTransfersAndDelaysBusinessLogic.h:14
Definition: NetworkRequestHandler.h:12