From 2dc5551b9f1e28159f70f0f47d91e66e71afd262 Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Fri, 14 Aug 2015 16:52:09 +0200 Subject: [PATCH] Add documentation for PluginTypes --- src/libsnore/hint.h | 2 ++ src/libsnore/plugins/plugincontainer.h | 2 +- src/libsnore/plugins/plugins.h | 34 ++++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) diff --git a/src/libsnore/hint.h b/src/libsnore/hint.h index b8b28f2..8289255 100644 --- a/src/libsnore/hint.h +++ b/src/libsnore/hint.h @@ -35,6 +35,8 @@ namespace Snore /** * Hint contains extra information accesible by key. * The keys are case sensitive. + * + * @author Patrick von Reth \ */ class SNORE_EXPORT Hint diff --git a/src/libsnore/plugins/plugincontainer.h b/src/libsnore/plugins/plugincontainer.h index ced5aee..a85b06a 100644 --- a/src/libsnore/plugins/plugincontainer.h +++ b/src/libsnore/plugins/plugincontainer.h @@ -30,7 +30,7 @@ class PluginContainer; typedef QHash PluginContaienrHash; -class SNORE_EXPORT PluginContainer +class PluginContainer { public: static const QHash pluginCache(SnorePlugin::PluginTypes type); diff --git a/src/libsnore/plugins/plugins.h b/src/libsnore/plugins/plugins.h index 07e749c..ce9ff3f 100644 --- a/src/libsnore/plugins/plugins.h +++ b/src/libsnore/plugins/plugins.h @@ -30,16 +30,50 @@ namespace Snore class PluginContainer; +/** + * SnorePlugin represents the base class for the plugins. + * + * @author Patrick von Reth \ + */ + class SNORE_EXPORT SnorePlugin : public QObject { Q_OBJECT public: + /** + * The PluginType Flags. + */ enum PluginType { + /** + * Flag for loading no plugins. + */ NONE = 0, + + /** + * Backends are those plugins that are capable of reporting user interaction. + */ BACKEND = 1 << 0, + + /** + * Secondary backaends are non interactive. + * Redirection or playback of a sound file. + */ SECONDARY_BACKEND = 1 << 1, + + /** + * Frontends are capable of recieving notifications. + */ FRONTEND = 1 << 2, + + /** + * Generell plugins, currently there are not plugins implemented. + */ PLUGIN = 1 << 3, + + + /** + * Flag for loading all plugins. + */ ALL = ~0 };