Loading...
Searching...
No Matches
ListeningHandler.hpp
1#pragma once
2#include <Device/Node/DeviceNode.hpp>
3
4#include <QObject>
5
6#include <score_plugin_deviceexplorer_export.h>
7
8#include <verdigris>
9namespace State
10{
11struct Address;
12}
13namespace Device
14{
15class DeviceInterface;
16}
17
18namespace Explorer
19{
20class SCORE_PLUGIN_DEVICEEXPLORER_EXPORT ListeningHandler : public QObject
21{
22 W_OBJECT(ListeningHandler)
23public:
24 virtual ~ListeningHandler();
25 virtual void
26 setListening(Device::DeviceInterface& dev, const State::Address& addr, bool b)
27 = 0;
28
29 virtual void
30 setListening(Device::DeviceInterface& dev, const Device::Node& addr, bool b)
31 = 0;
32
33 virtual void
34 addToListening(Device::DeviceInterface& dev, const std::vector<State::Address>& v)
35 = 0;
36
37public:
38 // Will stop everything from listening
39 void stop() E_SIGNAL(SCORE_PLUGIN_DEVICEEXPLORER_EXPORT, stop)
40
41 // Will restore with the current state of the tree
42 void restore() E_SIGNAL(SCORE_PLUGIN_DEVICEEXPLORER_EXPORT, restore)
43};
44}
Definition DeviceInterface.hpp:66
Definition ListeningHandler.hpp:21
Manipulation of Devices from Qt.
Definition AddressSettings.cpp:14
Utilities for OSSIA data structures.
Definition DeviceInterface.hpp:33
The Address struct.
Definition Address.hpp:58