EvdevProtocolSettingsWidget.hpp
1 #pragma once
2 #include <ossia/detail/config.hpp>
3 #if defined(OSSIA_PROTOCOL_EVDEV)
4 
5 #include <Device/Protocol/DeviceSettings.hpp>
6 #include <Device/Protocol/ProtocolSettingsWidget.hpp>
7 
8 #include <Protocols/Evdev/EvdevSpecificSettings.hpp>
9 
10 #include <verdigris>
11 
12 class QLineEdit;
13 class QSpinBox;
14 class QTableWidget;
15 class QPushButton;
16 
17 namespace Protocols
18 {
19 
20 class EvdevProtocolSettingsWidget final : public Device::ProtocolSettingsWidget
21 {
22  W_OBJECT(EvdevProtocolSettingsWidget)
23 
24 public:
25  EvdevProtocolSettingsWidget(QWidget* parent = nullptr);
26  virtual ~EvdevProtocolSettingsWidget();
27  Device::DeviceSettings getSettings() const override;
28  void setSettings(const Device::DeviceSettings& settings) override;
29 
30 private:
31  Device::DeviceSettings m_settings;
32  QLineEdit* m_deviceNameEdit{};
33  QLineEdit* m_host{};
34  QSpinBox* m_port{};
35 };
36 }
37 #endif
Definition: ProtocolSettingsWidget.hpp:22
Definition: DeviceSettings.hpp:20