LibLogicalAccess  2.5.0
An Open Source RFID Library
Loading...
Searching...
No Matches
pcsc_connection.hpp
Go to the documentation of this file.
1//
2// Created by xaqq on 8/3/15.
3//
4
5#ifndef LIBLOGICALACCESS_PCSC_CONNECTION_HPP
6#define LIBLOGICALACCESS_PCSC_CONNECTION_HPP
7
9
10namespace logicalaccess
11{
16class LLA_READERS_PCSC_API PCSCConnection
17{
18 public:
22 PCSCConnection(PCSCShareMode mode, unsigned long protocol, SCARDCONTEXT context,
23 const std::string &device);
24
29
36 void reconnect();
37
44 static std::string strerror(unsigned int error_flag);
45
49 void setDisposition(DWORD dispo)
50 {
51 disposition = dispo;
52 }
53
54 private:
58 SCARDHANDLE handle_;
59
64
68 DWORD protocol_;
69
74
79
80 friend class PCSCReaderUnit;
81};
82}
83
84#endif // LIBLOGICALACCESS_PCSC_CONNECTION_HPP
Definition: pcsc_connection.hpp:17
SCARDHANDLE handle_
Definition: pcsc_connection.hpp:58
PCSCShareMode share_mode_
Definition: pcsc_connection.hpp:63
void setDisposition(DWORD dispo)
Definition: pcsc_connection.hpp:49
DWORD active_protocol_
Definition: pcsc_connection.hpp:73
DWORD disposition
Definition: pcsc_connection.hpp:78
DWORD protocol_
Definition: pcsc_connection.hpp:68
The PC/SC reader unit class.
Definition: pcscreaderunit.hpp:23
Definition: asn1.hpp:9
PCSCShareMode
Share mode enumeration.
Definition: pcscreaderunitconfiguration.hpp:35
PC/SC Reader unit configuration.