GPSProtocolFactory.hpp
1 #pragma once
2 #include <ossia/detail/config.hpp>
3 #if defined(OSSIA_PROTOCOL_GPS)
4 #include <Explorer/DefaultProtocolFactory.hpp>
5 
6 namespace Protocols
7 {
8 
9 class GPSProtocolFactory final : public DefaultProtocolFactory
10 {
11  SCORE_CONCRETE("63cc4e26-b15b-41f9-860f-2b410c86e177")
12 
13  QString prettyName() const noexcept override;
14  QString category() const noexcept override;
15  QUrl manual() const noexcept override;
16 
17  Device::DeviceInterface* makeDevice(
18  const Device::DeviceSettings& settings, const Explorer::DeviceDocumentPlugin& plug,
19  const score::DocumentContext& ctx) override;
20 
21  const Device::DeviceSettings& defaultSettings() const noexcept override;
22 
23  Device::ProtocolSettingsWidget* makeSettingsWidget() override;
24 
25  QVariant makeProtocolSpecificSettings(const VisitorVariant& visitor) const override;
26 
27  void serializeProtocolSpecificSettings(
28  const QVariant& data, const VisitorVariant& visitor) const override;
29 
30  bool checkCompatibility(
31  const Device::DeviceSettings& a,
32  const Device::DeviceSettings& b) const noexcept override;
33 };
34 }
35 #endif
Manipulation of Devices from Qt.
Definition: AddressSettings.cpp:14
Base toolkit upon which the software is built.
Definition: Application.cpp:90
The VisitorVariant struct.
Definition: VisitorInterface.hpp:26