AppCore
Loading...
Searching...
No Matches
Public Member Functions | List of all members
EM::CardFacade::ECardDataFacadeService Class Reference

#include <ECardDataFacadeService.h>

Public Member Functions

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

Constructor & Destructor Documentation

◆ ECardDataFacadeService() [1/2]

INTERNAL ECardDataFacadeService::ECardDataFacadeService ( ECardDataStorage dataStorage)

CONSTRUCTOR

◆ ~ECardDataFacadeService() [1/2]

ECardDataFacadeService::~ECardDataFacadeService ( )

DESTRUCTOR

◆ ECardDataFacadeService() [2/2]

EM::CardFacade::ECardDataFacadeService::ECardDataFacadeService ( ECardDataStorage dataStorage)

◆ ~ECardDataFacadeService() [2/2]

EM::CardFacade::ECardDataFacadeService::~ECardDataFacadeService ( )

Member Function Documentation

◆ AddDataToWriteRequest() [1/2]

bool EM::CardFacade::ECardDataFacadeService::AddDataToWriteRequest ( EM::PT::EDataCollection *  writeRequest) const

◆ AddDataToWriteRequest() [2/2]

bool EM::CardFacade::ECardDataFacadeService::AddDataToWriteRequest ( EM::PT::EDataCollection *  writeRequest) const

◆ AddDataTypeToReadRequest() [1/2]

bool EM::CardFacade::ECardDataFacadeService::AddDataTypeToReadRequest ( PT::EAplRequest *  readRequest[],
const unsigned short  dataTypesOperation 
) const

◆ AddDataTypeToReadRequest() [2/2]

bool EM::CardFacade::ECardDataFacadeService::AddDataTypeToReadRequest ( PT::EAplRequest *  readRequest[],
const unsigned short  dataTypesOperation 
) const

◆ CheckPassword() [1/2]

bool ECardDataFacadeService::CheckPassword ( const unsigned long  pin,
bool &  matched 
) const

Method performs PIN check with PIN on card.

Parameters
pinPIN to be matched
matchedreturns whether password was matched
Returns
false when error occured, true, when password match was performed

CheckPassword

◆ CheckPassword() [2/2]

bool EM::CardFacade::ECardDataFacadeService::CheckPassword ( const unsigned long  pin,
bool &  matched 
) const

Method performs PIN check with PIN on card.

Parameters
pinPIN to be matched
matchedreturns whether password was matched
Returns
false when error occured, true, when password match was performed

◆ Clear() [1/2]

EM::CardFacade::ECardDataFacadeService::Clear ( )

clear all data

Clear

◆ Clear() [2/2]

void EM::CardFacade::ECardDataFacadeService::Clear ( )

◆ GetCardCompanyNumber() [1/2]

bool ECardDataFacadeService::GetCardCompanyNumber ( unsigned long &  companyNumber) const

Returns company number that is "permanently" written on card (not the company number that is written during auditor check-in)

Parameters
companyNumber
Returns
true on success, otherwise false

GetCardCompanyNumber

Here is the caller graph for this function:

◆ GetCardCompanyNumber() [2/2]

bool EM::CardFacade::ECardDataFacadeService::GetCardCompanyNumber ( unsigned long &  companyNumber) const

Returns company number that is "permanently" written on card (not the company number that is written during auditor check-in)

Parameters
companyNumber
Returns
true on success, otherwise false

◆ GetCardName() [1/2]

bool ECardDataFacadeService::GetCardName ( std::string &  name,
ECardFacadeDefines::TextEncoding encoding 
) const

Method returns name of driver ( if possible from service section, otherwise from common section )

Note
Some card structures have 2 names (driver / traveller), some has one (traveller).
Parameters
namereturned name of driver
encodingreturned encoding of text if determined

GetCardName

◆ GetCardName() [2/2]

bool EM::CardFacade::ECardDataFacadeService::GetCardName ( std::string &  name,
ECardFacadeDefines::TextEncoding encoding 
) const

Method returns name of driver ( if possible from service section, otherwise from common section )

Note
Some card structures have 2 names (driver / traveller), some has one (traveller).
Parameters
namereturned name of driver
encodingreturned encoding of text if determined

◆ GetCompanyNumber() [1/2]

bool ECardDataFacadeService::GetCompanyNumber ( unsigned long &  companyNumber) const

Function get company number actual service data type on card.

GetCompanyNumber

◆ GetCompanyNumber() [2/2]

bool EM::CardFacade::ECardDataFacadeService::GetCompanyNumber ( unsigned long &  companyNumber) const

Function get company number actual service data type on card.

◆ GetDriverNumber() [1/2]

bool ECardDataFacadeService::GetDriverNumber ( unsigned long &  driverNumber) const

Function get driver number actual service data type on card Method returns number of logged driver which was stored on card during auditor's check in.

Note
This is NOT personal number of card's holder.
Parameters
driverNumber- number of driver logged in vehicle, stored on card

GetDriverNumber

◆ GetDriverNumber() [2/2]

bool EM::CardFacade::ECardDataFacadeService::GetDriverNumber ( unsigned long &  driverNumber) const

Function get driver number actual service data type on card Method returns number of logged driver which was stored on card during auditor's check in.

Note
This is NOT personal number of card's holder.
Parameters
driverNumber- number of driver logged in vehicle, stored on card

◆ GetLineNumber() [1/2]

bool ECardDataFacadeService::GetLineNumber ( unsigned long &  lineNumber) const

Function get line number actual service data type on card.

GetLineNumber

◆ GetLineNumber() [2/2]

bool EM::CardFacade::ECardDataFacadeService::GetLineNumber ( unsigned long &  lineNumber) const

Function get line number actual service data type on card.

◆ GetLineOrder() [1/2]

bool ECardDataFacadeService::GetLineOrder ( unsigned short &  lineOrder) const

Function get line order actual service data type on card.

GetLineOrder

◆ GetLineOrder() [2/2]

bool EM::CardFacade::ECardDataFacadeService::GetLineOrder ( unsigned short &  lineOrder) const

Function get line order actual service data type on card.

◆ GetPersonalNumber() [1/2]

bool ECardDataFacadeService::GetPersonalNumber ( unsigned long &  personalNumber) const

Method returns personal number of card holder.

Parameters
personalNumberreturned personal number of card holder.

GetPersonalNumber

Here is the caller graph for this function:

◆ GetPersonalNumber() [2/2]

bool EM::CardFacade::ECardDataFacadeService::GetPersonalNumber ( unsigned long &  personalNumber) const

Method returns personal number of card holder.

Parameters
personalNumberreturned personal number of card holder.

◆ GetProtectNumber() [1/2]

bool ECardDataFacadeService::GetProtectNumber ( unsigned short &  protectNumber) const

Function get protect number actual service data type on card.

GetProtectNumber

◆ GetProtectNumber() [2/2]

bool EM::CardFacade::ECardDataFacadeService::GetProtectNumber ( unsigned short &  protectNumber) const

Function get protect number actual service data type on card.

◆ GetRequiredDataReadOperation() [1/2]

unsigned short ECardDataFacadeService::GetRequiredDataReadOperation ( ) const
Here is the caller graph for this function:

◆ GetRequiredDataReadOperation() [2/2]

unsigned short EM::CardFacade::ECardDataFacadeService::GetRequiredDataReadOperation ( ) const

◆ GetServiceCardType() [1/2]

bool ECardDataFacadeService::GetServiceCardType ( ECardFacadeDefines::ServiceCardType cardType) const

Function get service card type.

GetServiceCardType

Here is the caller graph for this function:

◆ GetServiceCardType() [2/2]

bool EM::CardFacade::ECardDataFacadeService::GetServiceCardType ( ECardFacadeDefines::ServiceCardType cardType) const

Function get service card type.

◆ GetServiceCounter() [1/2]

bool ECardDataFacadeService::GetServiceCounter ( unsigned char &  serviceCounter) const

Funciton get service counter to service data type on card.

◆ GetServiceCounter() [2/2]

bool EM::CardFacade::ECardDataFacadeService::GetServiceCounter ( unsigned char &  serviceCounter) const

Funciton get service counter to service data type on card.

◆ GetTariffArea() [1/2]

bool ECardDataFacadeService::GetTariffArea ( unsigned short &  tariffArea) const

Function get tariff area from card.

◆ GetTariffArea() [2/2]

bool EM::CardFacade::ECardDataFacadeService::GetTariffArea ( unsigned short &  tariffArea) const

Function get tariff area from card.

◆ GetTripNumber() [1/2]

bool ECardDataFacadeService::GetTripNumber ( unsigned long &  tripNumber) const

Function get trip number actual service data type on card.

GetTripNumber

◆ GetTripNumber() [2/2]

bool EM::CardFacade::ECardDataFacadeService::GetTripNumber ( unsigned long &  tripNumber) const

Function get trip number actual service data type on card.

◆ GetValidityEnd() [1/2]

bool ECardDataFacadeService::GetValidityEnd ( unsigned long &  validityEnd) const

Method returns end validity time of service section on card.

Parameters
validityEndreturned end validity of service section on card

GetValidityEnd

Here is the caller graph for this function:

◆ GetValidityEnd() [2/2]

bool EM::CardFacade::ECardDataFacadeService::GetValidityEnd ( unsigned long &  validityEnd) const

Method returns end validity time of service section on card.

Parameters
validityEndreturned end validity of service section on card

◆ GetZone() [1/2]

bool ECardDataFacadeService::GetZone ( unsigned short &  actualZone) const

Function get actual zone actual service data type on card.

GetZone

◆ GetZone() [2/2]

bool EM::CardFacade::ECardDataFacadeService::GetZone ( unsigned short &  actualZone) const

Function get actual zone actual service data type on card.

◆ GetZone2() [1/2]

bool ECardDataFacadeService::GetZone2 ( unsigned short &  zone2) const

Function get zone2 actual service data type on card.

◆ GetZone2() [2/2]

bool EM::CardFacade::ECardDataFacadeService::GetZone2 ( unsigned short &  zone2) const

Function get zone2 actual service data type on card.

◆ Init() [1/2]

EM::CardFacade::ECardDataFacadeService::Init ( )

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

Returns
error enum number

Init

◆ Init() [2/2]

ECardFacadeDefines::ReturnValues EM::CardFacade::ECardDataFacadeService::Init ( )

◆ IsCardBlocked() [1/2]

bool ECardDataFacadeService::IsCardBlocked ( bool &  blocked) const

Checks the status of card. In case of all cards except Em-DesFire it returns the same as CommonFacade->IsCardBlocked, but in case of EmDesFire it checks status of card, not virtual card (taht is checked by commonFacade)

◆ IsCardBlocked() [2/2]

bool EM::CardFacade::ECardDataFacadeService::IsCardBlocked ( bool &  blocked) const

Checks the status of card. In case of all cards except Em-DesFire it returns the same as CommonFacade->IsCardBlocked, but in case of EmDesFire it checks status of card, not virtual card (taht is checked by commonFacade)

◆ IsCardFeatureEnabled() [1/2]

bool ECardDataFacadeService::IsCardFeatureEnabled ( const ECardFacadeDefines::ServiceCardFeatures  feature,
bool &  enabled 
) const

◆ IsCardFeatureEnabled() [2/2]

bool EM::CardFacade::ECardDataFacadeService::IsCardFeatureEnabled ( const ECardFacadeDefines::ServiceCardFeatures  feature,
bool &  enabled 
) const

◆ IsModifiedData() [1/2]

bool ECardDataFacadeService::IsModifiedData ( ) const

IsModifiedData

◆ IsModifiedData() [2/2]

bool EM::CardFacade::ECardDataFacadeService::IsModifiedData ( ) const

◆ IsUnlockDataValid() [1/2]

bool ECardDataFacadeService::IsUnlockDataValid ( bool &  valid) const

Functions tells if data containing result of SAM unlocking are present.

IsUnlockDataValid

◆ IsUnlockDataValid() [2/2]

bool EM::CardFacade::ECardDataFacadeService::IsUnlockDataValid ( bool &  valid) const

Functions tells if data containing result of SAM unlocking are present.

◆ SetCompanyNumber() [1/2]

bool ECardDataFacadeService::SetCompanyNumber ( const unsigned long  companyNumber) const

Function company number number to service data type on card.

SetCompanyNumber

◆ SetCompanyNumber() [2/2]

bool EM::CardFacade::ECardDataFacadeService::SetCompanyNumber ( const unsigned long  companyNumber) const

Function company number number to service data type on card.

◆ SetDriverNumber() [1/2]

bool ECardDataFacadeService::SetDriverNumber ( const unsigned long  driverNumber) const

Function set driver number to service data type on card.

SetDriverNumber

◆ SetDriverNumber() [2/2]

bool EM::CardFacade::ECardDataFacadeService::SetDriverNumber ( const unsigned long  driverNumber) const

Function set driver number to service data type on card.

◆ SetLineNumber() [1/2]

bool ECardDataFacadeService::SetLineNumber ( const unsigned long  lineNumber) const

Function set line number to service data type on card.

SetLineNumber

◆ SetLineNumber() [2/2]

bool EM::CardFacade::ECardDataFacadeService::SetLineNumber ( const unsigned long  lineNumber) const

Function set line number to service data type on card.

◆ SetLineOrder() [1/2]

bool ECardDataFacadeService::SetLineOrder ( const unsigned short  lineOrder) const

Function set lone order to service data type on card.

SetLineOrder

◆ SetLineOrder() [2/2]

bool EM::CardFacade::ECardDataFacadeService::SetLineOrder ( const unsigned short  lineOrder) const

Function set lone order to service data type on card.

◆ SetProtectNumber() [1/2]

bool ECardDataFacadeService::SetProtectNumber ( const unsigned short  protectNumber) const

Function set protect number to service data type on card.

SetProtectNumber

◆ SetProtectNumber() [2/2]

bool EM::CardFacade::ECardDataFacadeService::SetProtectNumber ( const unsigned short  protectNumber) const

Function set protect number to service data type on card.

◆ SetServiceCounter() [1/2]

bool ECardDataFacadeService::SetServiceCounter ( const unsigned char  serviceCounter) const

Funciton set service counter to service data type on card.

◆ SetServiceCounter() [2/2]

bool EM::CardFacade::ECardDataFacadeService::SetServiceCounter ( const unsigned char  serviceCounter) const

Funciton set service counter to service data type on card.

◆ SetTariffArea() [1/2]

bool ECardDataFacadeService::SetTariffArea ( const unsigned short  tariffArea) const

Function set tariff area to service data type on card.

◆ SetTariffArea() [2/2]

bool EM::CardFacade::ECardDataFacadeService::SetTariffArea ( const unsigned short  tariffArea) const

Function set tariff area to service data type on card.

◆ SetTripNumber() [1/2]

bool ECardDataFacadeService::SetTripNumber ( const unsigned long  tripNumber) const

Function set trip number to service data type on card.

SetTripNumber

◆ SetTripNumber() [2/2]

bool EM::CardFacade::ECardDataFacadeService::SetTripNumber ( const unsigned long  tripNumber) const

Function set trip number to service data type on card.

◆ SetValidityEnd() [1/2]

bool ECardDataFacadeService::SetValidityEnd ( const unsigned long  validityEnd) const

Method sets end validity time of service section on card.

Parameters
validityEndend validity of service section on card to be set

SetValidityEnd

◆ SetValidityEnd() [2/2]

bool EM::CardFacade::ECardDataFacadeService::SetValidityEnd ( const unsigned long  validityEnd) const

Method sets end validity time of service section on card.

Parameters
validityEndend validity of service section on card to be set

◆ SetZone() [1/2]

bool ECardDataFacadeService::SetZone ( const unsigned short  actualZone) const

Function set zone to service data type on card.

SetZone

◆ SetZone() [2/2]

bool EM::CardFacade::ECardDataFacadeService::SetZone ( const unsigned short  actualZone) const

Function set zone to service data type on card.

◆ SetZone2() [1/2]

bool ECardDataFacadeService::SetZone2 ( const unsigned short  zone2) const

Function set zone2 to service data type on card.

◆ SetZone2() [2/2]

bool EM::CardFacade::ECardDataFacadeService::SetZone2 ( const unsigned short  zone2) const

Function set zone2 to service data type on card.

◆ WasUnlockSuccessfull() [1/2]

bool ECardDataFacadeService::WasUnlockSuccessfull ( bool &  successfull) const

Function returns if SAM unlocking was successfull (SAM was unlocked)

WasUnlockSuccessfull

◆ WasUnlockSuccessfull() [2/2]

bool EM::CardFacade::ECardDataFacadeService::WasUnlockSuccessfull ( bool &  successfull) const

Function returns if SAM unlocking was successfull (SAM was unlocked)


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