Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Public Member Functions | Static Public Attributes | List of all members
TripTransfersAndDelaysBusinessLogic Class Reference

The OtherTripsDelaysBusinessLogic class class provides information about other trip delays witch are important for current trip e.g interchange trip. More...

#include <TripTransfersAndDelaysBusinessLogic.h>

Inheritance diagram for TripTransfersAndDelaysBusinessLogic:
Inheritance graph
[legend]
Collaboration diagram for TripTransfersAndDelaysBusinessLogic:
Collaboration graph
[legend]

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
 

Detailed Description

The OtherTripsDelaysBusinessLogic class class provides information about other trip delays witch are important for current trip e.g interchange trip.

Constructor & Destructor Documentation

TripTransfersAndDelaysBusinessLogic::TripTransfersAndDelaysBusinessLogic ( )
TripTransfersAndDelaysBusinessLogic::~TripTransfersAndDelaysBusinessLogic ( )
virtual

Member Function Documentation

void TripTransfersAndDelaysBusinessLogic::AddRequestForTrip ( const char *  lineNumberText,
const int  tripNumber 
)

Here is the caller graph for this function:

void TripTransfersAndDelaysBusinessLogic::BusStopArrival ( )

BusStopArrival - method request trips delays refresh.

Here is the call graph for this function:

void TripTransfersAndDelaysBusinessLogic::BusStopDeparture ( )

BusStopDeparture - method request trips delays refresh.

Here is the call graph for this function:

void TripTransfersAndDelaysBusinessLogic::ClearTripsDelaysRequests ( )

Here is the caller graph for this function:

QString TripTransfersAndDelaysBusinessLogic::GetActualBusStopTransferInfo ( int32_t  tripBusStopIndex)

Here is the call graph for this function:

Here is the caller graph for this function:

bool TripTransfersAndDelaysBusinessLogic::GetDelay ( const char *  lineNumber,
const int  tripNumber,
int &  delay 
)

GetDelay - method returns delay for entered trip.

Parameters
lineNumber- line number
tripNumber- trip number
delay- delay in seconds can positive or negative
Returns
bool - true if trip found and has valid delay else false

Here is the caller graph for this function:

bool TripTransfersAndDelaysBusinessLogic::GetTransfersFromBusStopToOtherTrip ( long  tripBusStopIndex,
QList< QPair< long, long > > &  transfers 
)

GetTransfersFromBusStopToOtherTrip return transfers of entered trip bus stop to other trips.

Parameters
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 )
Returns
bool - false error occured else return true

Here is the caller graph for this function:

bool TripTransfersAndDelaysBusinessLogic::GetTransfersFromOtherTripToBusStop ( long  tripBusStopIndex,
QList< QPair< QString, long > > &  transfers 
)

GetTransfersFromOtherTripToBusStop return transfers of entered trip bus stop from other trips.

Parameters
tripBusStopIndexindex 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 )
Returns
bool - false error occured else return true

Here is the caller graph for this function:

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.

Here is the call graph for this function:

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

Here is the caller graph for this function:

Member Data Documentation

const ApplicationDefines::BusinessLogicType TripTransfersAndDelaysBusinessLogic::mBusinessLogicType = ApplicationDefines::TripTransfersAndDelaysBusinessLogic
static

The documentation for this class was generated from the following files: