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