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

#include <EChipCard.h>

Inheritance diagram for EM::Devices::EChipCard:
Inheritance graph
[legend]
Collaboration diagram for EM::Devices::EChipCard:
Collaboration graph
[legend]

Public Member Functions

virtual unsigned long GetID (void)
 GetID. More...
 
EM::PT::EApplicationError SendRequestSynchronous (PT::EDataCollection *readRequest, PT::EDataCollection *&answer, const long timeout=1000)
 SendRequestSynchronous - read data from card and automatically update that data to card facade. More...
 
EM::PT::EApplicationError SendReadRequestSynchronous (const unsigned short dataTypesOperation, const long timeout=1000, bool ignoreErrors=true, PT::EDataCollection::SCSLockStatus SCSLock=PT::EDataCollection::SCSLockStatusLockAfterCardApproaching)
 
EM::PT::EApplicationError SendRequest (PT::EDataCollection *dataCollection, EDeviceReceiver *deviceReceiver=NULL)
 SendRequest - sends request via default chipcard driver. More...
 
EM::PT::EApplicationError SendReadRequest (const unsigned short dataTypesOperation, EDeviceReceiver *deviceReceiver=NULL, bool ignoreErrors=true, PT::EDataCollection::SCSLockStatus SCSLock=PT::EDataCollection::SCSLockStatusLockAfterCardApproaching)
 
EM::PT::EApplicationError SendAplRequestWrite (EM::PT::EDataCollection *dataCollection, EDeviceReceiver *deviceReceiver=NULL, const long timeout=-1, PT::EDataCollection::SCSLockStatus SCSLock=PT::EDataCollection::SCSLockStatusLockAfterCardApproaching)
 
EM::PT::EApplicationError BreakReadRequestAndDisableReceiver ()
 
EM::PT::EApplicationError BreakReadRequest ()
 
bool SetDefaultReceiver ()
 SetDefaultReceiver sets first receiver from colletion of device receivers. More...
 
EM::PT::EApplicationError SendAplRequestReadCardImage (EDeviceReceiver *deviceReceiver)
 
EM::PT::EApplicationError SendSetup (EM::PT::EPTSetup *ptSetup)
 SendSetup - sends. More...
 
void SetClientSnr (const unsigned long snr)
 SetClientSnr - sets client snr to default chipCardDriver. More...
 
unsigned long GetClientSnr ()
 GetClientSnr. More...
 
ECardExtraOperationManagerGetCardExtraOperationManager ()
 GetCardExtraOperationManager. More...
 
bool WasOperationStarted (EM::PT::EPTAnswer *answer)
 WasOperationStarted - looks for started operation in. More...
 
void SetDefaultTimeout (const long timeout)
 
void SetCollectionSaving (bool save)
 SetCollectionSaving. More...
 
bool IsCollectionSavingEnabled ()
 IsCollectionSavingEnabled. More...
 
bool IsCardImageRequest ()
 IsCardImageRequest. More...
 
void CardImageReceived ()
 CardImageReceived clears flag Card Image Request. More...
 
bool BreakWriteRequest ()
 BreakWriteRequest - calls BreakWriteRequest() in default chipcard driver. More...
 
EM::PT::EApplicationError BreakWriteRequestSynchronous (unsigned long timeout=1000)
 BreakWriteRequestSynchronous - calls synchronous BreakWriteRequest in default chipcard driver with timeout. More...
 
unsigned long GetTagReceiver () const
 GetTagReceiver. More...
 
EM::PT::EApplicationError GetSamModulesInfo (std::map< unsigned long, EM::PT::SAM_INFO > &connectedSamModules)
 GetSamModulesInfo - method to gain information about SAM modules present in system, while. More...
 
EM::PT::EApplicationError SamUpdateProcess (std::string login, std::string pin)
 SamUpdate - method for SAM update. More...
 
bool IsTimeIntervalForSamUpdateExceeded (const unsigned intervalInDays) const
 IsTimeIntervalForSamUpdateExceeded - every time we successfully process SAM update, we mark this date so we can check how many days have passed since then. More...
 
EM::PT::EApplicationError SamUpdateCheck ()
 SamUpdateCheck - Asynchronous method for checking status for SAM update - should be calling on IssueOut. More...
 
EM::PT::EApplicationError GetSamInfo (EM::PT::EAbstractCardData *samInfo)
 GetSamInfo. More...
 
bool GetSamIDs (std::vector< QString > &samIDs)
 GetSamID returns SAM ID of all installed HW SAMs. More...
 
EM::PT::EApplicationError SwitchAntenna (bool switchOff)
 SwitchAntenna - synchronous method for reader antenna switch on/off. More...
 
EM::PT::EApplicationError SwitchEmvDetect (bool switchOff)
 SwitchEmvDetect - synchronous method for reader emv detect on/off. More...
 
bool SelectCard (unsigned char *uid, unsigned char &uidSize, CLCardType &cardType)
 Select card. More...
 
bool SendAPDU (unsigned char *sendCmd, unsigned long sendCmdSize, unsigned char *rcvResponse, unsigned long &rcvResponseSize)
 Send APDU to card. More...
 
EM::PT::EApplicationError SmartCardServiceLockRequest (bool immediateLock)
 SmartCardServiceLockRequest send synchronous request to lock SmartCardService immediately. More...
 
void SmartCardServiceUnlockRequest ()
 
bool VerifyDataProcess (const unsigned char *data, const uint32_t dataSize, const unsigned char *signature, const uint32_t signatureSize, const uint8_t signatureType)
 
virtual unsigned long GetID (void)
 GetID. More...
 
EM::PT::EApplicationError SendRequestSynchronous (PT::EDataCollection *readRequest, PT::EDataCollection *&answer, const long timeout=1000)
 SendRequestSynchronous - read data from card and automatically update that data to card facade. More...
 
EM::PT::EApplicationError SendReadRequestSynchronous (const unsigned short dataTypesOperation, const long timeout=1000, bool ignoreErrors=true, PT::EDataCollection::SCSLockStatus SCSLock=PT::EDataCollection::SCSLockStatusLockAfterCardApproaching)
 
EM::PT::EApplicationError SendRequest (PT::EDataCollection *dataCollection, EDeviceReceiver *deviceReceiver=NULL)
 SendRequest - sends request via default chipcard driver. More...
 
EM::PT::EApplicationError SendReadRequest (const unsigned short dataTypesOperation, EDeviceReceiver *deviceReceiver=NULL, bool ignoreErrors=true, PT::EDataCollection::SCSLockStatus SCSLock=PT::EDataCollection::SCSLockStatusLockAfterCardApproaching)
 
EM::PT::EApplicationError SendAplRequestWrite (EM::PT::EDataCollection *dataCollection, EDeviceReceiver *deviceReceiver=NULL, const long timeout=-1, PT::EDataCollection::SCSLockStatus SCSLock=PT::EDataCollection::SCSLockStatusLockAfterCardApproaching)
 
EM::PT::EApplicationError BreakReadRequestAndDisableReceiver ()
 
EM::PT::EApplicationError BreakReadRequest ()
 
bool SetDefaultReceiver ()
 SetDefaultReceiver sets first receiver from colletion of device receivers. More...
 
EM::PT::EApplicationError SendAplRequestReadCardImage (EDeviceReceiver *deviceReceiver)
 
EM::PT::EApplicationError SendSetup (EM::PT::EPTSetup *ptSetup)
 SendSetup - sends. More...
 
void SetClientSnr (const unsigned long snr)
 SetClientSnr - sets client snr to default chipCardDriver. More...
 
unsigned long GetClientSnr ()
 GetClientSnr. More...
 
ECardExtraOperationManagerGetCardExtraOperationManager ()
 GetCardExtraOperationManager. More...
 
bool WasOperationStarted (EM::PT::EPTAnswer *answer)
 WasOperationStarted - looks for started operation in. More...
 
void SetDefaultTimeout (const long timeout)
 
void SetCollectionSaving (bool save)
 SetCollectionSaving. More...
 
bool IsCollectionSavingEnabled ()
 IsCollectionSavingEnabled. More...
 
bool IsCardImageRequest ()
 IsCardImageRequest. More...
 
void CardImageReceived ()
 CardImageReceived clears flag Card Image Request. More...
 
bool BreakWriteRequest ()
 BreakWriteRequest - calls BreakWriteRequest() in default chipcard driver. More...
 
EM::PT::EApplicationError BreakWriteRequestSynchronous (unsigned long timeout=1000)
 BreakWriteRequestSynchronous - calls synchronous BreakWriteRequest in default chipcard driver with timeout. More...
 
unsigned long GetTagReceiver () const
 GetTagReceiver. More...
 
EM::PT::EApplicationError GetSamModulesInfo (std::map< unsigned long, EM::PT::SAM_INFO > &connectedSamModules)
 GetSamModulesInfo - method to gain information about SAM modules present in system, while. More...
 
EM::PT::EApplicationError SamUpdateProcess (std::string login, std::string pin)
 SamUpdate - method for SAM update. More...
 
bool IsTimeIntervalForSamUpdateExceeded (const unsigned intervalInDays) const
 IsTimeIntervalForSamUpdateExceeded - every time we successfully process SAM update, we mark this date so we can check how many days have passed since then. More...
 
EM::PT::EApplicationError SamUpdateCheck ()
 SamUpdateCheck - Asynchronous method for checking status for SAM update - should be calling on IssueOut. More...
 
EM::PT::EApplicationError GetSamInfo (EM::PT::EAbstractCardData *samInfo)
 GetSamInfo. More...
 
bool GetSamIDs (std::vector< QString > &samIDs)
 GetSamID returns SAM ID of all installed HW SAMs. More...
 
EM::PT::EApplicationError SwitchAntenna (bool switchOff)
 SwitchAntenna - synchronous method for reader antenna switch on/off. More...
 
EM::PT::EApplicationError SwitchEmvDetect (bool switchOff)
 SwitchEmvDetect - synchronous method for reader emv detect on/off. More...
 
bool SelectCard (unsigned char *uid, unsigned char &uidSize, CLCardType &cardType)
 Select card. More...
 
bool SendAPDU (unsigned char *sendCmd, unsigned long sendCmdSize, unsigned char *rcvResponse, unsigned long &rcvResponseSize)
 Send APDU to card. More...
 
EM::PT::EApplicationError SmartCardServiceLockRequest (bool immediateLock)
 SmartCardServiceLockRequest send synchronous request to lock SmartCardService immediately. More...
 
void SmartCardServiceUnlockRequest ()
 
bool VerifyDataProcess (const unsigned char *data, const uint32_t dataSize, const unsigned char *signature, const uint32_t signatureSize, const uint8_t signatureType)
 

Protected Member Functions

virtual bool OnInit (EXMLNode *xmlNode)
 INTERNAL. More...
 
virtual bool OnInit (EDriverProperties properties)
 OnInit - if device name is not "PT" or "ECHIPCARD", then break. Else create new chip card driver with posted properties. More...
 
virtual bool OnInit (EXMLNode *xmlNode)
 
virtual bool OnInit (EDriverProperties properties)
 OnInit - if device name is not "PT" or "ECHIPCARD", then break. Else create new chip card driver with posted properties. More...
 

Member Function Documentation

EApplicationError EChipCard::BreakReadRequest ( )

Here is the call graph for this function:

EM::PT::EApplicationError EM::Devices::EChipCard::BreakReadRequest ( )
EApplicationError EChipCard::BreakReadRequestAndDisableReceiver ( )

Here is the call graph for this function:

EM::PT::EApplicationError EM::Devices::EChipCard::BreakReadRequestAndDisableReceiver ( )
bool EChipCard::BreakWriteRequest ( )

BreakWriteRequest - calls BreakWriteRequest() in default chipcard driver.

Returns
true if success, false else

BreakWriteRequest

bool EM::Devices::EChipCard::BreakWriteRequest ( )

BreakWriteRequest - calls BreakWriteRequest() in default chipcard driver.

Returns
true if success, false else
EApplicationError EChipCard::BreakWriteRequestSynchronous ( unsigned long  timeout = 1000)

BreakWriteRequestSynchronous - calls synchronous BreakWriteRequest in default chipcard driver with timeout.

Parameters
timeoutfor response on BreakWriteRequest message
Returns
See also
EM::PT::EApplicationError
EM::PT::EApplicationError EM::Devices::EChipCard::BreakWriteRequestSynchronous ( unsigned long  timeout = 1000)

BreakWriteRequestSynchronous - calls synchronous BreakWriteRequest in default chipcard driver with timeout.

Parameters
timeoutfor response on BreakWriteRequest message
Returns
See also
EM::PT::EApplicationError
void EChipCard::CardImageReceived ( )

CardImageReceived clears flag Card Image Request.

Returns
void
void EM::Devices::EChipCard::CardImageReceived ( )

CardImageReceived clears flag Card Image Request.

Returns
void
ECardExtraOperationManager* EM::Devices::EChipCard::GetCardExtraOperationManager ( )

GetCardExtraOperationManager.

Returns
ECardExtraOperationManger created in constructor
ECardExtraOperationManager * EChipCard::GetCardExtraOperationManager ( )

GetCardExtraOperationManager.

Returns
ECardExtraOperationManger created in constructor
unsigned long EM::Devices::EChipCard::GetClientSnr ( )

GetClientSnr.

Returns
client snr from default chipCardDriver
unsigned long EChipCard::GetClientSnr ( )

GetClientSnr.

Returns
client snr from default chipCardDriver

Here is the call graph for this function:

virtual unsigned long EM::Devices::EChipCard::GetID ( void  )
virtual
unsigned long EChipCard::GetID ( void  )
virtual
bool EM::Devices::EChipCard::GetSamIDs ( std::vector< QString > &  samIDs)

GetSamID returns SAM ID of all installed HW SAMs.

Parameters
samIDs
Returns
true if success, false otherwise
bool EM::Devices::EChipCard::GetSamIDs ( std::vector< QString > &  samIDs)

GetSamID returns SAM ID of all installed HW SAMs.

Parameters
samIDs
Returns
true if success, false otherwise
EM::PT::EApplicationError EM::Devices::EChipCard::GetSamInfo ( EM::PT::EAbstractCardData *  samInfo)

GetSamInfo.

Parameters
samInfo
Returns
EApplicationError : APL_OK when getting sam info was successful; otherwise application error from enum EApplicationError
EM::PT::EApplicationError EM::Devices::EChipCard::GetSamInfo ( EM::PT::EAbstractCardData *  samInfo)

GetSamInfo.

Parameters
samInfo
Returns
EApplicationError : APL_OK when getting sam info was successful; otherwise application error from enum EApplicationError
EM::PT::EApplicationError EM::Devices::EChipCard::GetSamModulesInfo ( std::map< unsigned long, EM::PT::SAM_INFO > &  connectedSamModules)

GetSamModulesInfo - method to gain information about SAM modules present in system, while.

See also
GetSamInfo tells about SAM modules used by SmartCardService only
Parameters
connectedSamModules- output parameter, which tells information about number of inserted SAM module and reader's name, key set name and SAM version
Returns
EApplicationError : APL_OK when info about SAM modules was successful, otherwise error from enum
See also
EM::PT::EApplicationError
EM::PT::EApplicationError EM::Devices::EChipCard::GetSamModulesInfo ( std::map< unsigned long, EM::PT::SAM_INFO > &  connectedSamModules)

GetSamModulesInfo - method to gain information about SAM modules present in system, while.

See also
GetSamInfo tells about SAM modules used by SmartCardService only
Parameters
connectedSamModules- output parameter, which tells information about number of inserted SAM module and reader's name, key set name and SAM version
Returns
EApplicationError : APL_OK when info about SAM modules was successful, otherwise error from enum
See also
EM::PT::EApplicationError
unsigned long EChipCard::GetTagReceiver ( ) const

GetTagReceiver.

Returns
tag receiver

GetTagReceiver

unsigned long EM::Devices::EChipCard::GetTagReceiver ( ) const

GetTagReceiver.

Returns
tag receiver
bool EChipCard::IsCardImageRequest ( )

IsCardImageRequest.

Returns
true if card image request was send
bool EM::Devices::EChipCard::IsCardImageRequest ( )

IsCardImageRequest.

Returns
true if card image request was send
bool EChipCard::IsCollectionSavingEnabled ( )

IsCollectionSavingEnabled.

Returns
true if saving is enabled
bool EM::Devices::EChipCard::IsCollectionSavingEnabled ( )

IsCollectionSavingEnabled.

Returns
true if saving is enabled
bool EM::Devices::EChipCard::IsTimeIntervalForSamUpdateExceeded ( const unsigned  intervalInDays) const

IsTimeIntervalForSamUpdateExceeded - every time we successfully process SAM update, we mark this date so we can check how many days have passed since then.

Parameters
intervalInDays- how owten we have to process SAM update
Returns
: true - SamUpdateProcess should be called, false - SamUpdateProcess shouldn't be called
bool EM::Devices::EChipCard::IsTimeIntervalForSamUpdateExceeded ( const unsigned  intervalInDays) const

IsTimeIntervalForSamUpdateExceeded - every time we successfully process SAM update, we mark this date so we can check how many days have passed since then.

Parameters
intervalInDays- how owten we have to process SAM update
Returns
: true - SamUpdateProcess should be called, false - SamUpdateProcess shouldn't be called
bool EChipCard::OnInit ( EXMLNode *  xmlNode)
protectedvirtual

INTERNAL.

virtual bool EM::Devices::EChipCard::OnInit ( EXMLNode *  xmlNode)
protectedvirtual
virtual bool EM::Devices::EChipCard::OnInit ( EDriverProperties  properties)
protectedvirtual

OnInit - if device name is not "PT" or "ECHIPCARD", then break. Else create new chip card driver with posted properties.

Parameters
properties- properties of new created chip card driver
Returns
true if init successful, false else
EM::Devices::EChipCard::OnInit ( EDriverProperties  properties)
protectedvirtual

OnInit - if device name is not "PT" or "ECHIPCARD", then break. Else create new chip card driver with posted properties.

OnInit - if device name is not "PT" or "ECHIPCARD", then break. Else convert attributes to properties and calls.

Parameters
properties- properties of new created chip card driver
Returns
true if init successful, false else
Parameters
xmlNode- node with chipcard attributes
Returns
true if init successful, false else
EM::PT::EApplicationError EM::Devices::EChipCard::SamUpdateCheck ( )

SamUpdateCheck - Asynchronous method for checking status for SAM update - should be calling on IssueOut.

Returns
EApplicationError : APL_OK, when sending asynchrous command processed succesfully; otherwise error from enum
See also
EM::PT::EApplicationError
EApplicationError EChipCard::SamUpdateCheck ( )

SamUpdateCheck - Asynchronous method for checking status for SAM update - should be calling on IssueOut.

Returns
EApplicationError : APL_OK, when sending asynchrous command processed succesfully; otherwise error from enum
See also
EM::PT::EApplicationError
EApplicationError EChipCard::SamUpdateProcess ( std::string  login,
std::string  pin 
)

SamUpdate - method for SAM update.

Parameters
loginfor login to SamUpdate Service
pinfor authentication to SamUpdate Service
Returns
EApplicationError : APL_OK when SAM update was successful, otherwise error from enum
See also
EM::PT::EApplicationError
EM::PT::EApplicationError EM::Devices::EChipCard::SamUpdateProcess ( std::string  login,
std::string  pin 
)

SamUpdate - method for SAM update.

Parameters
loginfor login to SamUpdate Service
pinfor authentication to SamUpdate Service
Returns
EApplicationError : APL_OK when SAM update was successful, otherwise error from enum
See also
EM::PT::EApplicationError
bool EChipCard::SelectCard ( unsigned char *  uid,
unsigned char &  uidSize,
CLCardType &  cardType 
)

Select card.

Use this method to gain uid and type of card

Parameters
uid: [Out] uid of card
uidSize: [Out] size of card uid
catType: [Out] type of card
Returns
bool : true, if select card process succesfully

SelectCard

bool EM::Devices::EChipCard::SelectCard ( unsigned char *  uid,
unsigned char &  uidSize,
CLCardType &  cardType 
)

Select card.

Use this method to gain uid and type of card

Parameters
uid: [Out] uid of card
uidSize: [Out] size of card uid
catType: [Out] type of card
Returns
bool : true, if select card process succesfully
bool EM::Devices::EChipCard::SendAPDU ( unsigned char *  sendCmd,
unsigned long  sendCmdSize,
unsigned char *  rcvResponse,
unsigned long &  rcvResponseSize 
)

Send APDU to card.

Use this method to send APDU frame to card and receive response

Parameters
sendCmd: [In] apdu command sending to card
sendCmdSize: [In] size of apdu command sending to card
rcvResponse: [Out] response from card
rcvResponseSize: [Out] size of received response from card
Returns
bool : true, if sending apdu frame to card process succesfully
bool EChipCard::SendAPDU ( unsigned char *  sendCmd,
unsigned long  sendCmdSize,
unsigned char *  rcvResponse,
unsigned long &  rcvResponseSize 
)

Send APDU to card.

Use this method to send APDU frame to card and receive response

Parameters
sendCmd: [In] apdu command sending to card
sendCmdSize: [In] size of apdu command sending to card
rcvResponse: [Out] response from card
rcvResponseSize: [Out] size of received response from card
Returns
bool : true, if sending apdu frame to card process succesfully

SendAPDU

EApplicationError EChipCard::SendAplRequestReadCardImage ( EDeviceReceiver *  deviceReceiver)

Here is the call graph for this function:

EM::PT::EApplicationError EM::Devices::EChipCard::SendAplRequestReadCardImage ( EDeviceReceiver *  deviceReceiver)
EM::PT::EApplicationError EM::Devices::EChipCard::SendAplRequestWrite ( EM::PT::EDataCollection *  dataCollection,
EDeviceReceiver *  deviceReceiver = NULL,
const long  timeout = -1,
PT::EDataCollection::SCSLockStatus  SCSLock = PT::EDataCollection::SCSLockStatusLockAfterCardApproaching 
)
EM::PT::EApplicationError EM::Devices::EChipCard::SendAplRequestWrite ( EM::PT::EDataCollection *  dataCollection,
EDeviceReceiver *  deviceReceiver = NULL,
const long  timeout = -1,
PT::EDataCollection::SCSLockStatus  SCSLock = PT::EDataCollection::SCSLockStatusLockAfterCardApproaching 
)
EM::PT::EApplicationError EM::Devices::EChipCard::SendReadRequest ( const unsigned short  dataTypesOperation,
EDeviceReceiver *  deviceReceiver = NULL,
bool  ignoreErrors = true,
PT::EDataCollection::SCSLockStatus  SCSLock = PT::EDataCollection::SCSLockStatusLockAfterCardApproaching 
)
EApplicationError EChipCard::SendReadRequest ( const unsigned short  dataTypesOperation,
EDeviceReceiver *  deviceReceiver = NULL,
bool  ignoreErrors = true,
PT::EDataCollection::SCSLockStatus  SCSLock = PT::EDataCollection::SCSLockStatusLockAfterCardApproaching 
)

Here is the call graph for this function:

EM::PT::EApplicationError EM::Devices::EChipCard::SendReadRequestSynchronous ( const unsigned short  dataTypesOperation,
const long  timeout = 1000,
bool  ignoreErrors = true,
PT::EDataCollection::SCSLockStatus  SCSLock = PT::EDataCollection::SCSLockStatusLockAfterCardApproaching 
)
EM::PT::EApplicationError EM::Devices::EChipCard::SendReadRequestSynchronous ( const unsigned short  dataTypesOperation,
const long  timeout = 1000,
bool  ignoreErrors = true,
PT::EDataCollection::SCSLockStatus  SCSLock = PT::EDataCollection::SCSLockStatusLockAfterCardApproaching 
)
EM::PT::EApplicationError EM::Devices::EChipCard::SendRequest ( PT::EDataCollection *  dataCollection,
EDeviceReceiver *  deviceReceiver = NULL 
)

SendRequest - sends request via default chipcard driver.

Note
if dataCollection contain EAplRequest and that EAplRequest has requestCount > 0 I add TYPE_EVENT_COLLECTION to it
automatically increase tag receiver
Parameters
dataCollection- data that are send
deviceReceiver- it is sets only if not NULL
Returns
EApplicationError : APL_OK when send request was successful; otherwise application error from enum EApplicationError
EM::PT::EApplicationError EM::Devices::EChipCard::SendRequest ( PT::EDataCollection *  dataCollection,
EDeviceReceiver *  deviceReceiver = NULL 
)

SendRequest - sends request via default chipcard driver.

Note
if dataCollection contain EAplRequest and that EAplRequest has requestCount > 0 I add TYPE_EVENT_COLLECTION to it
automatically increase tag receiver
Parameters
dataCollection- data that are send
deviceReceiver- it is sets only if not NULL
Returns
EApplicationError : APL_OK when send request was successful; otherwise application error from enum EApplicationError

Here is the caller graph for this function:

EM::PT::EApplicationError EM::Devices::EChipCard::SendRequestSynchronous ( PT::EDataCollection *  readRequest,
PT::EDataCollection *&  answer,
const long  timeout = 1000 
)

SendRequestSynchronous - read data from card and automatically update that data to card facade.

Note
Use this method to send synchronous request.
Parameters
readRequest: EDataCollection with request read
answer: EDataCollection with answer. answer is created inside this function
timeout: Wait time
Returns
EApplicationError : APL_OK when send request was successful; otherwise application error from enum EApplicationError

Here is the caller graph for this function:

EM::PT::EApplicationError EM::Devices::EChipCard::SendRequestSynchronous ( PT::EDataCollection *  readRequest,
PT::EDataCollection *&  answer,
const long  timeout = 1000 
)

SendRequestSynchronous - read data from card and automatically update that data to card facade.

Note
Use this method to send synchronous request.
Parameters
readRequest: EDataCollection with request read
answer: EDataCollection with answer. answer is created inside this function
timeout: Wait time
Returns
EApplicationError : APL_OK when send request was successful; otherwise application error from enum EApplicationError
EM::PT::EApplicationError EM::Devices::EChipCard::SendSetup ( EM::PT::EPTSetup *  ptSetup)

SendSetup - sends.

Parameters
ptSetupvia default driver
ptSetup
Returns
EApplicationError : APL_OK when send setup was successful; otherwise application error from enum EApplicationError
EM::PT::EApplicationError EM::Devices::EChipCard::SendSetup ( EM::PT::EPTSetup *  ptSetup)

SendSetup - sends.

Parameters
ptSetupvia default driver
ptSetup
Returns
EApplicationError : APL_OK when send setup was successful; otherwise application error from enum EApplicationError
void EChipCard::SetClientSnr ( const unsigned long  snr)

SetClientSnr - sets client snr to default chipCardDriver.

Parameters
snr

Here is the call graph for this function:

void EM::Devices::EChipCard::SetClientSnr ( const unsigned long  snr)

SetClientSnr - sets client snr to default chipCardDriver.

Parameters
snr
void EM::Devices::EChipCard::SetCollectionSaving ( bool  save)

SetCollectionSaving.

void EChipCard::SetCollectionSaving ( bool  save)

SetCollectionSaving.

bool EChipCard::SetDefaultReceiver ( )

SetDefaultReceiver sets first receiver from colletion of device receivers.

Note
do not call this function if you don't know what you doing
Returns
false - In case of collection is empty
true - successfully set first valid device receiver
bool EM::Devices::EChipCard::SetDefaultReceiver ( )

SetDefaultReceiver sets first receiver from colletion of device receivers.

Note
do not call this function if you don't know what you doing
Returns
false - In case of collection is empty
true - successfully set first valid device receiver
void EChipCard::SetDefaultTimeout ( const long  timeout)
void EM::Devices::EChipCard::SetDefaultTimeout ( const long  timeout)
EApplicationError EChipCard::SmartCardServiceLockRequest ( bool  immediateLock)

SmartCardServiceLockRequest send synchronous request to lock SmartCardService immediately.

Parameters
immediatelock - true for request to lock SmartCardService, false for unlock
See also
EM::PT::EApplicationError
Returns
APL_OK, if request was processed succesfully, otherwise return APL_SERVICE_LOCKED

SmartCardServiceLockRequest

Here is the call graph for this function:

Here is the caller graph for this function:

EM::PT::EApplicationError EM::Devices::EChipCard::SmartCardServiceLockRequest ( bool  immediateLock)

SmartCardServiceLockRequest send synchronous request to lock SmartCardService immediately.

Parameters
immediatelock - true for request to lock SmartCardService, false for unlock
See also
EM::PT::EApplicationError
Returns
APL_OK, if request was processed succesfully, otherwise return APL_SERVICE_LOCKED
void EM::Devices::EChipCard::SmartCardServiceUnlockRequest ( )
void EChipCard::SmartCardServiceUnlockRequest ( )

Here is the call graph for this function:

EApplicationError EChipCard::SwitchAntenna ( bool  switchOff)

SwitchAntenna - synchronous method for reader antenna switch on/off.

Note
now implemented for OCP device only
Parameters
switchOff- input parameter - if true, reader antenna will be switched off, else switched on
Returns
APL_OK if success
EM::PT::EApplicationError EM::Devices::EChipCard::SwitchAntenna ( bool  switchOff)

SwitchAntenna - synchronous method for reader antenna switch on/off.

Note
now implemented for OCP device only
Parameters
switchOff- input parameter - if true, reader antenna will be switched off, else switched on
Returns
APL_OK if success
EM::PT::EApplicationError EM::Devices::EChipCard::SwitchEmvDetect ( bool  switchOff)

SwitchEmvDetect - synchronous method for reader emv detect on/off.

Note
now implemented for OCP device only
Parameters
switchOff- input parameter - if true, reader emv detect will be switched off, else switched on
Returns
APL_OK if success
EApplicationError EChipCard::SwitchEmvDetect ( bool  switchOff)

SwitchEmvDetect - synchronous method for reader emv detect on/off.

Note
now implemented for OCP device only
Parameters
switchOff- input parameter - if true, reader emv detect will be switched off, else switched on
Returns
APL_OK if success
bool EM::Devices::EChipCard::VerifyDataProcess ( const unsigned char *  data,
const uint32_t  dataSize,
const unsigned char *  signature,
const uint32_t  signatureSize,
const uint8_t  signatureType 
)
bool EChipCard::VerifyDataProcess ( const unsigned char *  data,
const uint32_t  dataSize,
const unsigned char *  signature,
const uint32_t  signatureSize,
const uint8_t  signatureType 
)
bool EM::Devices::EChipCard::WasOperationStarted ( EM::PT::EPTAnswer *  answer)

WasOperationStarted - looks for started operation in.

Parameters
answer
answer
Returns
true if in answer exist started operation, false else
bool EM::Devices::EChipCard::WasOperationStarted ( EM::PT::EPTAnswer *  answer)

WasOperationStarted - looks for started operation in.

Parameters
answer
answer
Returns
true if in answer exist started operation, false else

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