SPI  1.1.52
Secured Payment Interface
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
SPI.h
Go to the documentation of this file.
1 
13 #ifndef __SPI__H_
14 #define __SPI__H_
15 
16 #include <vector>
17 #include <string>
18 #include <cstring>
19 
20 
21 #include "SPIDEF.h"
22 #include "Config.h"
23 #include "transaction.h"
24 #include "AshraitEMVTransaction.h"
25 #include "Service.h"
26 
27 using std::string;
28 using std::vector;
29 
33 namespace Modularity {
37  namespace SPI {
41  class SPI
42  {
43 
44  public:
45 
51  SPILIBRARY_API void Start();
52 
61  SPILIBRARY_API Service* AddService(string ServiceName, ServiceID Id ,Config & ServiceConfig);
62 
70  SPILIBRARY_API SPI_RET_VAL RemoveService(string ServiceName);
71 
77  SPILIBRARY_API Service* GetServiceHandler(string ServiceName);
78 
83  SPILIBRARY_API void GetSPIVersion(string &Version);
84 
90  SPILIBRARY_API void SetLogDirectory(string Directory);
91 
96  SPILIBRARY_API void SetAndroidPackageName(string Name);
97 
104  SPILIBRARY_API void SetLogLevel(SPILogLevel LogLevel);
105 
109  SPILIBRARY_API SPI();
110 
114  SPILIBRARY_API ~SPI();
115 
119  APIHandle GetSPIHandle() const;
120 
124  void SetWorkingDirectory(const std::string & Path) const;
125 
126  private:
127  APIHandle SPIHandle;
130  };
131  }
132 }
133 
134 #endif