AppCore
Loading...
Searching...
No Matches
ECardDataFacadeService.h
Go to the documentation of this file.
1 #ifndef ECARDDATAFACADESERVICE_H
2#define ECARDDATAFACADESERVICE_H
3
4#include <string>
5#include "appcore/cardfacade/ECardFacadeDefines.h"
6
7namespace EM
8{
9 namespace PT
10 {
11 class EAplRequest;
12 class EDataCollection;
13 }
14
15 namespace CardFacade
16 {
17 class ECardDataStorage;
19 {
20 public:
23
28 void Clear();
29
30
37
43 bool GetValidityEnd( unsigned long &validityEnd ) const;
44
50 bool SetValidityEnd( const unsigned long validityEnd ) const;
51
59 bool GetCardName( std::string &name, ECardFacadeDefines::TextEncoding &encoding ) const;
60
66 bool GetPersonalNumber( unsigned long &personalNumber ) const;
67
73 bool GetCardCompanyNumber( unsigned long &companyNumber ) const;
74
82 bool CheckPassword( const unsigned long pin, bool &matched ) const;
83
87 bool SetDriverNumber( const unsigned long driverNumber ) const;
88
95 bool GetDriverNumber( unsigned long &driverNumber ) const;
96
100 bool SetCompanyNumber( const unsigned long companyNumber ) const;
101
105 bool GetCompanyNumber( unsigned long &companyNumber ) const;
106
110 bool SetLineNumber( const unsigned long lineNumber ) const;
111
115 bool GetLineNumber( unsigned long &lineNumber ) const;
116
120 bool SetTripNumber(const unsigned long tripNumber ) const;
121
125 bool GetTripNumber( unsigned long &tripNumber ) const;
126
130 bool SetLineOrder( const unsigned short lineOrder ) const;
131
135 bool GetLineOrder( unsigned short &lineOrder ) const;
136
140 bool SetZone( const unsigned short actualZone ) const;
141
145 bool SetZone2( const unsigned short zone2 ) const;
146
150 bool SetTariffArea( const unsigned short tariffArea ) const;
151
155 bool GetTariffArea( unsigned short &tariffArea ) const;
156
160 bool GetZone( unsigned short &actualZone ) const;
161
165 bool GetZone2( unsigned short &zone2 ) const;
166
170 bool SetProtectNumber( const unsigned short protectNumber ) const;
171
175 bool GetProtectNumber( unsigned short &protectNumber ) const;
176
180 bool SetServiceCounter( const unsigned char serviceCounter ) const;
181
185 bool GetServiceCounter( unsigned char &serviceCounter ) const;
186
190 bool GetServiceCardType( ECardFacadeDefines::ServiceCardType &cardType ) const;
191
195 bool IsUnlockDataValid( bool &valid ) const;
196
200 bool WasUnlockSuccessfull( bool &successfull ) const;
201
205 bool IsCardBlocked( bool &blocked ) const;
206
212 bool AddDataToWriteRequest( EM::PT::EDataCollection *writeRequest ) const;
213
220 bool AddDataTypeToReadRequest( PT::EAplRequest *readRequest[] , const unsigned short dataTypesOperation) const;
221
227 bool IsModifiedData() const;
228
235 bool IsCardFeatureEnabled( const ECardFacadeDefines::ServiceCardFeatures feature, bool &enabled ) const;
236
237 unsigned short GetRequiredDataReadOperation() const;
238
239 private:
241
242 class DataClass;
243 DataClass *d;
244
246 };
247 }
248}
249
250#endif // ECARDDATAFACADESERVICE_H
unsigned short GetZone(int value)
unsigned short SetZone(int index, unsigned short value)
void Init(__ESTRING path)
#define DLL_API
Definition ECardFacadeDefines.h:8
Definition ECardDataFacadeService.h:19
bool AddDataTypeToReadRequest(PT::EAplRequest *readRequest[], const unsigned short dataTypesOperation) const
bool AddDataToWriteRequest(EM::PT::EDataCollection *writeRequest) const
card data storage, who fill if card readed
Definition ECardDataStorage.h:60
ServiceCardFeatures
Definition ECardFacadeDefines.h:104
ReturnValues
Definition ECardFacadeDefines.h:145
ServiceCardType
Definition ECardFacadeDefines.h:239
TextEncoding
Definition ECardFacadeDefines.h:217
SYSTEM INCLUDES.
Definition CardFacadeManagerXML.h:7