SPI  1.2404.0
Secured Payment Interface
ReadCardData.h
Go to the documentation of this file.
1 
13 #ifndef __READCARDDATA_H__
14 #define __READCARDDATA_H__
15 
16 #include <string>
17 #include <vector>
18 
19 #include "SPIDEF.h"
20 
21 using std::string;
22 
23 namespace Modularity {
24  namespace SPI {
29  class ReadCardData {
30  public:
31 
35 
38  SPILIBRARY_API ReadCardData();
39 
43  SPILIBRARY_API void ReadMsr();
44 
49  SPILIBRARY_API void ReadMifare();
50 
57  SPILIBRARY_API void SetTimeout(TimeOutType Timeout);
58 
62  SPILIBRARY_API void SetNonCancelable();
63 
68  SPILIBRARY_API void SetDisplayMessage(std::vector<string> Msg);
69 
135  SPILIBRARY_API void AddMifareProperty(string Key, string Value);
137 
141 
142 
147  SPILIBRARY_API ReadCardEntry GetReadCardEntry() const;
148 
153  SPILIBRARY_API string GetTrack2() const;
154 
159  SPILIBRARY_API string GetCardId() const;
160 
165  SPILIBRARY_API string GetFileData() const;
167 
168 
172  SPILIBRARY_API ~ReadCardData();
173 
178  private:
179  APIHandle ReadCardDataHandle;
181  };
182  }
183 }
184 
185 #endif
SPILIBRARY_API void SetDisplayMessage(std::vector< string > Msg)
Set a vector of strings to be displayed on Device screen while polling for card All strings must be U...
SPILIBRARY_API string GetTrack2() const
Get track2 of MSR card.
This namespace contains avilible API from Modularity Inc.
SPILIBRARY_API ReadCardData()
Class constructor.
ulint TimeOutType
Definition: SPIDEF.h:68
APIHandle GetReadCardDataHandle() const
Handle get - reserved for internal useage.
SPILIBRARY_API void SetNonCancelable()
Disable/Hide cancel button on the device while polling for card
SPILIBRARY_API void AddMifareProperty(string Key, string Value)
Add Mifare property when Reading Mifare.
SPILIBRARY_API string GetFileData() const
Get data read from file for DESFire EV2. Data is in HEX-String.
SPILIBRARY_API void SetTimeout(TimeOutType Timeout)
Set timeout for the request in seconds. The timeout is handeled on the device side and not on client ...
SPILIBRARY_API string GetCardId() const
Get Card serial if card read using NFC.
This file conatins all defenitions which are used in SPI API.
SPILIBRARY_API void ReadMsr()
Enable MSR interface to read card.
SPILIBRARY_API void ReadMifare()
Enable NFC interface to read Mifare card.
void * APIHandle
Definition: SPIDEF.h:41
SPILIBRARY_API ReadCardEntry GetReadCardEntry() const
If ReadCard retuns SPI_SUCCESS than a card was discovered in one of the enabled interfaces.
This class contains all the input data and output data of Device.ReadCard(). All data in this class i...
Definition: ReadCardData.h:29
SPILIBRARY_API ~ReadCardData()
Class desrstructor.