AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ECardDataFacadeCommercialDiscount.h
Go to the documentation of this file.
1 #ifndef ECARDDATAFACADECOMMERCIALDISCOUNT_H
2 #define ECARDDATAFACADECOMMERCIALDISCOUNT_H
3 
4 #include "appcore/cardfacade/ECardFacadeDefines.h"
5 
6 namespace EM
7 {
8  namespace PT
9  {
10  class EDataCollection;
11  class EAplRequest;
12  }
13  namespace CardFacade
14  {
15  class ECardDataStorage;
17  {
18  public:
24 
30 
37 
42  void Clear();
43 
49  bool IsModifiedData() const;
50 
57  bool AddDataTypeToReadRequest(PT::EAplRequest *readRequest[] , unsigned short dataTypesOperation) const;
58 
59 
66  bool AddDataToWriteRequest( EM::PT::EDataCollection *writeRequest ) const;
67 
74  bool IsCardFeatureEnabled( const ECardFacadeDefines::CommercialDiscountCardFeatures feature, bool &enabled ) const;
75 
81  bool GetDiscountCount( unsigned char &discountCount ) const;
82 
90  bool GetLineNumber( const unsigned long discountIndex, unsigned long &lineNumber ) const;
91 
92 
100  bool SetLineNumber( const unsigned long discountIndex, const unsigned long lineNumber ) const;
101 
102 
110  bool GetTripNumber( const unsigned long discountIndex, unsigned short &tripNumber ) const;
111 
112 
120  bool SetTripNumber( const unsigned long discountIndex, const unsigned short tripNumber ) const;
121 
129  bool GetDistance( const unsigned long discountIndex, unsigned char &distance ) const;
130 
138  bool SetDistance( const unsigned long discountIndex, const unsigned char distance ) const;
139 
147  bool GetPrice( const unsigned long discountIndex, unsigned short &price ) const;
148 
156  bool SetPrice( const unsigned long discountIndex, const unsigned short price ) const;
157 
165  bool GetCheckInBusStop( const unsigned long discountIndex, unsigned short &checkInBusStop ) const;
166 
174  bool SetCheckInBusStop( const unsigned long discountIndex, const unsigned short checkInBusStop ) const;
175 
183  bool GetCheckOutBusStop( const unsigned long discountIndex, unsigned short &checkOutBusStop ) const;
184 
192  bool SetCheckOutBusStop( const unsigned long discountIndex, const unsigned short checkOutBusStop ) const;
193 
203  bool GetDiscountTimeValidityStart( const unsigned long discountIndex, unsigned long &discountTimeValidityStart ) const;
204 
214  bool SetDiscountTimeValidityStart( const unsigned long discountIndex, const unsigned long discountTimeValidityStart ) const;
215 
225  bool GetJourneyTimeValidityStart( const unsigned long discountIndex, unsigned long &journeyTimeValidityStart ) const;
226 
236  bool SetJourneyTimeValidityStart( const unsigned long discountIndex, const unsigned long journeyTimeValidityStart ) const;
237 
245  bool GetJourneyCount( const unsigned long discountIndex, unsigned char &journeyCount ) const;
246 
254  bool SetJourneyCount( const unsigned long discountIndex, const unsigned char journeyCount ) const;
255 
263  bool GetActiveDiscountFlag( const unsigned long discountIndex, unsigned char &activeDiscountFlag ) const;
264 
272  bool SetActiveDiscountFlag( const unsigned long discountIndex, const unsigned char activeDiscountFlag ) const;
273 
274  unsigned short GetRequiredDataReadOperation() const;
275 
276  private:
278 
279  class DataClass;
280  DataClass *d;
281 
283  };
284  }
285 }
286 
287 #endif // ECARDDATAFACADECOMMERCIALDISCOUNT_H
ReturnValues
Definition: ECardFacadeDefines.h:144
EEventTripTicketPr __EDATAPTR d
Definition: EEventTripTicket.h:96
Definition: ECardDataFacadeCommercialDiscount.h:16
void SetPrice(unsigned long value)
CommercialDiscountCardFeatures
Definition: ECardFacadeDefines.h:108
__ECLASS DataClass
Definition: EEventUpdateCustomerData.h:35
unsigned long GetPrice()
card data storage, who fill if card readed
Definition: ECardDataStorage.h:59
#define DLL_API
Definition: ECardFacadeDefines.h:8
SYSTEM INCLUDES.
Definition: CardFacadeManagerXML.h:6
void Init(__ESTRING path)