|
Vesna
|
The OtherTripsDelaysBusinessLogic class class provides information about other trip delays witch are important for current trip e.g interchange trip. More...
#include <TripTransfersAndDelaysBusinessLogic.h>


Classes | |
| class | DataClass |
Public Member Functions | |
| TripTransfersAndDelaysBusinessLogic () | |
| virtual | ~TripTransfersAndDelaysBusinessLogic () |
| bool | Init (NetworkRequestHandler *networkRequestHandler) |
| void | IssueIn () |
| IssueStart method finds all transfers for actual trip bus stops and fills this trips to trips delays request. More... | |
| void | BusStopArrival () |
| BusStopArrival - method request trips delays refresh. More... | |
| void | BusStopDeparture () |
| BusStopDeparture - method request trips delays refresh. More... | |
| bool | GetDelay (const char *lineNumber, const int tripNumber, int &delay) |
| GetDelay - method returns delay for entered trip. More... | |
| bool | GetTransfersFromBusStopToOtherTrip (long tripBusStopIndex, QList< QPair< long, long > > &transfers) |
| GetTransfersFromBusStopToOtherTrip return transfers of entered trip bus stop to other trips. More... | |
| bool | GetTransfersFromOtherTripToBusStop (long tripBusStopIndex, QList< QPair< QString, long > > &transfers) |
| GetTransfersFromOtherTripToBusStop return transfers of entered trip bus stop from other trips. More... | |
| QString | GetActualBusStopTransferInfo (int32_t tripBusStopIndex) |
| bool | SendTripsDelaysNetworkRequest () |
| void | OnNetworkReply (const QByteArray &replyData) |
| void | AddRequestForTrip (const char *lineNumberText, const int tripNumber) |
| void | ClearTripsDelaysRequests () |
Public Member Functions inherited from BusinessLogic | |
| BusinessLogic (ApplicationDefines::BusinessLogicType businessLogicType, ApplicationDefines::BusinessLogicLifeTimeType businessLogicLifeTimeType) | |
| virtual | ~BusinessLogic () |
| ApplicationDefines::BusinessLogicType | GetBusinessLogicType () const |
| ApplicationDefines::BusinessLogicLifeTimeType | GetBusinessLogicLifeTimeType () const |
Static Public Attributes | |
| static const ApplicationDefines::BusinessLogicType | mBusinessLogicType = ApplicationDefines::TripTransfersAndDelaysBusinessLogic |
The OtherTripsDelaysBusinessLogic class class provides information about other trip delays witch are important for current trip e.g interchange trip.
| TripTransfersAndDelaysBusinessLogic::TripTransfersAndDelaysBusinessLogic | ( | ) |
|
virtual |
| void TripTransfersAndDelaysBusinessLogic::AddRequestForTrip | ( | const char * | lineNumberText, |
| const int | tripNumber | ||
| ) |

| void TripTransfersAndDelaysBusinessLogic::BusStopArrival | ( | ) |
BusStopArrival - method request trips delays refresh.

| void TripTransfersAndDelaysBusinessLogic::BusStopDeparture | ( | ) |
BusStopDeparture - method request trips delays refresh.

| void TripTransfersAndDelaysBusinessLogic::ClearTripsDelaysRequests | ( | ) |

| QString TripTransfersAndDelaysBusinessLogic::GetActualBusStopTransferInfo | ( | int32_t | tripBusStopIndex | ) |


| bool TripTransfersAndDelaysBusinessLogic::GetDelay | ( | const char * | lineNumber, |
| const int | tripNumber, | ||
| int & | delay | ||
| ) |
GetDelay - method returns delay for entered trip.
| lineNumber | - line number |
| tripNumber | - trip number |
| delay | - delay in seconds can positive or negative |

| bool TripTransfersAndDelaysBusinessLogic::GetTransfersFromBusStopToOtherTrip | ( | long | tripBusStopIndex, |
| QList< QPair< long, long > > & | transfers | ||
| ) |
GetTransfersFromBusStopToOtherTrip return transfers of entered trip bus stop to other trips.
| tripBusStopIndex | - output parameter index of bus stop on actual trip |
| transfers | - bus stop transfers to other trips ( first in pair is line number second is trip number ) |

| bool TripTransfersAndDelaysBusinessLogic::GetTransfersFromOtherTripToBusStop | ( | long | tripBusStopIndex, |
| QList< QPair< QString, long > > & | transfers | ||
| ) |
GetTransfersFromOtherTripToBusStop return transfers of entered trip bus stop from other trips.
| tripBusStopIndex | index on bus stop on actual trip |
| transfers | - output parameter bus stop transfers from other trips ( first in pair is line number text, second is trip number ) |

| bool TripTransfersAndDelaysBusinessLogic::Init | ( | NetworkRequestHandler * | networkRequestHandler | ) |
| void TripTransfersAndDelaysBusinessLogic::IssueIn | ( | ) |
IssueStart method finds all transfers for actual trip bus stops and fills this trips to trips delays request.

| void TripTransfersAndDelaysBusinessLogic::OnNetworkReply | ( | const QByteArray & | replyData | ) |
| bool TripTransfersAndDelaysBusinessLogic::SendTripsDelaysNetworkRequest | ( | ) |

|
static |
1.8.8