MagicSmoke  $VERSION$
configwidget.h
Go to the documentation of this file.
1 //
2 // C++ Interface: plugin for USB barcode scanners
3 //
4 // Description:
5 //
6 //
7 // Author: Konrad Rosenbaum <konrad@silmor.de>, (C) 2013-2014
8 //
9 // Copyright: See README/COPYING.GPL files that come with this distribution
10 //
11 //
12 
13 #ifndef MAGICSMOKE_BCSUSB_CONFIG_H
14 #define MAGICSMOKE_BCSUSB_CONFIG_H
15 
16 #include <QWidget>
17 
18 class QComboBox;
20 class MUsbBarcodeConfig:public QWidget
21 {
22  Q_OBJECT
23  public:
25 
26  static const QString settingsGroup;
27  static const QString intervalKey;
28  static const QString timeoutKey;
29  static const QString terminatorKey;
30  static const QString layoutKey;
31  static const QString nameKey;
32  static const QString activeKey;
33  static const QString vendorKey;
34  static const QString productKey;
35  static const QString serialKey;
36  static const QString useSerialKey;
37  static const QString interfaceKey;
38 
39  public slots:
40  void saveConfig();
41  void addScanner();
42  private:
43  QComboBox*minterval;
44 };
45 
46 class MUsbScannerConfig:public QWidget
47 {
48  Q_OBJECT
49  public:
51  public slots:
52  void saveConfig();
53 };
54 
55 #endif
void saveConfig()
Definition: configwidget.cpp:66
static const QString intervalKey
Definition: configwidget.h:27
static const QString interfaceKey
Definition: configwidget.h:37
void saveConfig()
Definition: configwidget.cpp:49
static const QString layoutKey
Definition: configwidget.h:30
static const QString settingsGroup
Definition: configwidget.h:26
MUsbBarcodeConfig(MBarcodeConfiguration *)
Definition: configwidget.cpp:31
static const QString terminatorKey
Definition: configwidget.h:29
static const QString vendorKey
Definition: configwidget.h:33
MUsbScannerConfig(MBarcodeConfiguration *, QString)
Definition: configwidget.cpp:60
Definition: configwidget.h:20
static const QString useSerialKey
Definition: configwidget.h:36
static const QString activeKey
Definition: configwidget.h:32
static const QString productKey
Definition: configwidget.h:34
Definition: configwidget.h:46
static const QString timeoutKey
Definition: configwidget.h:28
static const QString serialKey
Definition: configwidget.h:35
static const QString nameKey
Definition: configwidget.h:31
Scanner Configuration Dialog.
Definition: barcode-plugin.h:26
void addScanner()
Definition: configwidget.cpp:54