SerialProtocolFactory.hpp
1 #pragma once
2 
3 #include <ossia/detail/config.hpp>
4 #if defined(OSSIA_PROTOCOL_SERIAL)
5 #include <Explorer/DefaultProtocolFactory.hpp>
6 
7 namespace Protocols
8 {
10 {
11  SCORE_CONCRETE("50c48ef3-8e60-400e-9a51-2ab535ad87eb")
12  // Implement with OSSIA::Device
13  QString prettyName() const noexcept override;
14  QString category() const noexcept override;
15  QUrl manual() const noexcept override;
16 
17  Device::DeviceEnumerators
18  getEnumerators(const score::DocumentContext& ctx) const override;
19 
20  Device::DeviceInterface* makeDevice(
21  const Device::DeviceSettings& settings,
22  const Explorer::DeviceDocumentPlugin& plugin,
23  const score::DocumentContext& ctx) override;
24  const Device::DeviceSettings& defaultSettings() const noexcept override;
25 
26  Device::ProtocolSettingsWidget* makeSettingsWidget() override;
27 
28  QVariant makeProtocolSpecificSettings(const VisitorVariant& visitor) const override;
29 
30  void serializeProtocolSpecificSettings(
31  const QVariant& data, const VisitorVariant& visitor) const override;
32 
33  bool checkCompatibility(
34  const Device::DeviceSettings& a,
35  const Device::DeviceSettings& b) const noexcept override;
36 };
37 }
38 #endif
Definition: DeviceInterface.hpp:66
Definition: ProtocolSettingsWidget.hpp:22
Definition: DefaultProtocolFactory.hpp:10
Definition: SerialProtocolFactory.hpp:10
Definition: DeviceSettings.hpp:20
The VisitorVariant struct.
Definition: VisitorInterface.hpp:26
Definition: DocumentContext.hpp:18