Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
QadraMessagesBusinessLogic.h
Go to the documentation of this file.
1 #ifndef QADRAMESSAGESBUSINESSLOGIC_H
2 #define QADRAMESSAGESBUSINESSLOGIC_H
3 
4 #include "BusinessLogic.h"
5 
6 class QJsonObject;
10 
11 class QadraMessagesBusinessLogic : public QObject, public BusinessLogic
12 {
13  Q_OBJECT
14 public:
16 
19 
20  static bool IsQadraPresent();
21 
22  void Vacuum();
23  bool Init( NetworkRequestHandler *networkRequestHandler );
24  ApplicationDefines::ResultValue OnQadraMessagesReceived( QStringList messages, VehicleIdentificationBusinessLogic *vehicleIdentificationBusinessLogic );
25 
26  void OnPositionChanged( const int32_t latitude, const int32_t longitude, const int32_t altitude, const int32_t speed, const int32_t numberOfSatellites ) const;
27  void OnGPSError() const;
28 
30 
31  void OnNetworkReply( const QJsonDocument &jsonData );
32  void OnNetworkReplyTimeout();
33  void OnNetworkReplyError();
34 
35  void SynchronizeDateTime();
36 
37 private slots:
38  void OnQadraMessageDelete();
39  void OnQadraMessageSendToDispatching();
40 
41 private:
43 
44  class DataClass;
45  QScopedPointer<DataClass> d;
46 
48 };
49 
50 #endif // QADRAMESSAGESBUSINESSLOGIC_H
ApplicationDefines::ResultValue OnQadraMessagesReceived(QStringList messages, VehicleIdentificationBusinessLogic *vehicleIdentificationBusinessLogic)
Definition: QadraMessagesBusinessLogic.cpp:151
void OnNetworkReply(const QJsonDocument &jsonData)
Definition: QadraMessagesBusinessLogic.cpp:289
Definition: QadraMessageData.h:10
Definition: ProjectConfiguration.h:11
virtual ~QadraMessagesBusinessLogic()
Definition: QadraMessagesBusinessLogic.cpp:89
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
QadraMessagesBusinessLogic()
Definition: QadraMessagesBusinessLogic.cpp:77
void Vacuum()
Definition: QadraMessagesBusinessLogic.cpp:114
void SynchronizeDateTime()
Definition: QadraMessagesBusinessLogic.cpp:320
static bool IsQadraPresent()
Definition: QadraMessagesBusinessLogic.cpp:93
Definition: VehicleIdentificationBusinessLogic.h:8
bool Init(NetworkRequestHandler *networkRequestHandler)
Definition: QadraMessagesBusinessLogic.cpp:119
void OnPositionChanged(const int32_t latitude, const int32_t longitude, const int32_t altitude, const int32_t speed, const int32_t numberOfSatellites) const
Definition: QadraMessagesBusinessLogic.cpp:213
void OnNetworkReplyTimeout()
Definition: QadraMessagesBusinessLogic.cpp:308
ApplicationDefines::ResultValue CreateNetworkRequest(QList< QadraMessageDataRequest > messages, QJsonObject &jsonRequest)
Definition: QadraMessagesBusinessLogic.cpp:269
void OnGPSError() const
Definition: QadraMessagesBusinessLogic.cpp:223
void OnNetworkReplyError()
Definition: QadraMessagesBusinessLogic.cpp:314
BusinessLogicType
Definition: ApplicationDefines.h:186
Definition: QadraMessagesBusinessLogic.h:11
Definition: QadraMessagesBusinessLogic.cpp:51
static const ApplicationDefines::BusinessLogicType mBusinessLogicType
Definition: QadraMessagesBusinessLogic.h:15
Definition: NetworkRequestHandler.h:12