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;
18 class DLL_API ECardDataFacadeService
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
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
#define DLL_API
Definition ECardFacadeDefines.h:8
bool GetZone2(unsigned short &zone2) const
Function get zone2 actual service data type on card.
bool IsCardFeatureEnabled(const ECardFacadeDefines::ServiceCardFeatures feature, bool &enabled) const
bool SetTripNumber(const unsigned long tripNumber) const
Function set trip number to service data type on card.
bool GetProtectNumber(unsigned short &protectNumber) const
Function get protect number actual service data type on card.
bool SetTariffArea(const unsigned short tariffArea) const
Function set tariff area to service data type on card.
bool SetZone(const unsigned short actualZone) const
Function set zone to service data type on card.
bool SetServiceCounter(const unsigned char serviceCounter) const
Funciton set service counter to service data type on card.
unsigned short GetRequiredDataReadOperation() const
bool SetValidityEnd(const unsigned long validityEnd) const
Method sets end validity time of service section on card.
bool CheckPassword(const unsigned long pin, bool &matched) const
Method performs PIN check with PIN on card.
bool AddDataTypeToReadRequest(PT::EAplRequest *readRequest[], const unsigned short dataTypesOperation) const
bool SetProtectNumber(const unsigned short protectNumber) const
Function set protect number to service data type on card.
bool IsUnlockDataValid(bool &valid) const
Functions tells if data containing result of SAM unlocking are present.
bool GetPersonalNumber(unsigned long &personalNumber) const
Method returns personal number of card holder.
bool GetCompanyNumber(unsigned long &companyNumber) const
Function get company number actual service data type on card.
bool SetCompanyNumber(const unsigned long companyNumber) const
Function company number number to service data type on card.
ECardFacadeDefines::ReturnValues Init()
bool GetValidityEnd(unsigned long &validityEnd) const
Method returns end validity time of service section on card.
bool SetLineOrder(const unsigned short lineOrder) const
Function set lone order to service data type on card.
bool AddDataToWriteRequest(EM::PT::EDataCollection *writeRequest) const
bool GetDriverNumber(unsigned long &driverNumber) const
Function get driver number actual service data type on card Method returns number of logged driver wh...
bool SetLineNumber(const unsigned long lineNumber) const
Function set line number to service data type on card.
bool GetServiceCardType(ECardFacadeDefines::ServiceCardType &cardType) const
Function get service card type.
bool GetServiceCounter(unsigned char &serviceCounter) const
Funciton get service counter to service data type on card.
bool GetTripNumber(unsigned long &tripNumber) const
Function get trip number actual service data type on card.
bool GetTariffArea(unsigned short &tariffArea) const
Function get tariff area from card.
bool GetCardName(std::string &name, ECardFacadeDefines::TextEncoding &encoding) const
Method returns name of driver ( if possible from service section, otherwise from common section )
bool IsCardBlocked(bool &blocked) const
Checks the status of card. In case of all cards except Em-DesFire it returns the same as CommonFacade...
bool SetDriverNumber(const unsigned long driverNumber) const
Function set driver number to service data type on card.
bool WasUnlockSuccessfull(bool &successfull) const
Function returns if SAM unlocking was successfull (SAM was unlocked)
bool SetZone2(const unsigned short zone2) const
Function set zone2 to service data type on card.
ECardDataFacadeService(ECardDataStorage *dataStorage)
bool GetCardCompanyNumber(unsigned long &companyNumber) const
Returns company number that is "permanently" written on card (not the company number that is written ...
bool GetZone(unsigned short &actualZone) const
Function get actual zone actual service data type on card.
bool GetLineNumber(unsigned long &lineNumber) const
Function get line number actual service data type on card.
bool GetLineOrder(unsigned short &lineOrder) const
Function get line order actual service data type on card.
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