AppCore
Loading...
Searching...
No Matches
ECommonFacadeMifareIDOL.h
Go to the documentation of this file.
1#ifndef ECOMMONFACADEMIFAREIDOL_H
2#define ECOMMONFACADEMIFAREIDOL_H
3
5
6namespace EM
7{
8 namespace CardFacade
9 {
10 class ECardDataStorage;
12 {
13 public:
14 ECommonFacadeMifareIDOL( ECardDataStorage *cardDataStorage );
16
17 bool GetLogicalCardNumber( unsigned long &logicalCardNumber, signed char index = -1 );
18 bool GetLogicalCardNumber( std::string &logicalCardNumber, signed char index = -1 );
19
20 bool GetFareProviderNumber( unsigned short &fareProviderNumber, signed char fareProviderIndex = -1 );
21 bool SetFareProviderNumber( unsigned short fareProviderNumber, signed char index = -1 );
22
23 bool GetCardPublisherNumber( unsigned short &cardPublisherNumber );
24 bool SetCardPublisherNumber( unsigned short cardPublisherNumber );
25
26 bool GetUID( std::string &uid );
27 bool GetRawUID( unsigned char *&uid );
28
29 bool GetCardNumber( unsigned long &cardNumber );
30 bool SetCardNumber( unsigned long cardNumber );
31
32 bool GetCardValidityEnd( unsigned long &cardValidityEnd );
33 bool SetCardValidityEnd( unsigned long cardValidityEnd );
34
35 bool GetCardAdditionalDiscountValidity( unsigned long &additionalDiscountValidity, signed char index = -1 );
36 bool SetCardAdditionalDiscountValidity( unsigned long additionalDiscountValidity, signed char index = -1 );
37
38 bool GetCustomerProfilesCount( unsigned char &customerProfilesCount );
39
40 bool GetCustomerProfileValidityEnd( unsigned long &customerProfileValidityEnd, unsigned char customerProfileIndex = 0, signed char index = -1 );
41 bool SetCustomerProfileValidityEnd( unsigned long customerProfileValidityEnd, unsigned char customerProfileIndex = 0, signed char index = -1 ) ;
42
43 bool GetCustomerProfileValidityStart( unsigned long &customerProfileValidityStart, unsigned char customerProfileIndex = 0, signed char index = -1 ) ;
44 bool SetCustomerProfileValidityStart( unsigned long customerProfileValidityStart, unsigned char customerProfileIndex = 0, signed char index = -1 ) ;
45
46 bool GetCardTypeAndSubType( unsigned short &cardType, unsigned short &cardSubType, ECardFacadeDefines::CardTypeStandard &cardStandard, unsigned char customerProfileIndex, signed char index = -1 );
47 bool SetCardTypeAndSubType( unsigned short cardType, unsigned short cardSubType, unsigned char customerProfileIndex, signed char index = -1 );
48
49 bool GetSaleDate( unsigned long &saleDate, signed char index = -1 );
50 bool SetSaleDate( unsigned long saleDate, signed char index = -1 );
51
52 bool IsCardBlocked( bool &cardBlocked, signed char index = -1 );
53 bool SetCardBlocked( bool blocked, signed char index = -1 );
54
55 bool IsCardSold( bool &cardSold, signed char index = -1 );
56 bool SetCardSold( bool sold, signed char index = -1 );
57
58 bool IsServiceCard( bool &serviceCard );
59 bool SetServiceCard( bool serviceCard );
60
61 bool GetCardRegionCode( unsigned long &regionCode );
62 bool SetCardRegionCode( unsigned long regionCode );
63
64 bool GetCardCityCode( unsigned long &cityCode );
65 bool SetCardCityCode( unsigned long cityCode );
66
67 bool GetNetworkCode( unsigned short &networkCode );
68 bool SetNetworkCode( unsigned short networkCode );
69
70 bool GetCountryCode( unsigned short &countryCodeInBCD );
71 bool SetCountryCode( unsigned short countryCodeInBCD );
72
73 bool GetAppExpireDate( unsigned long &appExpireDate );
74 bool SetAppExpireDate( unsigned long appExpireDate );
75
76 bool GetAppIssuerType( unsigned short &appIssuerType );
77 bool SetAppIssuerType( unsigned short appIssuerType );
78
79 bool GetBornNumber( unsigned long &bornNumber );
80 bool SetBornNumber( unsigned long bornNumber );
81
82 bool GetCardOwnerName( char *ownerName, unsigned short &nameLength, ECardFacadeDefines::TextEncoding &encoding );
83 bool SetCardOwnerName( char *ownerName, unsigned short nameLength );
84
85 bool GetCardOwnerSurname( char *ownerSurname, unsigned short &surnameLength, ECardFacadeDefines::TextEncoding &encoding );
86 bool SetCardOwnerSurname( char *ownerSurname, unsigned short surnameLength );
87
88 bool SetPublisherProviderID( unsigned long publisherProviderId );
89 bool GetPublisherProviderID( unsigned long &publisherProviderId );
90
91 bool IsDiscountCouponValid( bool &isDiscountCouponValid, signed char couponIndex );
92 bool GetNumberOfDiscountCoupons( unsigned long &numberOfCoupons );
93
94 bool GetDiscountCouponValidityEnd(unsigned long &couponValidityEnd, signed char couponIndex );
95 bool SetDiscountCouponValidityEnd(unsigned long couponValidityEnd, signed char couponIndex );
96
97 bool GetDiscountCouponValidityStart(unsigned long &couponValidityStart, signed char couponIndex );
98 bool GetDiscountCouponRegionCode( unsigned long &couponRegionCode, signed char couponIndex );
99 bool GetDiscountCouponType(unsigned long &couponType, signed char couponIndex );
100
101 bool GetCardPublisherVersion( unsigned char &publisherVersion );
102 bool SetCardPublisherVersion( unsigned char publisherVersion );
103
104 bool GetDailyCappingDate( unsigned long &dailyCappingDate );
105 bool SetDailyCappingDate( unsigned long dailyCappingDate );
106
107 bool GetDailyCappingSum( unsigned short &dailyCappingSum );
108 bool SetDailyCappingSum( unsigned short dailyCappingSum );
109
110 bool GetWeeklyCappingDate( unsigned long &weeklyCappingDate );
111 bool SetWeeklyCappingDate( unsigned long weeklyCappingDate );
112
113 bool GetWeeklyCappingSum( unsigned short &weeklyCappingSum );
114 bool SetWeeklyCappingSum( unsigned short weeklyCappingSum );
115
116 bool GetCappingProvider( unsigned short &cappingProvider );
117 bool SetCappingProvider( unsigned short cappingProvider );
118
121
122 bool GetEventCount( unsigned long &eventCount );
123
124 bool GetCommonDataCount( unsigned char &commonDataCount );
125
126 bool IsTransportSectionValid( bool &tranportSectionValid, signed char index = -1 );
127
128 bool PrepareWriteRequest( EM::PT::EDataCollection *writeRequest );
129
130 bool AddDataTypeToReadRequest( PT::EAplRequest *readRequest, unsigned short dataTypesOperation );
131
132 virtual bool IsCommonDataFeatureEnabled( ECardFacadeDefines::CommonDataFeatures feature, bool &enabled );
133
134 unsigned short GetRequiredDataReadOperation( unsigned short dataTypesOperation ) const;
135
136 virtual bool IsDataValid( bool &validData, signed char index = -1 );
137
138 bool IsModifiedData();
139 void Clear();
140
141 private:
143
144 class DataClass;
145 DataClass *d;
146
148 };
149 }
150}
151
152#endif // ECOMMONFACADEMIFAREIDOL_H
Definition ECommonFacadeMifareIDOL.cpp:29
card data storage, who fill if card readed
Definition ECardDataStorage.h:60
CappingProviderType
Definition ECardFacadeDefines.h:280
CardTypeStandard
Definition ECardFacadeDefines.h:248
CommonDataFeatures
Definition ECardFacadeDefines.h:135
TextEncoding
Definition ECardFacadeDefines.h:217
Definition ECommonFacadeMifareIDOL.h:12
bool SetDailyCappingDate(unsigned long dailyCappingDate)
Definition ECommonFacadeMifareIDOL.cpp:628
bool SetDiscountCouponValidityEnd(unsigned long couponValidityEnd, signed char couponIndex)
Definition ECommonFacadeMifareIDOL.cpp:586
bool GetLogicalCardNumber(std::string &logicalCardNumber, signed char index=-1)
bool GetRawUID(unsigned char *&uid)
Definition ECommonFacadeMifareIDOL.cpp:117
bool GetCardPublisherVersion(unsigned char &publisherVersion)
Definition ECommonFacadeMifareIDOL.cpp:610
unsigned short GetRequiredDataReadOperation(unsigned short dataTypesOperation) const
Definition ECommonFacadeMifareIDOL.cpp:765
bool IsCardSold(bool &cardSold, signed char index=-1)
Definition ECommonFacadeMifareIDOL.cpp:312
bool GetCardOwnerSurname(char *ownerSurname, unsigned short &surnameLength, ECardFacadeDefines::TextEncoding &encoding)
Definition ECommonFacadeMifareIDOL.cpp:516
bool GetPublisherProviderID(unsigned long &publisherProviderId)
Definition ECommonFacadeMifareIDOL.cpp:562
bool GetDailyCappingSum(unsigned short &dailyCappingSum)
Definition ECommonFacadeMifareIDOL.cpp:634
bool SetCappingProviderType(ECardFacadeDefines::CappingProviderType cappingProviderType)
Definition ECommonFacadeMifareIDOL.cpp:688
bool SetAppIssuerType(unsigned short appIssuerType)
Definition ECommonFacadeMifareIDOL.cpp:439
bool SetCardAdditionalDiscountValidity(unsigned long additionalDiscountValidity, signed char index=-1)
Definition ECommonFacadeMifareIDOL.cpp:169
bool SetDailyCappingSum(unsigned short dailyCappingSum)
Definition ECommonFacadeMifareIDOL.cpp:640
bool SetCardCityCode(unsigned long cityCode)
Definition ECommonFacadeMifareIDOL.cpp:354
bool GetFareProviderNumber(unsigned short &fareProviderNumber, signed char fareProviderIndex=-1)
Definition ECommonFacadeMifareIDOL.cpp:271
bool SetBornNumber(unsigned long bornNumber)
Definition ECommonFacadeMifareIDOL.cpp:463
bool GetUID(std::string &uid)
Definition ECommonFacadeMifareIDOL.cpp:103
bool GetDiscountCouponType(unsigned long &couponType, signed char couponIndex)
Definition ECommonFacadeMifareIDOL.cpp:604
bool SetCardValidityEnd(unsigned long cardValidityEnd)
Definition ECommonFacadeMifareIDOL.cpp:151
bool SetCountryCode(unsigned short countryCodeInBCD)
Definition ECommonFacadeMifareIDOL.cpp:397
bool SetWeeklyCappingDate(unsigned long weeklyCappingDate)
Definition ECommonFacadeMifareIDOL.cpp:652
bool GetAppExpireDate(unsigned long &appExpireDate)
Definition ECommonFacadeMifareIDOL.cpp:410
bool IsTransportSectionValid(bool &tranportSectionValid, signed char index=-1)
Definition ECommonFacadeMifareIDOL.cpp:706
bool SetCardNumber(unsigned long cardNumber)
Definition ECommonFacadeMifareIDOL.cpp:134
bool SetWeeklyCappingSum(unsigned short weeklyCappingSum)
Definition ECommonFacadeMifareIDOL.cpp:664
bool IsCardBlocked(bool &cardBlocked, signed char index=-1)
Definition ECommonFacadeMifareIDOL.cpp:801
bool GetCardOwnerName(char *ownerName, unsigned short &nameLength, ECardFacadeDefines::TextEncoding &encoding)
Definition ECommonFacadeMifareIDOL.cpp:476
bool SetFareProviderNumber(unsigned short fareProviderNumber, signed char index=-1)
Definition ECommonFacadeMifareIDOL.cpp:282
bool GetCustomerProfilesCount(unsigned char &customerProfilesCount)
Definition ECommonFacadeMifareIDOL.cpp:175
bool GetCommonDataCount(unsigned char &commonDataCount)
Definition ECommonFacadeMifareIDOL.cpp:700
bool SetCappingProvider(unsigned short cappingProvider)
Definition ECommonFacadeMifareIDOL.cpp:676
bool SetCardSold(bool sold, signed char index=-1)
Definition ECommonFacadeMifareIDOL.cpp:318
bool SetCardTypeAndSubType(unsigned short cardType, unsigned short cardSubType, unsigned char customerProfileIndex, signed char index=-1)
Definition ECommonFacadeMifareIDOL.cpp:839
bool GetCardTypeAndSubType(unsigned short &cardType, unsigned short &cardSubType, ECardFacadeDefines::CardTypeStandard &cardStandard, unsigned char customerProfileIndex, signed char index=-1)
Definition ECommonFacadeMifareIDOL.cpp:813
bool SetCustomerProfileValidityEnd(unsigned long customerProfileValidityEnd, unsigned char customerProfileIndex=0, signed char index=-1)
Definition ECommonFacadeMifareIDOL.cpp:203
bool SetSaleDate(unsigned long saleDate, signed char index=-1)
Definition ECommonFacadeMifareIDOL.cpp:870
bool SetCardOwnerSurname(char *ownerSurname, unsigned short surnameLength)
Definition ECommonFacadeMifareIDOL.cpp:543
bool SetAppExpireDate(unsigned long appExpireDate)
Definition ECommonFacadeMifareIDOL.cpp:421
bool GetCardValidityEnd(unsigned long &cardValidityEnd)
Definition ECommonFacadeMifareIDOL.cpp:140
bool GetCardRegionCode(unsigned long &regionCode)
Definition ECommonFacadeMifareIDOL.cpp:336
bool SetCardPublisherVersion(unsigned char publisherVersion)
Definition ECommonFacadeMifareIDOL.cpp:616
bool IsModifiedData()
Definition ECommonFacadeMifareIDOL.cpp:777
bool PrepareWriteRequest(EM::PT::EDataCollection *writeRequest)
Definition ECommonFacadeMifareIDOL.cpp:712
bool SetNetworkCode(unsigned short networkCode)
Definition ECommonFacadeMifareIDOL.cpp:372
bool GetLogicalCardNumber(unsigned long &logicalCardNumber, signed char index=-1)
Definition ECommonFacadeMifareIDOL.cpp:67
bool SetCardPublisherNumber(unsigned short cardPublisherNumber)
Definition ECommonFacadeMifareIDOL.cpp:306
bool GetNetworkCode(unsigned short &networkCode)
Definition ECommonFacadeMifareIDOL.cpp:360
bool GetSaleDate(unsigned long &saleDate, signed char index=-1)
Definition ECommonFacadeMifareIDOL.cpp:864
bool GetCardAdditionalDiscountValidity(unsigned long &additionalDiscountValidity, signed char index=-1)
Definition ECommonFacadeMifareIDOL.cpp:163
bool GetCappingProviderType(ECardFacadeDefines::CappingProviderType &cappingProviderType)
Definition ECommonFacadeMifareIDOL.cpp:682
virtual bool IsCommonDataFeatureEnabled(ECardFacadeDefines::CommonDataFeatures feature, bool &enabled)
Definition ECommonFacadeMifareIDOL.cpp:749
bool SetCardOwnerName(char *ownerName, unsigned short nameLength)
Definition ECommonFacadeMifareIDOL.cpp:503
bool GetAppIssuerType(unsigned short &appIssuerType)
Definition ECommonFacadeMifareIDOL.cpp:433
bool GetCountryCode(unsigned short &countryCodeInBCD)
Definition ECommonFacadeMifareIDOL.cpp:385
bool GetCardCityCode(unsigned long &cityCode)
Definition ECommonFacadeMifareIDOL.cpp:348
bool GetDiscountCouponValidityStart(unsigned long &couponValidityStart, signed char couponIndex)
Definition ECommonFacadeMifareIDOL.cpp:592
bool SetCardBlocked(bool blocked, signed char index=-1)
Definition ECommonFacadeMifareIDOL.cpp:807
bool GetCappingProvider(unsigned short &cappingProvider)
Definition ECommonFacadeMifareIDOL.cpp:670
virtual bool IsDataValid(bool &validData, signed char index=-1)
Definition ECommonFacadeMifareIDOL.cpp:771
bool SetServiceCard(bool serviceCard)
Definition ECommonFacadeMifareIDOL.cpp:330
bool GetCustomerProfileValidityEnd(unsigned long &customerProfileValidityEnd, unsigned char customerProfileIndex=0, signed char index=-1)
Definition ECommonFacadeMifareIDOL.cpp:181
bool SetCardRegionCode(unsigned long regionCode)
Definition ECommonFacadeMifareIDOL.cpp:342
bool GetNumberOfDiscountCoupons(unsigned long &numberOfCoupons)
Definition ECommonFacadeMifareIDOL.cpp:574
bool AddDataTypeToReadRequest(PT::EAplRequest *readRequest, unsigned short dataTypesOperation)
Definition ECommonFacadeMifareIDOL.cpp:743
bool GetEventCount(unsigned long &eventCount)
Definition ECommonFacadeMifareIDOL.cpp:694
bool IsDiscountCouponValid(bool &isDiscountCouponValid, signed char couponIndex)
Definition ECommonFacadeMifareIDOL.cpp:568
bool GetCardNumber(unsigned long &cardNumber)
Definition ECommonFacadeMifareIDOL.cpp:128
void Clear()
Definition ECommonFacadeMifareIDOL.cpp:794
bool GetBornNumber(unsigned long &bornNumber)
Definition ECommonFacadeMifareIDOL.cpp:445
bool IsServiceCard(bool &serviceCard)
Definition ECommonFacadeMifareIDOL.cpp:324
bool GetWeeklyCappingDate(unsigned long &weeklyCappingDate)
Definition ECommonFacadeMifareIDOL.cpp:646
bool GetDiscountCouponRegionCode(unsigned long &couponRegionCode, signed char couponIndex)
Definition ECommonFacadeMifareIDOL.cpp:598
~ECommonFacadeMifareIDOL()
Definition ECommonFacadeMifareIDOL.cpp:62
bool GetDailyCappingDate(unsigned long &dailyCappingDate)
Definition ECommonFacadeMifareIDOL.cpp:622
bool GetWeeklyCappingSum(unsigned short &weeklyCappingSum)
Definition ECommonFacadeMifareIDOL.cpp:658
bool GetCardPublisherNumber(unsigned short &cardPublisherNumber)
Definition ECommonFacadeMifareIDOL.cpp:295
bool GetDiscountCouponValidityEnd(unsigned long &couponValidityEnd, signed char couponIndex)
Definition ECommonFacadeMifareIDOL.cpp:580
bool SetCustomerProfileValidityStart(unsigned long customerProfileValidityStart, unsigned char customerProfileIndex=0, signed char index=-1)
Definition ECommonFacadeMifareIDOL.cpp:248
bool GetCustomerProfileValidityStart(unsigned long &customerProfileValidityStart, unsigned char customerProfileIndex=0, signed char index=-1)
Definition ECommonFacadeMifareIDOL.cpp:226
bool SetPublisherProviderID(unsigned long publisherProviderId)
Definition ECommonFacadeMifareIDOL.cpp:556
Definition ECommonFacade.h:22
SYSTEM INCLUDES.
Definition CardFacadeManagerXML.h:7