score-plugin-deviceexplorer/Explorer/ApplicationPlugin.hpp
1 #pragma once
2 #include <score/plugins/application/GUIApplicationPlugin.hpp>
3 #include <score/plugins/documentdelegate/plugin/DocumentPlugin.hpp>
4 
5 namespace score
6 {
7 class MessagesPanelDelegate;
8 }
9 namespace Device
10 {
11 class DeviceList;
12 }
13 namespace Explorer
14 {
16 {
17 public:
19 
20 private:
21  void disableConnections()
22  {
23  QObject::disconnect(m_inbound);
24  QObject::disconnect(m_outbound);
25  QObject::disconnect(m_error);
26  }
27  void setupConnections(score::MessagesPanelDelegate&, Device::DeviceList& devices);
28  void on_newDocument(score::Document& doc) override;
29  void on_documentChanged(score::Document* olddoc, score::Document* newdoc) override;
30 
31  QMetaObject::Connection m_inbound{}, m_outbound{}, m_error{}, m_visible{};
32 };
33 }
The DeviceList class.
Definition: DeviceList.hpp:26
Definition: score-plugin-deviceexplorer/Explorer/ApplicationPlugin.hpp:16
The Document class is the central part of the software.
Definition: Document.hpp:51
Used to extend the software with application-wide data.
Definition: GUIApplicationPlugin.hpp:89
Definition: MessagesPanel.hpp:52
Manipulation of Devices from Qt.
Definition: AddressSettings.cpp:14
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Specializes ApplicationContext with the QMainWindow.
Definition: GUIApplicationContext.hpp:15