SPI
1.2111.2
Secured Payment Interface
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
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 "
Config.h
"
21
22
namespace
Modularity {
23
namespace
SPI {
30
class
Device
{
31
friend
class
SPI
;
32
public
:
42
SPILIBRARY_API
virtual
43
SPI_RET_VAL
Init
() = 0;
44
54
SPILIBRARY_API
virtual
55
SPI_RET_VAL
SetConfig
(
Config
& ConfigObj) = 0;
56
66
SPILIBRARY_API
virtual
67
SPI_RET_VAL
AbortDisplayActivity
(
string
PackageName) = 0;
68
84
SPILIBRARY_API
virtual
85
SPI_RET_VAL
DisplayActivity
(
string
PackageName,
string
ActivityName,
string
DataInput,
string
& DataOutput,
TimeOutType
Timeout) = 0;
86
93
SPILIBRARY_API
virtual
94
string
GetProperty
(
DeviceProperty
Property) = 0;
95
102
SPILIBRARY_API
virtual
103
SPI_RET_VAL
UploadLogs
() = 0;
104
116
SPILIBRARY_API
virtual
117
SPI_RET_VAL
GetConfig
(
Config
& ConfigObj) = 0;
118
119
124
SPILIBRARY_API
125
string
GetName
()
const
;
126
130
APIHandle
GetDeviceHandle
()
const
;
131
135
Device
(
string
Name,
Config
&);
136
140
virtual
~Device
();
141
protected
:
142
APIHandle
DeviceHandle
;
146
};
147
}
148
}
149
150
#endif //__DEVICE_H
Generated by
1.8.2