SPI  1.2101.8
Secured Payment Interface
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Protected Attributes | Friends | List of all members
Modularity::SPI::Device Class Referenceabstract

This class contains all the operations that Avilible for a Service. Since this class is abstract, Servuce object is invlaid and can't be constructed. A Service handle is created by SPI class interface. All data in this class is reachable through various methods which define the behaivor of the operation. More...

#include <Device.h>

Public Member Functions

virtual SPILIBRARY_API SPI_RET_VAL Init ()=0
 Initialize the payment service.
 
virtual SPILIBRARY_API SPI_RET_VAL SetConfig (Config &ConfigObj)=0
 Initialize the payment service.
 
SPILIBRARY_API string GetName () const
 Get device name as defined while added to SPI.
 
APIHandle GetDeviceHandle () const
 Handle get - reserved for internal useage.
 
 Device (string Name, Config &)
 Constructor reserved for internal useage.
 
virtual ~Device ()
 destructor reserved for internal useage
 

Protected Attributes

APIHandle DeviceHandle
 

Friends

class SPI
 

Detailed Description

This class contains all the operations that Avilible for a Service. Since this class is abstract, Servuce object is invlaid and can't be constructed. A Service handle is created by SPI class interface. All data in this class is reachable through various methods which define the behaivor of the operation.

Definition at line 30 of file Device.h.

Member Function Documentation

SPILIBRARY_API string Modularity::SPI::Device::GetName ( ) const

Get device name as defined while added to SPI.

Returns
std::string with Name.
virtual SPILIBRARY_API SPI_RET_VAL Modularity::SPI::Device::Init ( )
pure virtual

Initialize the payment service.

Parameters
[in]DeviceSerialNo- Device serial number.Considering AshraitEMV service, that runs over the user device such as library, that must be sent.
Returns
  • SPI_SUCCESS : Service initialization was OK.
  • SPI_INVALID : An error occurred
See Also
InitAshraitExample()
virtual SPILIBRARY_API SPI_RET_VAL Modularity::SPI::Device::SetConfig ( Config &  ConfigObj)
pure virtual

Initialize the payment service.

Parameters
[in]DeviceSerialNo- Device serial number.Considering AshraitEMV service, that runs over the user device such as library, that must be sent.
Returns
  • SPI_SUCCESS : Service initialization was OK.
  • SPI_INVALID : An error occurred
See Also
InitAshraitExample()

Member Data Documentation

APIHandle Modularity::SPI::Device::DeviceHandle
protected

Handle

Definition at line 80 of file Device.h.


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