SPI  1.2403.0
Secured Payment Interface
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Device.h
Go to the documentation of this file.
1 
14 #ifndef __DEVICE_H
15 #define __DEVICE_H
16 
17 #include <cstdio>
18 
19 #include "SPIDEF.h"
20 #include "ReadCardData.h"
21 #include "Config.h"
22 
23 namespace Modularity {
24  namespace SPI {
31  class Device {
32  friend class SPI;
33  public:
43  SPILIBRARY_API virtual
44  SPI_RET_VAL Init() = 0;
45 
55  SPILIBRARY_API virtual
56  SPI_RET_VAL SetConfig(Config& ConfigObj) = 0;
57 
67  SPILIBRARY_API virtual
68  SPI_RET_VAL AbortDisplayActivity(string PackageName) = 0;
69 
85  SPILIBRARY_API virtual
86  SPI_RET_VAL DisplayActivity(string PackageName, string ActivityName, string DataInput, string & DataOutput, TimeOutType Timeout) = 0;
87 
94  SPILIBRARY_API virtual
95  string GetProperty(DeviceProperty Property) = 0;
96 
103  SPILIBRARY_API virtual
104  SPI_RET_VAL UploadLogs() = 0;
105 
117  SPILIBRARY_API virtual
118  SPI_RET_VAL GetConfig(Config& ConfigObj) = 0;
119 
134  SPILIBRARY_API virtual
135  SPI_RET_VAL ReadCard(ReadCardData* DataIO) = 0;
136 
143  SPILIBRARY_API virtual
145 
155  SPILIBRARY_API virtual
156  SPI_RET_VAL SendExternalEvent(SignedNumericType Code, std::string Data) = 0;
157 
162  SPILIBRARY_API
163  string GetName() const ;
164 
168  APIHandle GetDeviceHandle() const;
169 
173  Device(string Name,Config &,DeviceId Id);
174 
178  virtual ~Device();
179  protected:
184  };
185  }
186 }
187 
188 #endif //__DEVICE_H