WiimoteProtocolFactory.hpp
1 #pragma once
2 
3 #include <Explorer/DefaultProtocolFactory.hpp>
4 
5 namespace Protocols
6 {
7 
9 {
10  SCORE_CONCRETE("73692564-0940-4386-82d6-3d805953eff6")
11 
12  QString prettyName() const noexcept override;
13  QString category() const noexcept override;
14  QUrl manual() const noexcept override;
15 
16  Device::DeviceInterface* makeDevice(
17  const Device::DeviceSettings& settings,
18  const Explorer::DeviceDocumentPlugin& plugin,
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 }
Definition: DeviceInterface.hpp:66
Definition: ProtocolSettingsWidget.hpp:22
Definition: DefaultProtocolFactory.hpp:10
Definition: WiimoteProtocolFactory.hpp:9
Definition: DeviceSettings.hpp:20
The VisitorVariant struct.
Definition: VisitorInterface.hpp:26
Definition: DocumentContext.hpp:18