forked from ossia/score-addon-remotecontrol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
score_addon_remotecontrol.cpp
59 lines (48 loc) · 1.69 KB
/
score_addon_remotecontrol.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#include "score_addon_remotecontrol.hpp"
#include <score/plugins/FactorySetup.hpp>
#include <RemoteControl/ApplicationPlugin.hpp>
#include <RemoteControl/Settings/Factory.hpp>
#include <RemoteControl/Scenario/Scenario.hpp>
#include <RemoteControl/Scenario/Loop.hpp>
#include <score_plugin_scenario.hpp>
#include <score_plugin_deviceexplorer.hpp>
score_addon_remotecontrol::score_addon_remotecontrol()
{
}
score_addon_remotecontrol::~score_addon_remotecontrol()
{
}
score::GUIApplicationPlugin*score_addon_remotecontrol::make_guiApplicationPlugin(
const score::GUIApplicationContext& app)
{
return new RemoteControl::ApplicationPlugin{app};
}
std::vector<std::unique_ptr<score::InterfaceListBase> > score_addon_remotecontrol::factoryFamilies()
{
return make_ptr_vector<score::InterfaceListBase,
RemoteControl::ProcessComponentFactoryList
>();
}
std::vector<std::unique_ptr<score::InterfaceBase>> score_addon_remotecontrol::factories(
const score::ApplicationContext& ctx,
const score::InterfaceKey& key) const
{
return instantiate_factories<
score::ApplicationContext,
FW<score::SettingsDelegateFactory,
RemoteControl::Settings::Factory>,
FW<RemoteControl::ProcessComponentFactory,
RemoteControl::ScenarioComponentFactory,
RemoteControl::LoopComponentFactory>
>(ctx, key);
}
auto score_addon_remotecontrol::required() const
-> std::vector<score::PluginKey>
{
return {
score_plugin_scenario::static_key(),
score_plugin_deviceexplorer::static_key()
};
}
#include <score/plugins/PluginInstances.hpp>
SCORE_EXPORT_PLUGIN(score_addon_remotecontrol)