13 #ifndef MAGICSMOKE_BARCODE_PLUGIN_HID_H
14 #define MAGICSMOKE_BARCODE_PLUGIN_HID_H
33 void detectScanners();
35 void removeScanner(QObject*);
38 QTimer*mdetecttmr=
nullptr;
40 int vendor=0,product=0,iface=0;
41 bool useserial=
false,isactive=
false;
44 Config(
const Config&)=
default;
45 Config(Config&&)=
default;
46 Config(QSettings&,QString);
47 Config& operator=(
const Config&)=
default;
48 Config& operator=(Config&&)=
default;
51 Config findCfgMatch(
int vendor,
int product,
int iface,QString serial);
52 QList<QPointer<MHidBarcodeScanner>>mscanners;
virtual void configure(MBarcodeConfiguration *) override
called whenever the user opens a configuration dialog
Definition: bcs-plugin.cpp:49
Definition: bcs-plugin.h:23
base class of barcode scanner plugins
Definition: barcode-plugin.h:69
MHidBarcodePlugin()
Definition: bcs-plugin.cpp:21
virtual ~MHidBarcodePlugin()
Definition: bcs-plugin.cpp:37
Definition: hidscanner.h:23
#define MBarcodePlugin_IID
Definition: barcode-plugin.h:108
Scanner Configuration Dialog.
Definition: barcode-plugin.h:26