WSProtocolSettingsWidget.hpp
1 #pragma once
2 
3 #include <Device/Protocol/DeviceSettings.hpp>
4 #include <Device/Protocol/ProtocolSettingsWidget.hpp>
5 class QLineEdit;
6 class QTextEdit;
7 class QSpinBox;
8 class QWidget;
9 
10 namespace Protocols
11 {
13 {
14 public:
15  WSProtocolSettingsWidget(QWidget* parent = nullptr);
16 
17  Device::DeviceSettings getSettings() const override;
18 
19  void setSettings(const Device::DeviceSettings& settings) override;
20 
21 protected:
22  void setDefaults();
23  void parseHost();
24 
25 protected:
26  QLineEdit* m_deviceNameEdit{};
27  QLineEdit* m_addressNameEdit{};
28  QTextEdit* m_codeEdit{};
29 };
30 }
Definition: ProtocolSettingsWidget.hpp:22
Definition: WSProtocolSettingsWidget.hpp:13
Definition: DeviceSettings.hpp:20