Loading...
Searching...
No Matches
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
12class QLineEdit;
13class QSpinBox;
14class QTableWidget;
15class QPushButton;
16
17namespace Protocols
18{
19
20class EvdevProtocolSettingsWidget final : public Device::ProtocolSettingsWidget
21{
22 W_OBJECT(EvdevProtocolSettingsWidget)
23
24public:
25 EvdevProtocolSettingsWidget(QWidget* parent = nullptr);
26 virtual ~EvdevProtocolSettingsWidget();
27 Device::DeviceSettings getSettings() const override;
28 void setSettings(const Device::DeviceSettings& settings) override;
29
30private:
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