AppCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
EM::CardFacade::ECardDataFacadeCommon Class Reference

#include <ECardDataFacadeCommon.h>

Public Member Functions

 ECardDataFacadeCommon (ECardDataStorage *cardDataStorage)
 in construcotr create dataclass create dataClass More...
 
virtual ~ECardDataFacadeCommon ()
 standard virtual destrcutor More...
 
ECardFacadeDefines::ReturnValues Init ()
 set to member actual card implementation and call init on actual implementation More...
 
bool GetLogicalCardNumber (unsigned long &logicalCardNumber, const signed char index=-1) const
 
bool GetLogicalCardNumber (std::string &logicalCardNumber, const signed char index=-1) const
 
bool GetCardNumber (unsigned long &cardNumber) const
 
bool SetCardNumber (const unsigned long cardNumber) const
 
bool GetCardValidityEnd (unsigned long &cardValidityEnd) const
 
bool SetCardValidityEnd (const unsigned long cardValidityEnd) const
 
bool GetCardAdditionalDiscountValidity (unsigned long &additionalDiscountValidity, const signed char index=-1) const
 
bool SetCardAdditionalDiscountValidity (const unsigned long additionalDiscountValidity, const signed char index=-1) const
 
bool GetCardRegionCode (unsigned long &regionCode) const
 
bool GetCardCityCode (unsigned long &cityCode) const
 
bool SetCardRegionCode (const unsigned long regionCode) const
 
bool IsDiscountCouponValid (bool &isDiscountCouponValid, const signed char couponIndex) const
 IsDiscountCouponValid checks structure data validity. More...
 
bool GetNumberOfDiscountCoupons (unsigned long &numberOfCoupons) const
 GetNumberOfDiscountCoupons return by numberOfCoupons coupon count in coupon collection. More...
 
bool GetDiscountCouponValidityEnd (unsigned long &couponValidityEnd, const signed char couponIndex) const
 GetDiscountCouponValidityEnd return by couponValidityEnd coupon validity end. More...
 
bool SetDiscountCouponValidityEnd (const unsigned long couponValidityEnd, const signed char couponIndex) const
 SetDiscountCouponValidityEnd set valdity end. More...
 
bool GetDiscountCouponValidityStart (unsigned long &couponValidityStart, const signed char couponIndex) const
 GetDiscountCouponValidityStart return by couponValidityStart coupon validity start. More...
 
bool GetDiscountCouponRegionCode (unsigned long &couponRegionCode, const signed char couponIndex) const
 GetDiscountCouponValidityEnd return by couponRegionCode coupon region code. More...
 
bool GetDiscountCouponType (unsigned long &couponType, const signed char couponIndex) const
 GetDiscountCouponVersion return by couponRegionCode coupon version. More...
 
bool GetCustomerProfilesCount (unsigned char &customerProfilesCount) const
 Tells how many customer profiles are on card. More...
 
bool GetCustomerProfileValidityEnd (unsigned long &customerProfileValidityEnd, const unsigned char customerProfileIndex=0, const signed char index=-1) const
 
bool SetCustomerProfileValidityEnd (const unsigned long customerProfileValidityEnd, const unsigned char customerProfileIndex=0, const signed char index=-1) const
 
bool GetCustomerProfileValidityStart (unsigned long &customerProfileValidityStart, const unsigned char customerProfileIndex=0, const signed char index=-1) const
 
bool SetCustomerProfileValidityStart (const unsigned long customerProfileValidityStart, const unsigned char customerProfileIndex=0, const signed char index=-1) const
 
bool GetCardTypeAndSubType (unsigned short &cardType, unsigned short &cardSubType, ECardFacadeDefines::CardTypeStandard &cardStandard, const unsigned char customerProfileIndex, const signed char index=-1) const
 
bool SetCardTypeAndSubType (const unsigned short cardType, const unsigned short cardSubType, const unsigned char customerProfileIndex, const signed char index=-1) const
 
bool GetFareProviderNumber (unsigned short &fareProviderNumber, const signed char fareProviderIndex=-1) const
 
bool SetFareProviderNumber (const unsigned short providerNumber, const signed char fareProviderIndex=-1) const
 SetFareProviderNumber - set provider to FareDataDirectory. Supported only for TransData desfire medium. More...
 
bool GetCardPublisherNumber (unsigned short &cardPublisherNumber) const
 
bool SetCardPublisherNumber (const unsigned short cardPublisherNumber) const
 
bool GetNetworkCode (unsigned short &networkCodeInBCD) const
 
bool SetNetworkCode (const unsigned short networkCodeInBCD) const
 
bool GetCountryCode (unsigned short &countryCodeInBCD) const
 
bool SetCountryCode (const unsigned short countryCodeInBCD) const
 
bool GetAppExpireDate (unsigned long &appExpireDate) const
 
bool SetAppExpireDate (const unsigned long appExpireDate) const
 
bool GetAppIssuerType (unsigned short &appIssuerType) const
 
bool SetAppIssuerType (const unsigned short appIssuerType) const
 
 DEPRECATED (bool GetSaleDate(unsigned long &saleDate, const signed char index=-1) const )
 
 DEPRECATED (bool SetSaleDate(const unsigned long saleDate, const signed char index=-1) const )
 
bool IsCardBlocked (bool &cardBlocked, const signed char index=-1) const
 Check status of card (ok, blocked ...). On Em-DesFire virtual card status is checked, on other cards it is simply card status. More...
 
bool SetCardBlocked (const bool blocked, const signed char index=-1) const
 Set status ofcard (ok, blocked ...). On Em-DesFire virtual card status is set, on other cards it is simply card status. More...
 
bool IsCardSold (bool &cardSold, const signed char index=-1) const
 
bool SetCardSold (const bool sold, const signed char index=-1) const
 
bool GetUID (std::string &uid) const
 
bool GetRawUID (unsigned char *&uid) const
 
bool IsServiceCard (bool &serviceCard) const
 
bool SetServiceCard (const bool serviceCard) const
 
bool GetBornNumber (unsigned long &bornNumber) const
 function return by reference owner More...
 
bool SetBornNumber (const unsigned long bornNumber) const
 function saved owner More...
 
bool GetCardOwnerName (char *ownerName, unsigned short &nameLength, ECardFacadeDefines::TextEncoding &encoding) const
 function return owner card name More...
 
bool SetCardOwnerName (const char *ownerName, const unsigned short nameLength) const
 function set new owner card name More...
 
bool GetCardOwnerSurname (char *ownerSurname, unsigned short &surnameLength, ECardFacadeDefines::TextEncoding &encoding) const
 function return owner card surname More...
 
bool SetCardOwnerSurname (const char *ownerSurname, const unsigned short surnameLength) const
 function set new owner card surname More...
 
bool GetEventCount (unsigned long &eventCount) const
 function retrun event count fromevent collection More...
 
bool GetCommonDataCount (unsigned char &commonDataCount) const
 
bool GetCardPublisherVersion (unsigned char &publisherVersion)
 GetCardPublisherVersion return version of publisher structure on card. More...
 
bool SetCardPublisherVersion (unsigned char publisherVersion)
 SetCardPublisherVersion set version of publisher structure on card. More...
 
bool IsTransportSectionValid (bool &tranportSectionValid, const signed char index=-1) const
 function check if transportsection on common card data is valid More...
 
bool GetDailyCappingDate (unsigned long &dailyCappingDate)
 GetDailyCappingDate. More...
 
bool SetDailyCappingDate (unsigned long dailyCappingDate)
 SetDailyCappingDate - method sets daily capping date. More...
 
bool GetDailyCappingSum (unsigned short &dailyCappingSum)
 GetDailyCappingSum. More...
 
bool SetDailyCappingSum (unsigned short dailyCappingSum)
 SetDailyCappingSum. More...
 
bool GetWeeklyCappingDate (unsigned long &weeklyCappingDate)
 GetWeeklyCappingDate. More...
 
bool SetWeeklyCappingDate (unsigned long weeklyCappingDate)
 SetWeeklyCappingDate - method sets weekly capping date. More...
 
bool GetWeeklyCappingSum (unsigned short &weeklyCappingSum)
 GetWeeklyCappingSum. More...
 
bool SetWeeklyCappingSum (unsigned short weeklyCappingSum)
 SetWeeklyCappingSum. More...
 
bool GetCappingProvider (unsigned short &cappingProvider)
 GetCappingProvider. More...
 
bool SetCappingProvider (unsigned short cappingProvider)
 SetCappingProvider. More...
 
bool GetCappingProviderType (ECardFacadeDefines::CappingProviderType &cappingProviderType)
 GetCappingProviderType. More...
 
bool SetCappingProviderType (ECardFacadeDefines::CappingProviderType cappingProviderType)
 SetCappingProviderType. More...
 
void Clear ()
 clear all data More...
 
bool IsModifiedData () const
 
  • check in actual implementation, if data was modified
More...
 
bool PrepareWriteRequest (EM::PT::EDataCollection *writeRequest) const
 
bool AddDataToWriteRequest (EM::PT::EDataCollection *writeRequest) const
 
bool AddDataTypeToReadRequest (PT::EAplRequest *readRequest[], const unsigned short dataTypesOperation) const
 
bool IsCommonDataFeatureEnabled (const ECardFacadeDefines::CommonDataFeatures feature, bool &enabled) const
 
bool IsCardFeatureEnabled (const ECardFacadeDefines::CommonCardFeatures feature, bool &enabled) const
 
bool IsDataValid (bool &validData, const signed char index=-1)
 IsDataValid checks if commonData is valid (is not null) More...
 
unsigned short GetRequiredDataReadOperation (const unsigned short dataTypesOperation) const
 
 ECardDataFacadeCommon (ECardDataStorage *cardDataStorage)
 in construcotr create dataclass create dataClass More...
 
virtual ~ECardDataFacadeCommon ()
 standard virtual destrcutor More...
 
ECardFacadeDefines::ReturnValues Init ()
 set to member actual card implementation and call init on actual implementation More...
 
bool GetLogicalCardNumber (unsigned long &logicalCardNumber, const signed char index=-1) const
 
bool GetLogicalCardNumber (std::string &logicalCardNumber, const signed char index=-1) const
 
bool GetCardNumber (unsigned long &cardNumber) const
 
bool SetCardNumber (const unsigned long cardNumber) const
 
bool GetCardValidityEnd (unsigned long &cardValidityEnd) const
 
bool SetCardValidityEnd (const unsigned long cardValidityEnd) const
 
bool GetCardAdditionalDiscountValidity (unsigned long &additionalDiscountValidity, const signed char index=-1) const
 
bool SetCardAdditionalDiscountValidity (const unsigned long additionalDiscountValidity, const signed char index=-1) const
 
bool GetCardRegionCode (unsigned long &regionCode) const
 
bool GetCardCityCode (unsigned long &cityCode) const
 
bool SetCardRegionCode (const unsigned long regionCode) const
 
bool IsDiscountCouponValid (bool &isDiscountCouponValid, const signed char couponIndex) const
 IsDiscountCouponValid checks structure data validity. More...
 
bool GetNumberOfDiscountCoupons (unsigned long &numberOfCoupons) const
 GetNumberOfDiscountCoupons return by numberOfCoupons coupon count in coupon collection. More...
 
bool GetDiscountCouponValidityEnd (unsigned long &couponValidityEnd, const signed char couponIndex) const
 GetDiscountCouponValidityEnd return by couponValidityEnd coupon validity end. More...
 
bool SetDiscountCouponValidityEnd (const unsigned long couponValidityEnd, const signed char couponIndex) const
 SetDiscountCouponValidityEnd set valdity end. More...
 
bool GetDiscountCouponValidityStart (unsigned long &couponValidityStart, const signed char couponIndex) const
 GetDiscountCouponValidityStart return by couponValidityStart coupon validity start. More...
 
bool GetDiscountCouponRegionCode (unsigned long &couponRegionCode, const signed char couponIndex) const
 GetDiscountCouponValidityEnd return by couponRegionCode coupon region code. More...
 
bool GetDiscountCouponType (unsigned long &couponType, const signed char couponIndex) const
 GetDiscountCouponVersion return by couponRegionCode coupon version. More...
 
bool GetCustomerProfilesCount (unsigned char &customerProfilesCount) const
 Tells how many customer profiles are on card. More...
 
bool GetCustomerProfileValidityEnd (unsigned long &customerProfileValidityEnd, const unsigned char customerProfileIndex=0, const signed char index=-1) const
 
bool SetCustomerProfileValidityEnd (const unsigned long customerProfileValidityEnd, const unsigned char customerProfileIndex=0, const signed char index=-1) const
 
bool GetCustomerProfileValidityStart (unsigned long &customerProfileValidityStart, const unsigned char customerProfileIndex=0, const signed char index=-1) const
 
bool SetCustomerProfileValidityStart (const unsigned long customerProfileValidityStart, const unsigned char customerProfileIndex=0, const signed char index=-1) const
 
bool GetCardTypeAndSubType (unsigned short &cardType, unsigned short &cardSubType, ECardFacadeDefines::CardTypeStandard &cardStandard, const unsigned char customerProfileIndex, const signed char index=-1) const
 
bool SetCardTypeAndSubType (const unsigned short cardType, const unsigned short cardSubType, const unsigned char customerProfileIndex, const signed char index=-1) const
 
bool GetFareProviderNumber (unsigned short &fareProviderNumber, const signed char fareProviderIndex=-1) const
 
bool SetFareProviderNumber (const unsigned short providerNumber, const signed char fareProviderIndex=-1) const
 SetFareProviderNumber - set provider to FareDataDirectory. Supported only for TransData desfire medium. More...
 
bool GetCardPublisherNumber (unsigned short &cardPublisherNumber) const
 
bool SetCardPublisherNumber (const unsigned short cardPublisherNumber) const
 
bool GetNetworkCode (unsigned short &networkCodeInBCD) const
 
bool SetNetworkCode (const unsigned short networkCodeInBCD) const
 
bool GetCountryCode (unsigned short &countryCodeInBCD) const
 
bool SetCountryCode (const unsigned short countryCodeInBCD) const
 
bool GetAppExpireDate (unsigned long &appExpireDate) const
 
bool SetAppExpireDate (const unsigned long appExpireDate) const
 
bool GetAppIssuerType (unsigned short &appIssuerType) const
 
bool SetAppIssuerType (const unsigned short appIssuerType) const
 
 DEPRECATED (bool GetSaleDate(unsigned long &saleDate, const signed char index=-1) const )
 
 DEPRECATED (bool SetSaleDate(const unsigned long saleDate, const signed char index=-1) const )
 
bool IsCardBlocked (bool &cardBlocked, const signed char index=-1) const
 Check status of card (ok, blocked ...). On Em-DesFire virtual card status is checked, on other cards it is simply card status. More...
 
bool SetCardBlocked (const bool blocked, const signed char index=-1) const
 Set status ofcard (ok, blocked ...). On Em-DesFire virtual card status is set, on other cards it is simply card status. More...
 
bool IsCardSold (bool &cardSold, const signed char index=-1) const
 
bool SetCardSold (const bool sold, const signed char index=-1) const
 
bool GetUID (std::string &uid) const
 
bool GetRawUID (unsigned char *&uid) const
 
bool IsServiceCard (bool &serviceCard) const
 
bool SetServiceCard (const bool serviceCard) const
 
bool GetBornNumber (unsigned long &bornNumber) const
 function return by reference owner More...
 
bool SetBornNumber (const unsigned long bornNumber) const
 function saved owner More...
 
bool GetCardOwnerName (char *ownerName, unsigned short &nameLength, ECardFacadeDefines::TextEncoding &encoding) const
 function return owner card name More...
 
bool SetCardOwnerName (const char *ownerName, const unsigned short nameLength) const
 function set new owner card name More...
 
bool GetCardOwnerSurname (char *ownerSurname, unsigned short &surnameLength, ECardFacadeDefines::TextEncoding &encoding) const
 function return owner card surname More...
 
bool SetCardOwnerSurname (const char *ownerSurname, const unsigned short surnameLength) const
 function set new owner card surname More...
 
bool GetEventCount (unsigned long &eventCount) const
 function retrun event count fromevent collection More...
 
bool GetCommonDataCount (unsigned char &commonDataCount) const
 
bool GetCardPublisherVersion (unsigned char &publisherVersion)
 GetCardPublisherVersion return version of publisher structure on card. More...
 
bool SetCardPublisherVersion (unsigned char publisherVersion)
 SetCardPublisherVersion set version of publisher structure on card. More...
 
bool IsTransportSectionValid (bool &tranportSectionValid, const signed char index=-1) const
 function check if transportsection on common card data is valid More...
 
bool GetDailyCappingDate (unsigned long &dailyCappingDate)
 GetDailyCappingDate. More...
 
bool SetDailyCappingDate (unsigned long dailyCappingDate)
 SetDailyCappingDate - method sets daily capping date. More...
 
bool GetDailyCappingSum (unsigned short &dailyCappingSum)
 GetDailyCappingSum. More...
 
bool SetDailyCappingSum (unsigned short dailyCappingSum)
 SetDailyCappingSum. More...
 
bool GetWeeklyCappingDate (unsigned long &weeklyCappingDate)
 GetWeeklyCappingDate. More...
 
bool SetWeeklyCappingDate (unsigned long weeklyCappingDate)
 SetWeeklyCappingDate - method sets weekly capping date. More...
 
bool GetWeeklyCappingSum (unsigned short &weeklyCappingSum)
 GetWeeklyCappingSum. More...
 
bool SetWeeklyCappingSum (unsigned short weeklyCappingSum)
 SetWeeklyCappingSum. More...
 
bool GetCappingProvider (unsigned short &cappingProvider)
 GetCappingProvider. More...
 
bool SetCappingProvider (unsigned short cappingProvider)
 SetCappingProvider. More...
 
bool GetCappingProviderType (ECardFacadeDefines::CappingProviderType &cappingProviderType)
 GetCappingProviderType. More...
 
bool SetCappingProviderType (ECardFacadeDefines::CappingProviderType cappingProviderType)
 SetCappingProviderType. More...
 
void Clear ()
 clear all data More...
 
bool IsModifiedData () const
 
  • check in actual implementation, if data was modified
More...
 
bool PrepareWriteRequest (EM::PT::EDataCollection *writeRequest) const
 
bool AddDataToWriteRequest (EM::PT::EDataCollection *writeRequest) const
 
bool AddDataTypeToReadRequest (PT::EAplRequest *readRequest[], const unsigned short dataTypesOperation) const
 
bool IsCommonDataFeatureEnabled (const ECardFacadeDefines::CommonDataFeatures feature, bool &enabled) const
 
bool IsCardFeatureEnabled (const ECardFacadeDefines::CommonCardFeatures feature, bool &enabled) const
 
bool IsDataValid (bool &validData, const signed char index=-1)
 IsDataValid checks if commonData is valid (is not null) More...
 
unsigned short GetRequiredDataReadOperation (const unsigned short dataTypesOperation) const
 

Constructor & Destructor Documentation

INTERNAL ECardDataFacadeCommon::ECardDataFacadeCommon ( ECardDataStorage cardDataStorage)

in construcotr create dataclass create dataClass

CONSTRUCTOR

ECardDataFacadeCommon::~ECardDataFacadeCommon ( )
virtual

standard virtual destrcutor

DESTRUCTOR

EM::CardFacade::ECardDataFacadeCommon::ECardDataFacadeCommon ( ECardDataStorage cardDataStorage)

in construcotr create dataclass create dataClass

virtual EM::CardFacade::ECardDataFacadeCommon::~ECardDataFacadeCommon ( )
virtual

standard virtual destrcutor

Member Function Documentation

bool EM::CardFacade::ECardDataFacadeCommon::AddDataToWriteRequest ( EM::PT::EDataCollection *  writeRequest) const
Parameters
writeRequest- EDataCollection instance of write request
Returns
true - successfully ended false - error insert data to write request
bool EM::CardFacade::ECardDataFacadeCommon::AddDataToWriteRequest ( EM::PT::EDataCollection *  writeRequest) const
Parameters
writeRequest- EDataCollection instance of write request
Returns
true - successfully ended false - error insert data to write request
bool EM::CardFacade::ECardDataFacadeCommon::AddDataTypeToReadRequest ( PT::EAplRequest *  readRequest[],
const unsigned short  dataTypesOperation 
) const
Parameters
requestRead- instance of read request - add data type into this collection
Returns
true - successfully ended false - error insert data to write request
bool EM::CardFacade::ECardDataFacadeCommon::AddDataTypeToReadRequest ( PT::EAplRequest *  readRequest[],
const unsigned short  dataTypesOperation 
) const
Parameters
requestRead- instance of read request - add data type into this collection
Returns
true - successfully ended false - error insert data to write request
void ECardDataFacadeCommon::Clear ( )

clear all data

void EM::CardFacade::ECardDataFacadeCommon::Clear ( )

clear all data

EM::CardFacade::ECardDataFacadeCommon::DEPRECATED ( bool GetSaleDate(unsigned long &saleDate, const signed char index=-1)  const)
Parameters
saleDate- retrun by reference saleDate in seconds from 1.1.1970
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which saleDate is readed
Returns
true - successfully ended false - ended with error
EM::CardFacade::ECardDataFacadeCommon::DEPRECATED ( bool GetSaleDate(unsigned long &saleDate, const signed char index=-1)  const)
Parameters
saleDate- retrun by reference saleDate in seconds from 1.1.1970
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which saleDate is readed
Returns
true - successfully ended false - ended with error
EM::CardFacade::ECardDataFacadeCommon::DEPRECATED ( bool SetSaleDate(const unsigned long saleDate, const signed char index=-1)  const)
Parameters
saleDate- new sale date in seconds from 1.1.1970
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which saleDate is readed
Returns
true - successfully ended false - ended with error
EM::CardFacade::ECardDataFacadeCommon::DEPRECATED ( bool SetSaleDate(const unsigned long saleDate, const signed char index=-1)  const)
Parameters
saleDate- new sale date in seconds from 1.1.1970
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which saleDate is readed
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeCommon::GetAppExpireDate ( unsigned long &  appExpireDate) const
Parameters
appExpireDate- retrun by reference value from structure
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::GetAppExpireDate ( unsigned long &  appExpireDate) const
Parameters
appExpireDate- retrun by reference value from structure
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeCommon::GetAppIssuerType ( unsigned short &  appIssuerType) const
Parameters
appIssuerType- retrun by reference value from structure
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::GetAppIssuerType ( unsigned short &  appIssuerType) const
Parameters
appIssuerType- retrun by reference value from structure
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::GetBornNumber ( unsigned long &  bornNumber) const

function return by reference owner

Parameters
bornNumber- output param born number is saved in mifare card holder
Returns
true - successfully ended otherwise false
bool ECardDataFacadeCommon::GetBornNumber ( unsigned long &  bornNumber) const

function return by reference owner

Parameters
bornNumber- output param born number is saved in mifare card holder
Returns
true - successfully ended otherwise false

Here is the caller graph for this function:

bool ECardDataFacadeCommon::GetCappingProvider ( unsigned short &  cappingProvider)

GetCappingProvider.

Parameters
cappingProvider
Returns
bool EM::CardFacade::ECardDataFacadeCommon::GetCappingProvider ( unsigned short &  cappingProvider)

GetCappingProvider.

Parameters
cappingProvider
Returns
bool ECardDataFacadeCommon::GetCappingProviderType ( ECardFacadeDefines::CappingProviderType cappingProviderType)

GetCappingProviderType.

Parameters
cappingProviderType
Returns
bool EM::CardFacade::ECardDataFacadeCommon::GetCappingProviderType ( ECardFacadeDefines::CappingProviderType cappingProviderType)

GetCappingProviderType.

Parameters
cappingProviderType
Returns
bool ECardDataFacadeCommon::GetCardAdditionalDiscountValidity ( unsigned long &  additionalDiscountValidity,
const signed char  index = -1 
) const
Parameters
additionalDiscountValidity- value in DAYS without time information
index- sometimes in readDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which additionalDiscountValidity is readed
Returns
true - successfully ended, otherwise false

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::GetCardAdditionalDiscountValidity ( unsigned long &  additionalDiscountValidity,
const signed char  index = -1 
) const
Parameters
additionalDiscountValidity- value in DAYS without time information
index- sometimes in readDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which additionalDiscountValidity is readed
Returns
true - successfully ended, otherwise false
bool ECardDataFacadeCommon::GetCardCityCode ( unsigned long &  cityCode) const
Parameters
cityCode- output param

List of city codes:

  • 0x0001 - BMK (Bratislavska Mestska Karta)
  • 0x0008 - MKK (Mestska Karta Kosice)
  • 0x0010 - Bratislava_BA (zony 100+101) – zlava pre vybrane skupiny cestujucich s trvalym pobytom v BA (TZP, ...)
See also
Redmine task #1563
Returns
true - successfully end, otherwise false

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::GetCardCityCode ( unsigned long &  cityCode) const
Parameters
cityCode- output param

List of city codes:

  • 0x0001 - BMK (Bratislavska Mestska Karta)
  • 0x0008 - MKK (Mestska Karta Kosice)
  • 0x0010 - Bratislava_BA (zony 100+101) – zlava pre vybrane skupiny cestujucich s trvalym pobytom v BA (TZP, ...)
See also
Redmine task #1563
Returns
true - successfully end, otherwise false
bool ECardDataFacadeCommon::GetCardNumber ( unsigned long &  cardNumber) const
Returns
cardNumber - retrun by reference value from structure
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::GetCardNumber ( unsigned long &  cardNumber) const
Returns
cardNumber - retrun by reference value from structure
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::GetCardOwnerName ( char *  ownerName,
unsigned short &  nameLength,
ECardFacadeDefines::TextEncoding encoding 
) const

function return owner card name

Parameters
ownerName- string represent name
nameLength- string length
encoding- in which encoding the text is encoded (EncodingUndefined means that application has to decide according to the project)
Returns
true - successfully ended otherwise false
bool ECardDataFacadeCommon::GetCardOwnerName ( char *  ownerName,
unsigned short &  nameLength,
ECardFacadeDefines::TextEncoding encoding 
) const

function return owner card name

Parameters
ownerName- string represent name
nameLength- string length
encoding- in which encoding the text is encoded (EncodingUndefined means that application has to decide according to the project)
Returns
true - successfully ended otherwise false
bool EM::CardFacade::ECardDataFacadeCommon::GetCardOwnerSurname ( char *  ownerSurname,
unsigned short &  surnameLength,
ECardFacadeDefines::TextEncoding encoding 
) const

function return owner card surname

Parameters
ownerSurname- string represent surname
surnameLength- string length
encoding- in which encoding the text is encoded (EncodingUndefined means that application has to decide according to the project)
Returns
true - successfully ended otherwise false
bool ECardDataFacadeCommon::GetCardOwnerSurname ( char *  ownerSurname,
unsigned short &  surnameLength,
ECardFacadeDefines::TextEncoding encoding 
) const

function return owner card surname

Parameters
ownerSurname- string represent surname
surnameLength- string length
encoding- in which encoding the text is encoded (EncodingUndefined means that application has to decide according to the project)
Returns
true - successfully ended otherwise false
bool ECardDataFacadeCommon::GetCardPublisherNumber ( unsigned short &  cardPublisherNumber) const
Parameters
cardPublisherNumber- card publisher number
Returns
true - successfully save provider number to card false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::GetCardPublisherNumber ( unsigned short &  cardPublisherNumber) const
Parameters
cardPublisherNumber- card publisher number
Returns
true - successfully save provider number to card false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::GetCardPublisherVersion ( unsigned char &  publisherVersion)

GetCardPublisherVersion return version of publisher structure on card.

Note
Publisher version is saved in structure EAppIssuer
Supported medium: Transdata desfire card
Returns
true - successfully ended otherwise false
bool ECardDataFacadeCommon::GetCardPublisherVersion ( unsigned char &  publisherVersion)

GetCardPublisherVersion return version of publisher structure on card.

Note
Publisher version is saved in structure EAppIssuer
Supported medium: Transdata desfire card
Returns
true - successfully ended otherwise false

Here is the caller graph for this function:

bool ECardDataFacadeCommon::GetCardRegionCode ( unsigned long &  regionCode) const
Parameters
regionCode- output param

List of region codes:

  • 0x0002 - TSK (Trenciansky Samospravny Kraj) – MultiCard
  • 0x0004 - MHD Martin – MultiCard
  • 0x0020 - Bratislava_BSK (zony 100+101) – zlava pre vybrane skupiny cestujucich s trvalym pobytom v BSK (TZP, ...)
Returns
true - successfully ended, otherwise false

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::GetCardRegionCode ( unsigned long &  regionCode) const
Parameters
regionCode- output param

List of region codes:

  • 0x0002 - TSK (Trenciansky Samospravny Kraj) – MultiCard
  • 0x0004 - MHD Martin – MultiCard
  • 0x0020 - Bratislava_BSK (zony 100+101) – zlava pre vybrane skupiny cestujucich s trvalym pobytom v BSK (TZP, ...)
Returns
true - successfully ended, otherwise false
bool EM::CardFacade::ECardDataFacadeCommon::GetCardTypeAndSubType ( unsigned short &  cardType,
unsigned short &  cardSubType,
ECardFacadeDefines::CardTypeStandard cardStandard,
const unsigned char  customerProfileIndex,
const signed char  index = -1 
) const
Parameters
cardtype - retrun by reference value from structure
cardcardStandart - retrun by card User if it is unambiguous
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which cardType is readed
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeCommon::GetCardTypeAndSubType ( unsigned short &  cardType,
unsigned short &  cardSubType,
ECardFacadeDefines::CardTypeStandard cardStandard,
const unsigned char  customerProfileIndex,
const signed char  index = -1 
) const
Parameters
cardtype - retrun by reference value from structure
cardcardStandart - retrun by card User if it is unambiguous
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which cardType is readed
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::GetCardValidityEnd ( unsigned long &  cardValidityEnd) const
Parameters
cardValidityend- retrun by reference time validity in second from 1.1.1970
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeCommon::GetCardValidityEnd ( unsigned long &  cardValidityEnd) const
Parameters
cardValidityend- retrun by reference time validity in second from 1.1.1970
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::GetCommonDataCount ( unsigned char &  commonDataCount) const
bool ECardDataFacadeCommon::GetCommonDataCount ( unsigned char &  commonDataCount) const

Here is the caller graph for this function:

bool ECardDataFacadeCommon::GetCountryCode ( unsigned short &  countryCodeInBCD) const
Parameters
countryCode- return by reference value from structure
Returns
true - successfully ended
false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::GetCountryCode ( unsigned short &  countryCodeInBCD) const
Parameters
countryCode- return by reference value from structure
Returns
true - successfully ended
false - ended with error
bool ECardDataFacadeCommon::GetCustomerProfilesCount ( unsigned char &  customerProfilesCount) const

Tells how many customer profiles are on card.

Parameters
customerProfilesCount- return by reference number of customer profiles on card
Returns
true - successfully ended
false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::GetCustomerProfilesCount ( unsigned char &  customerProfilesCount) const

Tells how many customer profiles are on card.

Parameters
customerProfilesCount- return by reference number of customer profiles on card
Returns
true - successfully ended
false - ended with error
bool ECardDataFacadeCommon::GetCustomerProfileValidityEnd ( unsigned long &  customerProfileValidityEnd,
const unsigned char  customerProfileIndex = 0,
const signed char  index = -1 
) const
Note
previous method name GetCustomerProfileValidity
Parameters
customerProfileValidityEnd- return by reference discount validity in seconds from 1.1.1970 ( card discount validity )
customerProfileIndex- if it is equal to 0, takes first customerProfileValidity, otherwise other customer profile validity
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which customerProfileValidity is readed
Returns
true - successfully ended false - ended with error
Note
This function have wrapper in ECardBusinessLogic::GetCustomerProfileValidity, because discount validity is adjusted by tariff system settings

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::GetCustomerProfileValidityEnd ( unsigned long &  customerProfileValidityEnd,
const unsigned char  customerProfileIndex = 0,
const signed char  index = -1 
) const
Note
previous method name GetCustomerProfileValidity
Parameters
customerProfileValidityEnd- return by reference discount validity in seconds from 1.1.1970 ( card discount validity )
customerProfileIndex- if it is equal to 0, takes first customerProfileValidity, otherwise other customer profile validity
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which customerProfileValidity is readed
Returns
true - successfully ended false - ended with error
Note
This function have wrapper in ECardBusinessLogic::GetCustomerProfileValidity, because discount validity is adjusted by tariff system settings
bool ECardDataFacadeCommon::GetCustomerProfileValidityStart ( unsigned long &  customerProfileValidityStart,
const unsigned char  customerProfileIndex = 0,
const signed char  index = -1 
) const
Parameters
customerProfileValidityStart- return by reference discount validity start in seconds from 1.1.1970 ( card discount validity )
customerProfileIndex- if it is equal to 0, takes first customerProfileValidity, otherwise other customer profile validity
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which customerProfileValidity is readed
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::GetCustomerProfileValidityStart ( unsigned long &  customerProfileValidityStart,
const unsigned char  customerProfileIndex = 0,
const signed char  index = -1 
) const
Parameters
customerProfileValidityStart- return by reference discount validity start in seconds from 1.1.1970 ( card discount validity )
customerProfileIndex- if it is equal to 0, takes first customerProfileValidity, otherwise other customer profile validity
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which customerProfileValidity is readed
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::GetDailyCappingDate ( unsigned long &  dailyCappingDate)

GetDailyCappingDate.

Parameters
dailyCappingDate
Returns
bool ECardDataFacadeCommon::GetDailyCappingDate ( unsigned long &  dailyCappingDate)

GetDailyCappingDate.

Parameters
dailyCappingDate
Returns
bool EM::CardFacade::ECardDataFacadeCommon::GetDailyCappingSum ( unsigned short &  dailyCappingSum)

GetDailyCappingSum.

Parameters
dailyCappingSum
Returns
bool ECardDataFacadeCommon::GetDailyCappingSum ( unsigned short &  dailyCappingSum)

GetDailyCappingSum.

Parameters
dailyCappingSum
Returns
bool ECardDataFacadeCommon::GetDiscountCouponRegionCode ( unsigned long &  couponRegionCode,
const signed char  couponIndex 
) const

GetDiscountCouponValidityEnd return by couponRegionCode coupon region code.

Parameters
couponIndex- concrete coupon index in coupon collection
Returns
true - successfully ended
false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::GetDiscountCouponRegionCode ( unsigned long &  couponRegionCode,
const signed char  couponIndex 
) const

GetDiscountCouponValidityEnd return by couponRegionCode coupon region code.

Parameters
couponIndex- concrete coupon index in coupon collection
Returns
true - successfully ended
false - ended with error
bool ECardDataFacadeCommon::GetDiscountCouponType ( unsigned long &  couponType,
const signed char  couponIndex 
) const

GetDiscountCouponVersion return by couponRegionCode coupon version.

Parameters
couponIndex- concrete coupon index in coupon collection
Returns
true - successfully ended
false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::GetDiscountCouponType ( unsigned long &  couponType,
const signed char  couponIndex 
) const

GetDiscountCouponVersion return by couponRegionCode coupon version.

Parameters
couponIndex- concrete coupon index in coupon collection
Returns
true - successfully ended
false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::GetDiscountCouponValidityEnd ( unsigned long &  couponValidityEnd,
const signed char  couponIndex 
) const

GetDiscountCouponValidityEnd return by couponValidityEnd coupon validity end.

Parameters
couponIndex- concrete coupon index in coupon collection
Returns
true - successfully ended
false - ended with error
bool ECardDataFacadeCommon::GetDiscountCouponValidityEnd ( unsigned long &  couponValidityEnd,
const signed char  couponIndex 
) const

GetDiscountCouponValidityEnd return by couponValidityEnd coupon validity end.

Parameters
couponIndex- concrete coupon index in coupon collection
Returns
true - successfully ended
false - ended with error

Here is the caller graph for this function:

bool ECardDataFacadeCommon::GetDiscountCouponValidityStart ( unsigned long &  couponValidityStart,
const signed char  couponIndex 
) const

GetDiscountCouponValidityStart return by couponValidityStart coupon validity start.

Parameters
couponIndex- concrete coupon index in coupon collection
Returns
true - successfully ended
false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::GetDiscountCouponValidityStart ( unsigned long &  couponValidityStart,
const signed char  couponIndex 
) const

GetDiscountCouponValidityStart return by couponValidityStart coupon validity start.

Parameters
couponIndex- concrete coupon index in coupon collection
Returns
true - successfully ended
false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::GetEventCount ( unsigned long &  eventCount) const

function retrun event count fromevent collection

Parameters
eventCount- output param saved in event collection
Returns
true - successfully ended otherwise false
bool ECardDataFacadeCommon::GetEventCount ( unsigned long &  eventCount) const

function retrun event count fromevent collection

Parameters
eventCount- output param saved in event collection
Returns
true - successfully ended otherwise false
bool ECardDataFacadeCommon::GetFareProviderNumber ( unsigned short &  fareProviderNumber,
const signed char  fareProviderIndex = -1 
) const
Parameters
providerNumber- return by reference value provider number
fareProviderIndex- Provider will be returned from FareDataDirectory in case that index is set (supported only for transdata desfire structures). This is special case for virtual cards
  • In case that index is not set, provider will be returned from CustomerData. Smart card system always return valid customer data.
Note
FareDataDirectory is storage for all information about virtual cards( providers of all virtual cards is included )
Returns
true - successfully end, flase otherwise

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::GetFareProviderNumber ( unsigned short &  fareProviderNumber,
const signed char  fareProviderIndex = -1 
) const
Parameters
providerNumber- return by reference value provider number
fareProviderIndex- Provider will be returned from FareDataDirectory in case that index is set (supported only for transdata desfire structures). This is special case for virtual cards
  • In case that index is not set, provider will be returned from CustomerData. Smart card system always return valid customer data.
Note
FareDataDirectory is storage for all information about virtual cards( providers of all virtual cards is included )
Returns
true - successfully end, flase otherwise
bool ECardDataFacadeCommon::GetLogicalCardNumber ( unsigned long &  logicalCardNumber,
const signed char  index = -1 
) const
Parameters
logicalCardNumber- retrun by reference value from structure
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which discountValidity is readed
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::GetLogicalCardNumber ( unsigned long &  logicalCardNumber,
const signed char  index = -1 
) const
Parameters
logicalCardNumber- retrun by reference value from structure
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which discountValidity is readed
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::GetLogicalCardNumber ( std::string &  logicalCardNumber,
const signed char  index = -1 
) const
Parameters
logicalCardNumber- retrun by reference value from structure
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which discountValidity is readed
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeCommon::GetLogicalCardNumber ( std::string &  logicalCardNumber,
const signed char  index = -1 
) const
Parameters
logicalCardNumber- retrun by reference value from structure
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which discountValidity is readed
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::GetNetworkCode ( unsigned short &  networkCodeInBCD) const
Parameters
networkCode- return by reference value network code in BCD format
Returns
true - successfully ended
false - ended with error
bool ECardDataFacadeCommon::GetNetworkCode ( unsigned short &  networkCodeInBCD) const
Parameters
networkCode- return by reference value network code in BCD format
Returns
true - successfully ended
false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::GetNumberOfDiscountCoupons ( unsigned long &  numberOfCoupons) const

GetNumberOfDiscountCoupons return by numberOfCoupons coupon count in coupon collection.

Returns
true - successfully ended
false - ended with error
bool ECardDataFacadeCommon::GetNumberOfDiscountCoupons ( unsigned long &  numberOfCoupons) const

GetNumberOfDiscountCoupons return by numberOfCoupons coupon count in coupon collection.

Returns
true - successfully ended
false - ended with error
bool ECardDataFacadeCommon::GetRawUID ( unsigned char *&  uid) const
Parameters
getuid (unified card ID) in raw byte array (allocate 10 bytes - EPT writes 10 bytes)
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::GetRawUID ( unsigned char *&  uid) const
Parameters
getuid (unified card ID) in raw byte array (allocate 10 bytes - EPT writes 10 bytes)
Returns
true - successfully ended false - ended with error
unsigned short ECardDataFacadeCommon::GetRequiredDataReadOperation ( const unsigned short  dataTypesOperation) const

Here is the caller graph for this function:

unsigned short EM::CardFacade::ECardDataFacadeCommon::GetRequiredDataReadOperation ( const unsigned short  dataTypesOperation) const
bool ECardDataFacadeCommon::GetUID ( std::string &  uid) const
Parameters
getto uid unified card ID
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::GetUID ( std::string &  uid) const
Parameters
getto uid unified card ID
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeCommon::GetWeeklyCappingDate ( unsigned long &  weeklyCappingDate)

GetWeeklyCappingDate.

Parameters
weeklyCappingDate
Returns
bool EM::CardFacade::ECardDataFacadeCommon::GetWeeklyCappingDate ( unsigned long &  weeklyCappingDate)

GetWeeklyCappingDate.

Parameters
weeklyCappingDate
Returns
bool ECardDataFacadeCommon::GetWeeklyCappingSum ( unsigned short &  weeklyCappingSum)

GetWeeklyCappingSum.

Parameters
weeklyCappingSum
Returns
bool EM::CardFacade::ECardDataFacadeCommon::GetWeeklyCappingSum ( unsigned short &  weeklyCappingSum)

GetWeeklyCappingSum.

Parameters
weeklyCappingSum
Returns
ECardFacadeDefines::ReturnValues ECardDataFacadeCommon::Init ( )

set to member actual card implementation and call init on actual implementation

Returns
error enum number
ECardFacadeDefines::ReturnValues EM::CardFacade::ECardDataFacadeCommon::Init ( )

set to member actual card implementation and call init on actual implementation

Returns
error enum number
bool ECardDataFacadeCommon::IsCardBlocked ( bool &  cardBlocked,
const signed char  index = -1 
) const

Check status of card (ok, blocked ...). On Em-DesFire virtual card status is checked, on other cards it is simply card status.

Parameters
cardBlocked- return by reference card blocked
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which cardBlocked is readed
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::IsCardBlocked ( bool &  cardBlocked,
const signed char  index = -1 
) const

Check status of card (ok, blocked ...). On Em-DesFire virtual card status is checked, on other cards it is simply card status.

Parameters
cardBlocked- return by reference card blocked
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which cardBlocked is readed
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeCommon::IsCardFeatureEnabled ( const ECardFacadeDefines::CommonCardFeatures  feature,
bool &  enabled 
) const

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::IsCardFeatureEnabled ( const ECardFacadeDefines::CommonCardFeatures  feature,
bool &  enabled 
) const
bool ECardDataFacadeCommon::IsCardSold ( bool &  cardSold,
const signed char  index = -1 
) const
Parameters
cardSold- return by reference flag card sold
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which cardSold is readed
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::IsCardSold ( bool &  cardSold,
const signed char  index = -1 
) const
Parameters
cardSold- return by reference flag card sold
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which cardSold is readed
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::IsCommonDataFeatureEnabled ( const ECardFacadeDefines::CommonDataFeatures  feature,
bool &  enabled 
) const
bool ECardDataFacadeCommon::IsCommonDataFeatureEnabled ( const ECardFacadeDefines::CommonDataFeatures  feature,
bool &  enabled 
) const

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::IsDataValid ( bool &  validData,
const signed char  index = -1 
)

IsDataValid checks if commonData is valid (is not null)

Parameters
validData- output param indicates commonData validity
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which cardBlocked is readed
Returns
true if successful, false otherwise
bool EM::CardFacade::ECardDataFacadeCommon::IsDataValid ( bool &  validData,
const signed char  index = -1 
)

IsDataValid checks if commonData is valid (is not null)

Parameters
validData- output param indicates commonData validity
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which cardBlocked is readed
Returns
true if successful, false otherwise

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::IsDiscountCouponValid ( bool &  isDiscountCouponValid,
const signed char  couponIndex 
) const

IsDiscountCouponValid checks structure data validity.

Parameters
couponIndex- concrete copuon index in coupon collection
Returns
true - successfully ended
false - ended with error
bool ECardDataFacadeCommon::IsDiscountCouponValid ( bool &  isDiscountCouponValid,
const signed char  couponIndex 
) const

IsDiscountCouponValid checks structure data validity.

Parameters
couponIndex- concrete copuon index in coupon collection
Returns
true - successfully ended
false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::IsModifiedData ( ) const

  • check in actual implementation, if data was modified

Returns
true common data is modified
bool ECardDataFacadeCommon::IsModifiedData ( ) const

  • check in actual implementation, if data was modified

Returns
true common data is modified
bool EM::CardFacade::ECardDataFacadeCommon::IsServiceCard ( bool &  serviceCard) const
Parameters
serviceCard- return by reference flag service card
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeCommon::IsServiceCard ( bool &  serviceCard) const
Parameters
serviceCard- return by reference flag service card
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::IsTransportSectionValid ( bool &  tranportSectionValid,
const signed char  index = -1 
) const

function check if transportsection on common card data is valid

Parameters
outputparam indicate transport common data validity
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which tranportSectionValid is readed
Returns
true - successfully ended otherwise false
bool ECardDataFacadeCommon::IsTransportSectionValid ( bool &  tranportSectionValid,
const signed char  index = -1 
) const

function check if transportsection on common card data is valid

Parameters
outputparam indicate transport common data validity
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which tranportSectionValid is readed
Returns
true - successfully ended otherwise false
bool EM::CardFacade::ECardDataFacadeCommon::PrepareWriteRequest ( EM::PT::EDataCollection *  writeRequest) const
Parameters
writeRequest- EDataCollection instance of write request
Returns
true - successfully ended false - error setting or inserting data to write request
bool EM::CardFacade::ECardDataFacadeCommon::PrepareWriteRequest ( EM::PT::EDataCollection *  writeRequest) const
Parameters
writeRequest- EDataCollection instance of write request
Returns
true - successfully ended false - error setting or inserting data to write request

Here is the caller graph for this function:

bool ECardDataFacadeCommon::SetAppExpireDate ( const unsigned long  appExpireDate) const
Parameters
appExpireDate- card application issuer expire date
Returns
true - successfully save application issuer expire date to card false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::SetAppExpireDate ( const unsigned long  appExpireDate) const
Parameters
appExpireDate- card application issuer expire date
Returns
true - successfully save application issuer expire date to card false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::SetAppIssuerType ( const unsigned short  appIssuerType) const
Parameters
appIssuerType- card application issuer type
Returns
true - successfully save application issuer type to card false - ended with error
bool ECardDataFacadeCommon::SetAppIssuerType ( const unsigned short  appIssuerType) const
Parameters
appIssuerType- card application issuer type
Returns
true - successfully save application issuer type to card false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::SetBornNumber ( const unsigned long  bornNumber) const

function saved owner

Parameters
bornNumber- value saved to structure mifare card holder
Returns
true - successfully ended otherwise false
bool ECardDataFacadeCommon::SetBornNumber ( const unsigned long  bornNumber) const

function saved owner

Parameters
bornNumber- value saved to structure mifare card holder
Returns
true - successfully ended otherwise false

Here is the caller graph for this function:

bool ECardDataFacadeCommon::SetCappingProvider ( unsigned short  cappingProvider)

SetCappingProvider.

Parameters
cappingProvider
Returns

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::SetCappingProvider ( unsigned short  cappingProvider)

SetCappingProvider.

Parameters
cappingProvider
Returns
bool EM::CardFacade::ECardDataFacadeCommon::SetCappingProviderType ( ECardFacadeDefines::CappingProviderType  cappingProviderType)

SetCappingProviderType.

Parameters
cappingProviderType
Returns
bool ECardDataFacadeCommon::SetCappingProviderType ( ECardFacadeDefines::CappingProviderType  cappingProviderType)

SetCappingProviderType.

Parameters
cappingProviderType
Returns

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::SetCardAdditionalDiscountValidity ( const unsigned long  additionalDiscountValidity,
const signed char  index = -1 
) const
Parameters
additionalDiscountValidity- value in DAYS without time information
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which additionalDiscountValidity is readed
Returns
true - successfully ended, otherwise false
bool ECardDataFacadeCommon::SetCardAdditionalDiscountValidity ( const unsigned long  additionalDiscountValidity,
const signed char  index = -1 
) const
Parameters
additionalDiscountValidity- value in DAYS without time information
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which additionalDiscountValidity is readed
Returns
true - successfully ended, otherwise false

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::SetCardBlocked ( const bool  blocked,
const signed char  index = -1 
) const

Set status ofcard (ok, blocked ...). On Em-DesFire virtual card status is set, on other cards it is simply card status.

Parameters
blocked- true if i want block card false if i want unblock card
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which cardBlocked is readed
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeCommon::SetCardBlocked ( const bool  blocked,
const signed char  index = -1 
) const

Set status ofcard (ok, blocked ...). On Em-DesFire virtual card status is set, on other cards it is simply card status.

Parameters
blocked- true if i want block card false if i want unblock card
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which cardBlocked is readed
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeCommon::SetCardNumber ( const unsigned long  cardNumber) const
Parameters
cardNumberis new CardNumber, which write to actual common data
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::SetCardNumber ( const unsigned long  cardNumber) const
Parameters
cardNumberis new CardNumber, which write to actual common data
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::SetCardOwnerName ( const char *  ownerName,
const unsigned short  nameLength 
) const

function set new owner card name

Parameters
ownerName- string represent name
nameLength- string length
Returns
true - successfully ended otherwise false
bool ECardDataFacadeCommon::SetCardOwnerName ( const char *  ownerName,
const unsigned short  nameLength 
) const

function set new owner card name

Parameters
ownerName- string represent name
nameLength- string length
Returns
true - successfully ended otherwise false
bool EM::CardFacade::ECardDataFacadeCommon::SetCardOwnerSurname ( const char *  ownerSurname,
const unsigned short  surnameLength 
) const

function set new owner card surname

Parameters
ownerSurname- string represent surname
surnameLength- string length
Returns
true - successfully ended otherwise false
bool ECardDataFacadeCommon::SetCardOwnerSurname ( const char *  ownerSurname,
const unsigned short  surnameLength 
) const

function set new owner card surname

Parameters
ownerSurname- string represent surname
surnameLength- string length
Returns
true - successfully ended otherwise false
bool EM::CardFacade::ECardDataFacadeCommon::SetCardPublisherNumber ( const unsigned short  cardPublisherNumber) const
Parameters
cardPublisherNumber- card publisher number
Returns
true - successfully save provider number to card false - ended with error
bool ECardDataFacadeCommon::SetCardPublisherNumber ( const unsigned short  cardPublisherNumber) const
Parameters
cardPublisherNumber- card publisher number
Returns
true - successfully save provider number to card false - ended with error

Here is the caller graph for this function:

bool ECardDataFacadeCommon::SetCardPublisherVersion ( unsigned char  publisherVersion)

SetCardPublisherVersion set version of publisher structure on card.

Note
Publisher version is saved in structure EAppIssuer
Supported medium: Transdata desfire card
Returns
true - successfully ended otherwise false

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::SetCardPublisherVersion ( unsigned char  publisherVersion)

SetCardPublisherVersion set version of publisher structure on card.

Note
Publisher version is saved in structure EAppIssuer
Supported medium: Transdata desfire card
Returns
true - successfully ended otherwise false
bool ECardDataFacadeCommon::SetCardRegionCode ( const unsigned long  regionCode) const
Parameters
regionCode- card region code
Returns
true - successfully save region code to card false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::SetCardRegionCode ( const unsigned long  regionCode) const
Parameters
regionCode- card region code
Returns
true - successfully save region code to card false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::SetCardSold ( const bool  sold,
const signed char  index = -1 
) const
Parameters
sold- true if i want card sold
  • false if i want disable flag sold on card
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which cardSold is readed
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeCommon::SetCardSold ( const bool  sold,
const signed char  index = -1 
) const
Parameters
sold- true if i want card sold
  • false if i want disable flag sold on card
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which cardSold is readed
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::SetCardTypeAndSubType ( const unsigned short  cardType,
const unsigned short  cardSubType,
const unsigned char  customerProfileIndex,
const signed char  index = -1 
) const
Parameters
cardType- new card type, which write to actual common data
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which cardType is readed
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeCommon::SetCardTypeAndSubType ( const unsigned short  cardType,
const unsigned short  cardSubType,
const unsigned char  customerProfileIndex,
const signed char  index = -1 
) const
Parameters
cardType- new card type, which write to actual common data
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which cardType is readed
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::SetCardValidityEnd ( const unsigned long  cardValidityEnd) const
Parameters
cardValidityEnd- new cardValidity in seconds from 1.1.1970
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeCommon::SetCardValidityEnd ( const unsigned long  cardValidityEnd) const
Parameters
cardValidityEnd- new cardValidity in seconds from 1.1.1970
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::SetCountryCode ( const unsigned short  countryCodeInBCD) const
Parameters
countryCode- card country ISO code
Returns
true - successfully save region code to card
false - ended with error
bool ECardDataFacadeCommon::SetCountryCode ( const unsigned short  countryCodeInBCD) const
Parameters
countryCode- card country ISO code
Returns
true - successfully save region code to card
false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::SetCustomerProfileValidityEnd ( const unsigned long  customerProfileValidityEnd,
const unsigned char  customerProfileIndex = 0,
const signed char  index = -1 
) const
Note
previous method name SetCustomerProfileValidity
Parameters
customerProfileValidityEnd- new customer profile validity in seconds from 1.1.1970 ( card discount validity )
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which customerProfileValidity is readed
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeCommon::SetCustomerProfileValidityEnd ( const unsigned long  customerProfileValidityEnd,
const unsigned char  customerProfileIndex = 0,
const signed char  index = -1 
) const
Note
previous method name SetCustomerProfileValidity
Parameters
customerProfileValidityEnd- new customer profile validity in seconds from 1.1.1970 ( card discount validity )
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which customerProfileValidity is readed
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::SetCustomerProfileValidityStart ( const unsigned long  customerProfileValidityStart,
const unsigned char  customerProfileIndex = 0,
const signed char  index = -1 
) const
Parameters
customerProfileValidityStart- new customer profile validity in seconds from 1.1.1970 ( card discount validity )
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which customerProfileValidity is readed
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeCommon::SetCustomerProfileValidityStart ( const unsigned long  customerProfileValidityStart,
const unsigned char  customerProfileIndex = 0,
const signed char  index = -1 
) const
Parameters
customerProfileValidityStart- new customer profile validity in seconds from 1.1.1970 ( card discount validity )
index- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which customerProfileValidity is readed
Returns
true - successfully ended false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::SetDailyCappingDate ( unsigned long  dailyCappingDate)

SetDailyCappingDate - method sets daily capping date.

Parameters
dailyCappingDate- date (without time) that daily capping date will be set to
Returns
- true on success, otherwise false
bool ECardDataFacadeCommon::SetDailyCappingDate ( unsigned long  dailyCappingDate)

SetDailyCappingDate - method sets daily capping date.

Parameters
dailyCappingDate- date (without time) that daily capping date will be set to
Returns
- true on success, otherwise false

Here is the caller graph for this function:

bool ECardDataFacadeCommon::SetDailyCappingSum ( unsigned short  dailyCappingSum)

SetDailyCappingSum.

Parameters
dailyCappingSum
Returns

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::SetDailyCappingSum ( unsigned short  dailyCappingSum)

SetDailyCappingSum.

Parameters
dailyCappingSum
Returns
bool EM::CardFacade::ECardDataFacadeCommon::SetDiscountCouponValidityEnd ( const unsigned long  couponValidityEnd,
const signed char  couponIndex 
) const

SetDiscountCouponValidityEnd set valdity end.

Parameters
couponIndex- concrete coupon index in coupon collection
Returns
true - successfully ended
false - ended with error
bool ECardDataFacadeCommon::SetDiscountCouponValidityEnd ( const unsigned long  couponValidityEnd,
const signed char  couponIndex 
) const

SetDiscountCouponValidityEnd set valdity end.

Parameters
couponIndex- concrete coupon index in coupon collection
Returns
true - successfully ended
false - ended with error

Here is the caller graph for this function:

bool ECardDataFacadeCommon::SetFareProviderNumber ( const unsigned short  providerNumber,
const signed char  fareProviderIndex = -1 
) const

SetFareProviderNumber - set provider to FareDataDirectory. Supported only for TransData desfire medium.

Parameters
providerNumber- new provider number ( concrete company provider number )
fareProviderIndex- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which providerNumber is readed
Returns
true - successfully save provider number to card false - ended with error

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::SetFareProviderNumber ( const unsigned short  providerNumber,
const signed char  fareProviderIndex = -1 
) const

SetFareProviderNumber - set provider to FareDataDirectory. Supported only for TransData desfire medium.

Parameters
providerNumber- new provider number ( concrete company provider number )
fareProviderIndex- sometimes in readedDataCollection is not one commonData, but commonDataColl. Index is order of commonData saved in commonDataColl, from which providerNumber is readed
Returns
true - successfully save provider number to card false - ended with error
bool ECardDataFacadeCommon::SetNetworkCode ( const unsigned short  networkCodeInBCD) const
Parameters
networkCode- card network code
Returns
true - successfully save network code in BCD format
false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::SetNetworkCode ( const unsigned short  networkCodeInBCD) const
Parameters
networkCode- card network code
Returns
true - successfully save network code in BCD format
false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::SetServiceCard ( const bool  serviceCard) const
Parameters
serviceCard- true is service card
  • false isnt service card
Returns
true - successfully ended false - ended with error
bool ECardDataFacadeCommon::SetServiceCard ( const bool  serviceCard) const
Parameters
serviceCard- true is service card
  • false isnt service card
Returns
true - successfully ended false - ended with error
bool EM::CardFacade::ECardDataFacadeCommon::SetWeeklyCappingDate ( unsigned long  weeklyCappingDate)

SetWeeklyCappingDate - method sets weekly capping date.

Parameters
weeklyCappingDate- date (without time) that weekly capping date will be set to
Returns
- true on success, otherwise false
bool ECardDataFacadeCommon::SetWeeklyCappingDate ( unsigned long  weeklyCappingDate)

SetWeeklyCappingDate - method sets weekly capping date.

Parameters
weeklyCappingDate- date (without time) that weekly capping date will be set to
Returns
- true on success, otherwise false

Here is the caller graph for this function:

bool EM::CardFacade::ECardDataFacadeCommon::SetWeeklyCappingSum ( unsigned short  weeklyCappingSum)

SetWeeklyCappingSum.

Parameters
weeklyCappingSum
Returns
bool ECardDataFacadeCommon::SetWeeklyCappingSum ( unsigned short  weeklyCappingSum)

SetWeeklyCappingSum.

Parameters
weeklyCappingSum
Returns

Here is the caller graph for this function:


The documentation for this class was generated from the following files: