OSCProtocolFactory.hpp
1 #pragma once
2 #include <Explorer/DefaultProtocolFactory.hpp>
3 
4 namespace Protocols
5 {
7 {
8  SCORE_CONCRETE("9a42de4b-f6eb-4bca-9564-01b975f601b9")
9  // Implement with OSSIA::Device
10  QString prettyName() const noexcept override;
11  QString category() const noexcept override;
12  QUrl manual() const noexcept override;
13  Device::DeviceEnumerators
14  getEnumerators(const score::DocumentContext& ctx) const override;
15 
16  Device::DeviceInterface* makeDevice(
17  const Device::DeviceSettings& settings,
18  const Explorer::DeviceDocumentPlugin& plugin,
19  const score::DocumentContext& ctx) override;
20  const Device::DeviceSettings& defaultSettings() const noexcept override;
21 
22  Device::ProtocolSettingsWidget* makeSettingsWidget() override;
23 
24  QVariant makeProtocolSpecificSettings(const VisitorVariant& visitor) const override;
25 
26  void serializeProtocolSpecificSettings(
27  const QVariant& data, const VisitorVariant& visitor) const override;
28 
29  bool checkCompatibility(
30  const Device::DeviceSettings& a,
31  const Device::DeviceSettings& b) const noexcept override;
32 };
33 }
Definition: DeviceInterface.hpp:66
Definition: ProtocolSettingsWidget.hpp:22
Definition: DefaultProtocolFactory.hpp:10
Definition: OSCProtocolFactory.hpp:7
Definition: DeviceSettings.hpp:20
The VisitorVariant struct.
Definition: VisitorInterface.hpp:26
Definition: DocumentContext.hpp:18