From 66d3e99ff2bea172d991ad59db19586ce7bcbed6 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Fri, 9 Oct 2015 19:18:45 -0300 Subject: Add a PluginManager class This class is currently very small but the reason of existence is to allow subsurface to be easily extendable via plugins. The current type of plugin that I'm making is Social Network, but another possibilities: - Dive Simulation Algorithm - Import/Export Filters - Profile Overlays Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- subsurface-core/pluginmanager.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 subsurface-core/pluginmanager.h (limited to 'subsurface-core/pluginmanager.h') diff --git a/subsurface-core/pluginmanager.h b/subsurface-core/pluginmanager.h new file mode 100644 index 000000000..c4943895c --- /dev/null +++ b/subsurface-core/pluginmanager.h @@ -0,0 +1,19 @@ +#ifndef PLUGINMANAGER_H +#define PLUGINMANAGER_H + +#include + +#include "isocialnetworkintegration.h" + +class PluginManager { +public: + static PluginManager& instance(); + void loadPlugins(); + QList socialNetworkIntegrationPlugins() const; +private: + PluginManager(); + PluginManager(const PluginManager&) = delete; + PluginManager& operator=(const PluginManager&) = delete; +}; + +#endif \ No newline at end of file -- cgit v1.2.3-70-g09d2