AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ECommonFacadeMifareIDOL.h
Go to the documentation of this file.
1 #ifndef ECOMMONFACADEMIFAREIDOL_H
2 #define ECOMMONFACADEMIFAREIDOL_H
3 
4 #include "ECommonFacadeMifare.h"
5 
6 namespace 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
bool AddDataTypeToReadRequest(PT::EAplRequest *readRequest, unsigned short dataTypesOperation)
Definition: ECommonFacadeMifareIDOL.cpp:743
bool IsCardBlocked(bool &cardBlocked, signed char index=-1)
Definition: ECommonFacadeMifareIDOL.cpp:801
bool SetCardTypeAndSubType(unsigned short cardType, unsigned short cardSubType, unsigned char customerProfileIndex, signed char index=-1)
Definition: ECommonFacadeMifareIDOL.cpp:839
bool GetCardPublisherNumber(unsigned short &cardPublisherNumber)
Definition: ECommonFacadeMifareIDOL.cpp:295
bool GetCardValidityEnd(unsigned long &cardValidityEnd)
Definition: ECommonFacadeMifareIDOL.cpp:140
unsigned short GetRequiredDataReadOperation(unsigned short dataTypesOperation) const
Definition: ECommonFacadeMifareIDOL.cpp:765
bool SetCardPublisherNumber(unsigned short cardPublisherNumber)
Definition: ECommonFacadeMifareIDOL.cpp:306
bool IsDiscountCouponValid(bool &isDiscountCouponValid, signed char couponIndex)
Definition: ECommonFacadeMifareIDOL.cpp:568
bool SetCappingProviderType(ECardFacadeDefines::CappingProviderType cappingProviderType)
Definition: ECommonFacadeMifareIDOL.cpp:688
Definition: ECommonFacade.h:21
bool SetAppExpireDate(unsigned long appExpireDate)
Definition: ECommonFacadeMifareIDOL.cpp:421
bool GetNumberOfDiscountCoupons(unsigned long &numberOfCoupons)
Definition: ECommonFacadeMifareIDOL.cpp:574
bool SetCardBlocked(bool blocked, signed char index=-1)
Definition: ECommonFacadeMifareIDOL.cpp:807
CappingProviderType
Definition: ECardFacadeDefines.h:279
bool IsModifiedData()
Definition: ECommonFacadeMifareIDOL.cpp:777
bool GetCardNumber(unsigned long &cardNumber)
Definition: ECommonFacadeMifareIDOL.cpp:128
bool SetWeeklyCappingDate(unsigned long weeklyCappingDate)
Definition: ECommonFacadeMifareIDOL.cpp:652
bool SetFareProviderNumber(unsigned short fareProviderNumber, signed char index=-1)
Definition: ECommonFacadeMifareIDOL.cpp:282
bool SetPublisherProviderID(unsigned long publisherProviderId)
Definition: ECommonFacadeMifareIDOL.cpp:556
bool GetSaleDate(unsigned long &saleDate, signed char index=-1)
Definition: ECommonFacadeMifareIDOL.cpp:864
bool GetCardPublisherVersion(unsigned char &publisherVersion)
Definition: ECommonFacadeMifareIDOL.cpp:610
bool IsCardSold(bool &cardSold, signed char index=-1)
Definition: ECommonFacadeMifareIDOL.cpp:312
EEventTripTicketPr __EDATAPTR d
Definition: EEventTripTicket.h:96
bool SetWeeklyCappingSum(unsigned short weeklyCappingSum)
Definition: ECommonFacadeMifareIDOL.cpp:664
bool GetAppIssuerType(unsigned short &appIssuerType)
Definition: ECommonFacadeMifareIDOL.cpp:433
ECommonFacadeMifareIDOL(ECardDataStorage *cardDataStorage)
Definition: ECommonFacadeMifareIDOL.cpp:51
bool GetCappingProvider(unsigned short &cappingProvider)
Definition: ECommonFacadeMifareIDOL.cpp:670
bool GetCountryCode(unsigned short &countryCodeInBCD)
Definition: ECommonFacadeMifareIDOL.cpp:385
bool GetRawUID(unsigned char *&uid)
Definition: ECommonFacadeMifareIDOL.cpp:117
bool SetServiceCard(bool serviceCard)
Definition: ECommonFacadeMifareIDOL.cpp:330
bool GetCardCityCode(unsigned long &cityCode)
Definition: ECommonFacadeMifareIDOL.cpp:348
bool SetCardAdditionalDiscountValidity(unsigned long additionalDiscountValidity, signed char index=-1)
Definition: ECommonFacadeMifareIDOL.cpp:169
bool SetCustomerProfileValidityStart(unsigned long customerProfileValidityStart, unsigned char customerProfileIndex=0, signed char index=-1)
Definition: ECommonFacadeMifareIDOL.cpp:248
bool SetCardOwnerName(char *ownerName, unsigned short nameLength)
Definition: ECommonFacadeMifareIDOL.cpp:503
void Clear()
Definition: ECommonFacadeMifareIDOL.cpp:794
bool GetCommonDataCount(unsigned char &commonDataCount)
Definition: ECommonFacadeMifareIDOL.cpp:700
bool SetCardRegionCode(unsigned long regionCode)
Definition: ECommonFacadeMifareIDOL.cpp:342
bool GetDailyCappingDate(unsigned long &dailyCappingDate)
Definition: ECommonFacadeMifareIDOL.cpp:622
bool SetBornNumber(unsigned long bornNumber)
Definition: ECommonFacadeMifareIDOL.cpp:463
virtual bool IsCommonDataFeatureEnabled(ECardFacadeDefines::CommonDataFeatures feature, bool &enabled)
Definition: ECommonFacadeMifareIDOL.cpp:749
bool SetCountryCode(unsigned short countryCodeInBCD)
Definition: ECommonFacadeMifareIDOL.cpp:397
bool GetDiscountCouponRegionCode(unsigned long &couponRegionCode, signed char couponIndex)
Definition: ECommonFacadeMifareIDOL.cpp:598
bool SetCardPublisherVersion(unsigned char publisherVersion)
Definition: ECommonFacadeMifareIDOL.cpp:616
bool GetAppExpireDate(unsigned long &appExpireDate)
Definition: ECommonFacadeMifareIDOL.cpp:410
bool GetWeeklyCappingDate(unsigned long &weeklyCappingDate)
Definition: ECommonFacadeMifareIDOL.cpp:646
bool GetLogicalCardNumber(unsigned long &logicalCardNumber, signed char index=-1)
Definition: ECommonFacadeMifareIDOL.cpp:67
bool GetCardTypeAndSubType(unsigned short &cardType, unsigned short &cardSubType, ECardFacadeDefines::CardTypeStandard &cardStandard, unsigned char customerProfileIndex, signed char index=-1)
Definition: ECommonFacadeMifareIDOL.cpp:813
bool SetCardSold(bool sold, signed char index=-1)
Definition: ECommonFacadeMifareIDOL.cpp:318
bool SetCardCityCode(unsigned long cityCode)
Definition: ECommonFacadeMifareIDOL.cpp:354
bool SetCardOwnerSurname(char *ownerSurname, unsigned short surnameLength)
Definition: ECommonFacadeMifareIDOL.cpp:543
bool GetBornNumber(unsigned long &bornNumber)
Definition: ECommonFacadeMifareIDOL.cpp:445
bool SetDailyCappingDate(unsigned long dailyCappingDate)
Definition: ECommonFacadeMifareIDOL.cpp:628
bool GetDiscountCouponType(unsigned long &couponType, signed char couponIndex)
Definition: ECommonFacadeMifareIDOL.cpp:604
Definition: ECommonFacadeMifareIDOL.h:11
bool SetDailyCappingSum(unsigned short dailyCappingSum)
Definition: ECommonFacadeMifareIDOL.cpp:640
bool GetCardOwnerSurname(char *ownerSurname, unsigned short &surnameLength, ECardFacadeDefines::TextEncoding &encoding)
Definition: ECommonFacadeMifareIDOL.cpp:516
bool IsTransportSectionValid(bool &tranportSectionValid, signed char index=-1)
Definition: ECommonFacadeMifareIDOL.cpp:706
TextEncoding
Definition: ECardFacadeDefines.h:216
bool PrepareWriteRequest(EM::PT::EDataCollection *writeRequest)
Definition: ECommonFacadeMifareIDOL.cpp:712
bool GetCardRegionCode(unsigned long &regionCode)
Definition: ECommonFacadeMifareIDOL.cpp:336
virtual bool IsDataValid(bool &validData, signed char index=-1)
Definition: ECommonFacadeMifareIDOL.cpp:771
bool GetCustomerProfilesCount(unsigned char &customerProfilesCount)
Definition: ECommonFacadeMifareIDOL.cpp:175
bool GetPublisherProviderID(unsigned long &publisherProviderId)
Definition: ECommonFacadeMifareIDOL.cpp:562
bool SetCustomerProfileValidityEnd(unsigned long customerProfileValidityEnd, unsigned char customerProfileIndex=0, signed char index=-1)
Definition: ECommonFacadeMifareIDOL.cpp:203
card data storage, who fill if card readed
Definition: ECardDataStorage.h:59
bool GetUID(std::string &uid)
Definition: ECommonFacadeMifareIDOL.cpp:103
bool SetSaleDate(unsigned long saleDate, signed char index=-1)
Definition: ECommonFacadeMifareIDOL.cpp:870
bool SetDiscountCouponValidityEnd(unsigned long couponValidityEnd, signed char couponIndex)
Definition: ECommonFacadeMifareIDOL.cpp:586
bool GetWeeklyCappingSum(unsigned short &weeklyCappingSum)
Definition: ECommonFacadeMifareIDOL.cpp:658
bool GetCappingProviderType(ECardFacadeDefines::CappingProviderType &cappingProviderType)
Definition: ECommonFacadeMifareIDOL.cpp:682
bool SetCardNumber(unsigned long cardNumber)
Definition: ECommonFacadeMifareIDOL.cpp:134
bool GetCardAdditionalDiscountValidity(unsigned long &additionalDiscountValidity, signed char index=-1)
Definition: ECommonFacadeMifareIDOL.cpp:163
bool SetCardValidityEnd(unsigned long cardValidityEnd)
Definition: ECommonFacadeMifareIDOL.cpp:151
bool GetDailyCappingSum(unsigned short &dailyCappingSum)
Definition: ECommonFacadeMifareIDOL.cpp:634
SYSTEM INCLUDES.
Definition: CardFacadeManagerXML.h:6
bool SetCappingProvider(unsigned short cappingProvider)
Definition: ECommonFacadeMifareIDOL.cpp:676
bool GetNetworkCode(unsigned short &networkCode)
Definition: ECommonFacadeMifareIDOL.cpp:360
CardTypeStandard
Definition: ECardFacadeDefines.h:247
CommonDataFeatures
Definition: ECardFacadeDefines.h:134
bool SetNetworkCode(unsigned short networkCode)
Definition: ECommonFacadeMifareIDOL.cpp:372
bool GetDiscountCouponValidityEnd(unsigned long &couponValidityEnd, signed char couponIndex)
Definition: ECommonFacadeMifareIDOL.cpp:580
bool GetCustomerProfileValidityEnd(unsigned long &customerProfileValidityEnd, unsigned char customerProfileIndex=0, signed char index=-1)
Definition: ECommonFacadeMifareIDOL.cpp:181
bool GetCardOwnerName(char *ownerName, unsigned short &nameLength, ECardFacadeDefines::TextEncoding &encoding)
Definition: ECommonFacadeMifareIDOL.cpp:476
bool GetDiscountCouponValidityStart(unsigned long &couponValidityStart, signed char couponIndex)
Definition: ECommonFacadeMifareIDOL.cpp:592
bool IsServiceCard(bool &serviceCard)
Definition: ECommonFacadeMifareIDOL.cpp:324
bool GetEventCount(unsigned long &eventCount)
Definition: ECommonFacadeMifareIDOL.cpp:694
bool SetAppIssuerType(unsigned short appIssuerType)
Definition: ECommonFacadeMifareIDOL.cpp:439
bool GetCustomerProfileValidityStart(unsigned long &customerProfileValidityStart, unsigned char customerProfileIndex=0, signed char index=-1)
Definition: ECommonFacadeMifareIDOL.cpp:226
~ECommonFacadeMifareIDOL()
Definition: ECommonFacadeMifareIDOL.cpp:62
bool GetFareProviderNumber(unsigned short &fareProviderNumber, signed char fareProviderIndex=-1)
Definition: ECommonFacadeMifareIDOL.cpp:271
Definition: ECommonFacadeMifareIDOL.cpp:28