21 #ifndef PLUGINS_STAGEPROFI_STAGEPROFIPLUGIN_H_ 22 #define PLUGINS_STAGEPROFI_STAGEPROFIPLUGIN_H_ 27 #include "olad/Plugin.h" 28 #include "ola/network/Socket.h" 29 #include "ola/plugin_id.h" 30 #include "plugins/stageprofi/StageProfiDetector.h" 34 namespace stageprofi {
36 class StageProfiDevice;
41 :
Plugin(plugin_adaptor) {}
44 std::string
Name()
const {
return PLUGIN_NAME; }
45 ola_plugin_id
Id()
const {
return OLA_PLUGIN_STAGEPROFI; }
50 typedef std::map<std::string, StageProfiDevice*> DeviceMap;
53 std::auto_ptr<class StageProfiDetector> m_detector;
57 bool SetDefaultPreferences();
58 void NewWidget(
const std::string &widget_path,
61 void DeviceRemoved(std::string widget_path);
64 static const char STAGEPROFI_DEVICE_PATH[];
65 static const char STAGEPROFI_DEVICE_NAME[];
66 static const char PLUGIN_NAME[];
67 static const char PLUGIN_PREFIX[];
68 static const char DEVICE_KEY[];
73 #endif // PLUGINS_STAGEPROFI_STAGEPROFIPLUGIN_H_ std::string Description() const
Definition: StageProfiPlugin.cpp:84
A BidirectionalFileDescriptor that also generates notifications when closed.
Definition: Descriptor.h:282
std::string Name() const
Get the plugin name.
Definition: StageProfiPlugin.h:44
Definition: StageProfiDevice.h:38
Definition: PluginAdaptor.h:41
ola_plugin_id Id() const
Get the plugin ID of this plugin.
Definition: StageProfiPlugin.h:45
Definition: StageProfiPlugin.h:38
std::string PluginPrefix() const
The prefix to use for storing configuration files.
Definition: StageProfiPlugin.h:47
The namespace containing all OLA symbols.
Definition: Credentials.cpp:44