Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TripTransfersAndDelaysBusinessLogic.h
Go to the documentation of this file.
1 #ifndef OTHERTRIPSDELAYSBUSINESSLOGIC_H
2 #define OTHERTRIPSDELAYSBUSINESSLOGIC_H
3 
4 #include <QPair>
5 #include <QList>
6 #include "BusinessLogic.h"
7 
9 
15 {
16 public:
18 
21 
22  bool Init( NetworkRequestHandler *networkRequestHandler );
23 
27  void IssueIn();
28 
32  void BusStopArrival();
33 
37  void BusStopDeparture();
38 
46  bool GetDelay( const char *lineNumber, const int tripNumber, int &delay );
47 
54  bool GetTransfersFromBusStopToOtherTrip( long tripBusStopIndex, QList< QPair<long, long> > &transfers );
55 
62  bool GetTransfersFromOtherTripToBusStop( long tripBusStopIndex, QList< QPair<QString, long> > &transfers );
63 
64  QString GetActualBusStopTransferInfo( int32_t tripBusStopIndex );
65 
66  // trips delays web service handling
68  void OnNetworkReply( const QByteArray &replyData );
69  void AddRequestForTrip( const char *lineNumberText, const int tripNumber );
71 
72 private:
74 
75  class DataClass;
76  QSharedPointer<DataClass> d;
77 
79 };
80 
81 #endif // OTHERTRIPSDELAYSBUSINESSLOGIC_H
Definition: TripTransfersAndDelaysBusinessLogic.cpp:52
bool GetDelay(const char *lineNumber, const int tripNumber, int &delay)
GetDelay - method returns delay for entered trip.
Definition: TripTransfersAndDelaysBusinessLogic.cpp:382
TripTransfersAndDelaysBusinessLogic()
Definition: TripTransfersAndDelaysBusinessLogic.cpp:162
Definition: ProjectConfiguration.h:11
bool SendTripsDelaysNetworkRequest()
Definition: TripTransfersAndDelaysBusinessLogic.cpp:502
The BusinessLogic class is the base class of all business logic classes. Every inherited class has to...
Definition: BusinessLogic.h:11
virtual ~TripTransfersAndDelaysBusinessLogic()
Definition: TripTransfersAndDelaysBusinessLogic.cpp:168
void OnNetworkReply(const QByteArray &replyData)
Definition: TripTransfersAndDelaysBusinessLogic.cpp:541
QString GetActualBusStopTransferInfo(int32_t tripBusStopIndex)
Definition: TripTransfersAndDelaysBusinessLogic.cpp:394
void IssueIn()
IssueStart method finds all transfers for actual trip bus stops and fills this trips to trips delays ...
Definition: TripTransfersAndDelaysBusinessLogic.cpp:199
static const ApplicationDefines::BusinessLogicType mBusinessLogicType
Definition: TripTransfersAndDelaysBusinessLogic.h:17
Definition: ProjectConfiguration.h:12
void ClearTripsDelaysRequests()
Definition: TripTransfersAndDelaysBusinessLogic.cpp:553
bool GetTransfersFromOtherTripToBusStop(long tripBusStopIndex, QList< QPair< QString, long > > &transfers)
GetTransfersFromOtherTripToBusStop return transfers of entered trip bus stop from other trips...
Definition: TripTransfersAndDelaysBusinessLogic.cpp:261
bool Init(NetworkRequestHandler *networkRequestHandler)
Definition: TripTransfersAndDelaysBusinessLogic.cpp:172
BusinessLogicType
Definition: ApplicationDefines.h:186
void BusStopArrival()
BusStopArrival - method request trips delays refresh.
Definition: TripTransfersAndDelaysBusinessLogic.cpp:372
bool GetTransfersFromBusStopToOtherTrip(long tripBusStopIndex, QList< QPair< long, long > > &transfers)
GetTransfersFromBusStopToOtherTrip return transfers of entered trip bus stop to other trips...
Definition: TripTransfersAndDelaysBusinessLogic.cpp:314
The OtherTripsDelaysBusinessLogic class class provides information about other trip delays witch are ...
Definition: TripTransfersAndDelaysBusinessLogic.h:14
void AddRequestForTrip(const char *lineNumberText, const int tripNumber)
Definition: TripTransfersAndDelaysBusinessLogic.cpp:532
Definition: NetworkRequestHandler.h:12
void BusStopDeparture()
BusStopDeparture - method request trips delays refresh.
Definition: TripTransfersAndDelaysBusinessLogic.cpp:377