GPSProtocolSettingsWidget.hpp
1 #pragma once
2 #include <ossia/detail/config.hpp>
3 #if defined(OSSIA_PROTOCOL_GPS)
4 
5 #include <Device/Protocol/DeviceSettings.hpp>
6 #include <Device/Protocol/ProtocolSettingsWidget.hpp>
7 
8 #include <Protocols/GPS/GPSSpecificSettings.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 GPSProtocolSettingsWidget final : public Device::ProtocolSettingsWidget
21 {
22  W_OBJECT(GPSProtocolSettingsWidget)
23 
24 public:
25  GPSProtocolSettingsWidget(QWidget* parent = nullptr);
26  virtual ~GPSProtocolSettingsWidget();
27  Device::DeviceSettings getSettings() const override;
28  void setSettings(const Device::DeviceSettings& settings) override;
29 
30 private:
31  QLineEdit* m_deviceNameEdit{};
32  QLineEdit* m_host{};
33  QSpinBox* m_port{};
34 };
35 }
36 #endif
Definition: ProtocolSettingsWidget.hpp:22
Definition: DeviceSettings.hpp:20