Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CrossroadPreferencesBusinessLogic.h
Go to the documentation of this file.
1 #ifndef CROSSROADPREFERENCESBUSINESSLOGIC_H
2 #define CROSSROADPREFERENCESBUSINESSLOGIC_H
3 
4 // QT INCLUDES
5 #include <QString>
6 
7 // BASE INCLUDES
9 
12 
13 class CrossroadPreferencesBusinessLogic : public BusinessLogic
14 {
15 public:
17 
18  static const QString DEFAULT_INPUT_FILENAME_WITH_PATH;
19  static const QString PREFERENCE_MESSAGES_LOG_FILENAME_WITH_PATH;
20 
21  CrossroadPreferencesBusinessLogic();
22  virtual ~CrossroadPreferencesBusinessLogic();
23 
24  bool Init( VehicleIdentificationBusinessLogic *vehicleIdentificationBusinessLogic, NetworkRequestHandler *networkRequestHandler, const QString &filenameWithFullPath = DEFAULT_INPUT_FILENAME_WITH_PATH );
25 
26  void OnIssueIn( const int lineNumber, const int tripNumber );
27  void OnIssueOut();
28 
29  void OnSecondTick();
30 
31  void ListVehicleTrafficPreferencePointsForManualSending();
32 
33  void OnPositionChanged( long latitude, long longitude );
34 
35  void OnDelayChanged( const int delay );
36 
37  void OnNetworkReply( const QJsonDocument &replyData );
38  void OnNetworkReplyTimeout();
39  void OnNetworkReplyError();
40 
41 private:
43 
44  class DataClass;
45  QScopedPointer<DataClass> d;
46 
48 };
49 
50 #endif // CROSSROADPREFERENCESBUSINESSLOGIC_H
The BusinessLogic class is the base class of all business logic classes. Every inherited class has to...
Definition: BusinessLogic.h:11
Definition: ApplicationDefines.h:231
Definition: VehicleIdentificationBusinessLogic.h:8
BusinessLogicType
Definition: ApplicationDefines.h:186
Definition: NetworkRequestHandler.h:12