AppCore
Loading...
Searching...
No Matches
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
6namespace EM
7{
8 namespace PT
9 {
10 class EDataCollection;
11 class EAplRequest;
12 }
13 namespace CardFacade
14 {
15 class ECardDataStorage;
16 class DLL_API ECardDataFacadeCommercialDiscount
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
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
#define DLL_API
Definition ECardFacadeDefines.h:8
bool GetJourneyTimeValidityStart(const unsigned long discountIndex, unsigned long &journeyTimeValidityStart) const
bool AddDataToWriteRequest(EM::PT::EDataCollection *writeRequest) const
bool SetTripNumber(const unsigned long discountIndex, const unsigned short tripNumber) const
bool GetActiveDiscountFlag(const unsigned long discountIndex, unsigned char &activeDiscountFlag) const
bool GetTripNumber(const unsigned long discountIndex, unsigned short &tripNumber) const
bool IsCardFeatureEnabled(const ECardFacadeDefines::CommercialDiscountCardFeatures feature, bool &enabled) const
bool SetJourneyCount(const unsigned long discountIndex, const unsigned char journeyCount) const
bool AddDataTypeToReadRequest(PT::EAplRequest *readRequest[], unsigned short dataTypesOperation) const
ECardFacadeDefines::ReturnValues Init()
bool SetCheckOutBusStop(const unsigned long discountIndex, const unsigned short checkOutBusStop) const
ECardDataFacadeCommercialDiscount(ECardDataStorage *cardDataStorage)
bool SetActiveDiscountFlag(const unsigned long discountIndex, const unsigned char activeDiscountFlag) const
bool GetDistance(const unsigned long discountIndex, unsigned char &distance) const
bool SetDistance(const unsigned long discountIndex, const unsigned char distance) const
bool GetDiscountCount(unsigned char &discountCount) const
bool SetCheckInBusStop(const unsigned long discountIndex, const unsigned short checkInBusStop) const
bool GetCheckInBusStop(const unsigned long discountIndex, unsigned short &checkInBusStop) const
bool GetJourneyCount(const unsigned long discountIndex, unsigned char &journeyCount) const
bool GetCheckOutBusStop(const unsigned long discountIndex, unsigned short &checkOutBusStop) const
bool SetJourneyTimeValidityStart(const unsigned long discountIndex, const unsigned long journeyTimeValidityStart) const
bool GetLineNumber(const unsigned long discountIndex, unsigned long &lineNumber) const
bool GetPrice(const unsigned long discountIndex, unsigned short &price) const
bool SetDiscountTimeValidityStart(const unsigned long discountIndex, const unsigned long discountTimeValidityStart) const
bool SetPrice(const unsigned long discountIndex, const unsigned short price) const
bool SetLineNumber(const unsigned long discountIndex, const unsigned long lineNumber) const
bool GetDiscountTimeValidityStart(const unsigned long discountIndex, unsigned long &discountTimeValidityStart) const
card data storage, who fill if card readed
Definition ECardDataStorage.h:60
CommercialDiscountCardFeatures
Definition ECardFacadeDefines.h:109
ReturnValues
Definition ECardFacadeDefines.h:145
SYSTEM INCLUDES.
Definition CardFacadeManagerXML.h:7