1 #ifndef ECARDDATAFACADECOMMON_H
2 #define ECARDDATAFACADECOMMON_H
7 #include "core/common/eplatform.h"
8 #include "appcore/cardfacade/ECardFacadeDefines.h"
14 class EDataCollection;
20 class ECardDataStorage;
21 class DLL_API ECardDataFacadeCommon
27 ECardDataFacadeCommon( ECardDataStorage *cardDataStorage );
33 virtual ~ECardDataFacadeCommon( );
49 bool GetLogicalCardNumber(
unsigned long &logicalCardNumber,
const signed char index = -1 )
const;
58 bool GetLogicalCardNumber( std::string &logicalCardNumber,
const signed char index = -1 )
const;
65 bool GetCardNumber(
unsigned long &cardNumber )
const;
73 bool SetCardNumber(
const unsigned long cardNumber )
const;
81 bool GetCardValidityEnd(
unsigned long &cardValidityEnd )
const;
89 bool SetCardValidityEnd(
const unsigned long cardValidityEnd )
const;
99 bool GetCardAdditionalDiscountValidity(
unsigned long &additionalDiscountValidity,
const signed char index = -1 )
const;
109 bool SetCardAdditionalDiscountValidity(
const unsigned long additionalDiscountValidity,
const signed char index = -1 )
const;
122 bool GetCardRegionCode(
unsigned long ®ionCode )
const;
137 bool GetCardCityCode(
unsigned long &cityCode )
const;
144 bool SetCardRegionCode(
const unsigned long regionCode )
const;
154 bool IsDiscountCouponValid(
bool &isDiscountCouponValid,
const signed char couponIndex )
const;
162 bool GetNumberOfDiscountCoupons(
unsigned long &numberOfCoupons )
const;
172 bool GetDiscountCouponValidityEnd(
unsigned long &couponValidityEnd,
const signed char couponIndex )
const;
182 bool SetDiscountCouponValidityEnd(
const unsigned long couponValidityEnd,
const signed char couponIndex )
const;
192 bool GetDiscountCouponValidityStart(
unsigned long &couponValidityStart,
const signed char couponIndex )
const;
202 bool GetDiscountCouponRegionCode(
unsigned long &couponRegionCode,
const signed char couponIndex )
const;
212 bool GetDiscountCouponType(
unsigned long &couponType,
const signed char couponIndex )
const;
220 bool GetCustomerProfilesCount(
unsigned char &customerProfilesCount )
const;
233 bool GetCustomerProfileValidityEnd(
unsigned long &customerProfileValidityEnd,
const unsigned char customerProfileIndex = 0,
const signed char index = -1 )
const;
242 bool SetCustomerProfileValidityEnd(
const unsigned long customerProfileValidityEnd,
const unsigned char customerProfileIndex = 0,
const signed char index = -1 )
const;
251 bool GetCustomerProfileValidityStart(
unsigned long &customerProfileValidityStart,
const unsigned char customerProfileIndex = 0,
const signed char index = -1 )
const;
259 bool SetCustomerProfileValidityStart(
const unsigned long customerProfileValidityStart,
const unsigned char customerProfileIndex = 0,
const signed char index = -1 )
const;
268 bool GetCardTypeAndSubType(
unsigned short &cardType,
unsigned short &cardSubType,
ECardFacadeDefines::CardTypeStandard &cardStandard,
const unsigned char customerProfileIndex,
const signed char index = -1 )
const;
277 bool SetCardTypeAndSubType(
const unsigned short cardType,
const unsigned short cardSubType,
const unsigned char customerProfileIndex,
const signed char index = -1 )
const;
290 bool GetFareProviderNumber(
unsigned short &fareProviderNumber,
const signed char fareProviderIndex = -1 )
const;
299 bool SetFareProviderNumber(
const unsigned short providerNumber ,
const signed char fareProviderIndex = -1 )
const;
306 bool GetCardPublisherNumber(
unsigned short &cardPublisherNumber )
const;
313 bool SetCardPublisherNumber(
const unsigned short cardPublisherNumber )
const;
321 bool GetNetworkCode(
unsigned short &networkCodeInBCD )
const;
329 bool SetNetworkCode(
const unsigned short networkCodeInBCD )
const;
337 bool GetCountryCode(
unsigned short &countryCodeInBCD )
const;
345 bool SetCountryCode(
const unsigned short countryCodeInBCD )
const;
352 bool GetAppExpireDate(
unsigned long &appExpireDate )
const;
359 bool SetAppExpireDate(
const unsigned long appExpireDate )
const;
366 bool GetAppIssuerType(
unsigned short &appIssuerType )
const;
373 bool SetAppIssuerType(
const unsigned short appIssuerType )
const;
381 DEPRECATED(
bool GetSaleDate(
unsigned long &saleDate,
const signed char index = -1 )
const );
390 DEPRECATED(
bool SetSaleDate(
const unsigned long saleDate,
const signed char index = -1 )
const );
400 bool IsCardBlocked(
bool &cardBlocked,
const signed char index = -1 )
const;
410 bool SetCardBlocked(
const bool blocked,
const signed char index = -1 )
const;
419 bool IsCardSold(
bool &cardSold,
const signed char index = -1 )
const;
428 bool SetCardSold(
const bool sold,
const signed char index = -1 )
const;
435 bool GetUID( std::string &uid )
const;
442 bool GetRawUID(
unsigned char *&uid )
const;
449 bool IsServiceCard(
bool &serviceCard )
const;
457 bool SetServiceCard(
const bool serviceCard )
const;
464 bool GetBornNumber(
unsigned long &bornNumber )
const;
471 bool SetBornNumber(
const unsigned long bornNumber )
const;
488 bool SetCardOwnerName(
const char *ownerName,
const unsigned short nameLength )
const;
505 bool SetCardOwnerSurname(
const char *ownerSurname,
const unsigned short surnameLength )
const;
512 bool GetEventCount(
unsigned long &eventCount )
const;
521 bool GetCommonDataCount(
unsigned char &commonDataCount )
const;
531 bool GetCardPublisherVersion(
unsigned char &publisherVersion );
541 bool SetCardPublisherVersion(
unsigned char publisherVersion );
549 bool IsTransportSectionValid(
bool &tranportSectionValid,
const signed char index = -1 )
const;
556 bool GetDailyCappingDate(
unsigned long &dailyCappingDate );
563 bool SetDailyCappingDate(
unsigned long dailyCappingDate );
570 bool GetDailyCappingSum(
unsigned short &dailyCappingSum );
577 bool SetDailyCappingSum(
unsigned short dailyCappingSum );
584 bool GetWeeklyCappingDate(
unsigned long &weeklyCappingDate );
591 bool SetWeeklyCappingDate(
unsigned long weeklyCappingDate );
598 bool GetWeeklyCappingSum(
unsigned short &weeklyCappingSum );
605 bool SetWeeklyCappingSum(
unsigned short weeklyCappingSum );
612 bool GetCappingProvider(
unsigned short &cappingProvider );
619 bool SetCappingProvider(
unsigned short cappingProvider );
644 bool IsModifiedData()
const;
651 bool PrepareWriteRequest( EM::PT::EDataCollection *writeRequest )
const;
658 bool AddDataToWriteRequest( EM::PT::EDataCollection *writeRequest )
const;
665 bool AddDataTypeToReadRequest(PT::EAplRequest *readRequest[] ,
const unsigned short dataTypesOperation)
const;
689 bool IsDataValid(
bool &validData,
const signed char index = -1 );
691 unsigned short GetRequiredDataReadOperation(
const unsigned short dataTypesOperation )
const;
704 #endif // ECARDDATAFACADECOMMON_H
CappingProviderType
Definition: ECardFacadeDefines.h:279
ReturnValues
Definition: ECardFacadeDefines.h:144
EEventTripTicketPr __EDATAPTR d
Definition: EEventTripTicket.h:96
CommonCardFeatures
Definition: ECardFacadeDefines.h:78
TextEncoding
Definition: ECardFacadeDefines.h:216
__ECLASS DataClass
Definition: EEventUpdateCustomerData.h:35
#define DLL_API
Definition: ECardFacadeDefines.h:8
SYSTEM INCLUDES.
Definition: CardFacadeManagerXML.h:6
#define DEPRECATED(func)
Definition: stdafx.h:77
CardTypeStandard
Definition: ECardFacadeDefines.h:247
CommonDataFeatures
Definition: ECardFacadeDefines.h:134
void Init(__ESTRING path)