7#ifndef LOGICALACCESS_KEYBOARDREADERUNIT_HPP
8#define LOGICALACCESS_KEYBOARDREADERUNIT_HPP
13#include <logicalaccess/plugins/readers/keyboard/lla_readers_private_keyboard_api.hpp>
18class KeyboardReaderProvider;
40 std::string getName()
const override;
46 std::string getConnectedName()
override;
52 void setCardType(std::string cardType)
override;
63 bool waitInsertion(
unsigned int maxwait)
override;
73 bool waitRemoval(
unsigned int maxwait)
override;
80 std::shared_ptr<Chip> createChip(std::string type)
override;
86 std::shared_ptr<Chip> getSingleChip()
override;
92 std::vector<std::shared_ptr<Chip>> getChipList()
override;
101 bool connect()
override;
109 void disconnect()
override;
115 bool isConnected()
override;
121 bool connectToReader()
override;
126 void disconnectFromReader()
override;
132 std::string getReaderSerialNumber()
override;
138 void serialize(boost::property_tree::ptree &parentNode)
override;
144 void unSerialize(boost::property_tree::ptree &node)
override;
152 return std::dynamic_pointer_cast<KeyboardReaderUnitConfiguration>(
160 std::shared_ptr<KeyboardReaderProvider> getKeyboardReaderProvider()
const;
168 ByteVector getChipInAir(
unsigned int maxwait);
170 bool waitInputChar(
char &c,
unsigned int maxwait)
const;
172 void setKeyboard(
const std::string &devicename,
unsigned int vendorId,
173 unsigned int productId);
175 unsigned int getVendorId()
const;
177 unsigned int getProductId()
const;
The Keyboard reader unit class.
Definition: keyboardreaderunit.hpp:24
std::string d_devicename
Definition: keyboardreaderunit.hpp:180
ByteVector d_removalIdentifier
Definition: keyboardreaderunit.hpp:186
unsigned int d_productId
Definition: keyboardreaderunit.hpp:184
std::shared_ptr< KeyboardReaderUnitConfiguration > getKeyboardConfiguration()
Get the Elatec reader unit configuration.
Definition: keyboardreaderunit.hpp:150
unsigned int d_vendorId
Definition: keyboardreaderunit.hpp:182
bool d_instanceConnected
Definition: keyboardreaderunit.hpp:188
The card types.
Definition: readerunit.hpp:42
Keyboard Reader unit configuration.
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80