score-plugin-jit/JitCpp/ApplicationPlugin.hpp
1 #pragma once
2 #include <JitCpp/AddonCompiler.hpp>
3 
4 #include <score/plugins/application/GUIApplicationPlugin.hpp>
5 
6 #include <QFileSystemWatcher>
7 #include <QSet>
8 #include <QThread>
9 
10 namespace Jit
11 {
12 
13 struct ApplicationPlugin final
14  : public QObject
16 {
18 
19  void setupAddon(const QString& addon);
20  void registerAddon(score::Plugin_QtInterface*);
21  void updateAddon(const QString& addon);
22 
23  void setupNode(const QString& addon);
24  void initialize() override;
25 
26  void rescanAddons();
27  void rescanNodes();
28 
29  QFileSystemWatcher m_addonsWatch;
30  QFileSystemWatcher m_nodesWatch;
31  QSet<QString> m_addonsPaths;
32  AddonCompiler m_compiler;
33 };
34 }
Compiles jobs asynchronously.
Definition: AddonCompiler.hpp:22
Used to extend the software with application-wide data.
Definition: GUIApplicationPlugin.hpp:89
Definition: PluginRequirements_QtInterface.hpp:18
Definition: score-plugin-jit/JitCpp/ApplicationPlugin.hpp:16
void initialize() override
initialize
Definition: score-plugin-jit/JitCpp/ApplicationPlugin.cpp:128
Specializes ApplicationContext with the QMainWindow.
Definition: GUIApplicationContext.hpp:15