Loading...
Searching...
No Matches
MCUProtocolFactory.hpp
1#pragma once
2#include <Explorer/DefaultProtocolFactory.hpp>
3
4#include <QString>
5#include <QVariant>
6
7namespace Device
8{
9class DeviceInterface;
10class ProtocolSettingsWidget;
11}
12namespace score
13{
14struct DeviceSettings;
15} // namespace score
16struct VisitorVariant;
17
18namespace Protocols
19{
21{
22 SCORE_CONCRETE("4f0f482b-f6ba-4968-9f57-86948c5ca17b")
23public:
24 // Implement with OSSIA::Device
25 Device::ProtocolFactory::Flags flags() const noexcept override;
26 QString prettyName() const noexcept override;
27 QString category() const noexcept override;
28 QUrl manual() const noexcept override;
29
30 Device::DeviceEnumerators
31 getEnumerators(const score::DocumentContext& ctx) const override;
32
33 Device::DeviceInterface* makeDevice(
34 const Device::DeviceSettings& settings,
35 const Explorer::DeviceDocumentPlugin& plugin,
36 const score::DocumentContext& ctx) override;
37
38 const Device::DeviceSettings& defaultSettings() const noexcept override;
39
40 Device::ProtocolSettingsWidget* makeSettingsWidget() override;
41 Device::AddressDialog* makeAddAddressDialog(
43 QWidget* parent) override;
44
45 Device::AddressDialog* makeEditAddressDialog(
47 const score::DocumentContext& ctx, QWidget*) override;
48 QVariant makeProtocolSpecificSettings(const VisitorVariant& visitor) const override;
49
50 void serializeProtocolSpecificSettings(
51 const QVariant& data, const VisitorVariant& visitor) const override;
52
53 bool checkCompatibility(
55 const Device::DeviceSettings& b) const noexcept override;
56};
57}
Definition ProtocolSettingsWidget.hpp:41
Definition DeviceInterface.hpp:66
Definition ProtocolFactoryInterface.hpp:49
Definition ProtocolSettingsWidget.hpp:22
Definition MCUProtocolFactory.hpp:21
Manipulation of Devices from Qt.
Definition AddressSettings.cpp:14
Base toolkit upon which the software is built.
Definition Application.cpp:90
Definition AddressSettings.hpp:49
Definition DeviceSettings.hpp:20
The VisitorVariant struct.
Definition VisitorInterface.hpp:26
Definition DocumentContext.hpp:18