Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DestinationBusStopOrZoneSelectionBusinessLogic.h
Go to the documentation of this file.
1 #ifndef DESTINATIONBUSSTOPORZONESELECTIONBUSINESSLOGIC_H
2 #define DESTINATIONBUSSTOPORZONESELECTIONBUSINESSLOGIC_H
3 
5 
6 class StorageList;
7 
9 {
10 public:
12  static const unsigned UNDEFINED_SUB_ZONE_NUMBER = 0;
13  static const unsigned UNDEFINED_ZONE_NUMBER = 0;
14 
17 
18  bool SetLastUsedZone( const unsigned zone, const unsigned IDS );
19  void ClearLastUsedZone();
20  unsigned GetAndValidateLastUsedZone( const unsigned currentIDS );
21 
22  bool SetLastUsedSubZone( const unsigned subZone, const unsigned IDS );
23  void ClearLastUsedSubZone();
24  unsigned GetAndValidateLastUsedSubZone( const unsigned currentIDS );
25 
26  bool ObtainIDSNumber( StorageList &stateStorageList, unsigned short &IDSNumber ) const;
27 
28  bool ValidateEnteredZoneOrSubZoneNumber( const unsigned enteredNumber, const bool useSubZones ) const;
29 
30 private:
32 
33  class DataClass;
34  QScopedPointer<DataClass> d;
35 
37 };
38 
39 #endif // DESTINATIONBUSSTOPORZONESELECTIONBUSINESSLOGIC_H
Definition: DestinationBusStopOrZoneSelectionBusinessLogic.cpp:26
DestinationBusStopOrZoneSelectionBusinessLogic()
Definition: DestinationBusStopOrZoneSelectionBusinessLogic.cpp:46
unsigned GetAndValidateLastUsedSubZone(const unsigned currentIDS)
Definition: DestinationBusStopOrZoneSelectionBusinessLogic.cpp:105
bool ValidateEnteredZoneOrSubZoneNumber(const unsigned enteredNumber, const bool useSubZones) const
Definition: DestinationBusStopOrZoneSelectionBusinessLogic.cpp:163
The BusinessLogic class is the base class of all business logic classes. Every inherited class has to...
Definition: BusinessLogic.h:11
static const ApplicationDefines::BusinessLogicType mBusinessLogicType
Definition: DestinationBusStopOrZoneSelectionBusinessLogic.h:11
bool SetLastUsedSubZone(const unsigned subZone, const unsigned IDS)
Definition: DestinationBusStopOrZoneSelectionBusinessLogic.cpp:86
static const unsigned UNDEFINED_ZONE_NUMBER
Definition: DestinationBusStopOrZoneSelectionBusinessLogic.h:13
static const unsigned UNDEFINED_SUB_ZONE_NUMBER
Definition: DestinationBusStopOrZoneSelectionBusinessLogic.h:12
void ClearLastUsedZone()
Definition: DestinationBusStopOrZoneSelectionBusinessLogic.cpp:70
bool ObtainIDSNumber(StorageList &stateStorageList, unsigned short &IDSNumber) const
Definition: DestinationBusStopOrZoneSelectionBusinessLogic.cpp:116
virtual ~DestinationBusStopOrZoneSelectionBusinessLogic()
Definition: DestinationBusStopOrZoneSelectionBusinessLogic.cpp:52
bool SetLastUsedZone(const unsigned zone, const unsigned IDS)
Definition: DestinationBusStopOrZoneSelectionBusinessLogic.cpp:56
Definition: DestinationBusStopOrZoneSelectionBusinessLogic.h:8
BusinessLogicType
Definition: ApplicationDefines.h:186
void ClearLastUsedSubZone()
Definition: DestinationBusStopOrZoneSelectionBusinessLogic.cpp:100
unsigned GetAndValidateLastUsedZone(const unsigned currentIDS)
Definition: DestinationBusStopOrZoneSelectionBusinessLogic.cpp:75