PhidgetsProtocolFactory.hpp
1 #pragma once
2 #include <Device/Protocol/ProtocolFactoryInterface.hpp>
3 
4 namespace Protocols
5 {
7 {
8  SCORE_CONCRETE("46c28ec5-3d7a-42cd-a730-0ac97d01eea7")
9  // Implement with OSSIA::Device
10  QString prettyName() const override;
11  QUrl manual() const noexcept override;
12 
13  Device::DeviceInterface* makeDevice(
14  const Device::DeviceSettings& settings,
15  const score::DocumentContext& ctx) override;
16  const Device::DeviceSettings& defaultSettings() const override;
17 
18  Device::ProtocolSettingsWidget* makeSettingsWidget() override;
19 
20  QVariant makeProtocolSpecificSettings(const VisitorVariant& visitor) const override;
21 
22  void serializeProtocolSpecificSettings(
23  const QVariant& data, const VisitorVariant& visitor) const override;
24 
25  bool checkCompatibility(
26  const Device::DeviceSettings& a, const Device::DeviceSettings& b) const override;
27 
28  Device::AddressDialog* makeAddAddressDialog(
29  const Device::DeviceInterface& dev, const score::DocumentContext& ctx,
30  QWidget*) override;
31  Device::AddressDialog* makeEditAddressDialog(
33  const score::DocumentContext& ctx, QWidget*) override;
34 };
35 }
Definition: ProtocolSettingsWidget.hpp:41
Definition: DeviceInterface.hpp:66
Definition: ProtocolFactoryInterface.hpp:47
Definition: ProtocolSettingsWidget.hpp:22
Definition: PhidgetsProtocolFactory.hpp:7
Definition: AddressSettings.hpp:49
Definition: DeviceSettings.hpp:20
The VisitorVariant struct.
Definition: VisitorInterface.hpp:26
Definition: DocumentContext.hpp:18