summaryrefslogtreecommitdiff
path: root/LocalPluginOptions.h
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2013-01-04 14:50:19 +0100
committerThomas Preud'homme <robotux@celest.fr>2013-01-04 14:50:19 +0100
commit8f9f382e1c97cab2e72e97495650c73ac4b97314 (patch)
tree78510a0d81368c09b56f444fb19bb132c8bc3009 /LocalPluginOptions.h
Imported Upstream version 0.3.0.5
Diffstat (limited to 'LocalPluginOptions.h')
-rw-r--r--LocalPluginOptions.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/LocalPluginOptions.h b/LocalPluginOptions.h
new file mode 100644
index 0000000..f5ee463
--- /dev/null
+++ b/LocalPluginOptions.h
@@ -0,0 +1,45 @@
+/** \file LocalPluginOptions.h
+\brief To bind the options of the plugin, into unique group options
+\author alpha_one_x86
+\version 0.3
+\date 2010
+\licence GPL3, see the file COPYING */
+
+#ifndef LOCALPLUGINOPTIONS_H
+#define LOCALPLUGINOPTIONS_H
+
+#include <QObject>
+
+#include "interface/OptionInterface.h"
+#include "OptionEngine.h"
+
+/** \brief To store the options
+
+ That's allow to have mutualised way to store the options. Then the plugins just keep Ultracopier manage it, the portable version will store on the disk near the application, and the normal version will keep at the normal location.
+
+ \see OptionEngine::OptionEngine()
+*/
+class LocalPluginOptions : public OptionInterface
+{
+ Q_OBJECT
+public:
+ explicit LocalPluginOptions(const QString &group);
+ ~LocalPluginOptions();
+ /// \brief To add option group to options
+ bool addOptionGroup(const QList<QPair<QString, QVariant> > &KeysList);
+ /*/// \brief To remove option group to options, removed to the load plugin
+ bool removeOptionGroup();*/
+ /// \brief To get option value
+ QVariant getOptionValue(const QString &variableName);
+ /// \brief To set option value
+ void setOptionValue(const QString &variableName,const QVariant &value);
+protected:
+ //for the options
+ OptionEngine *options;
+ QString group;
+ bool groupOptionAdded;
+/*public slots:-> disabled because the value will not externaly changed, then useless notification
+ void newOptionValue(QString group,QString variable,QVariant value);*/
+};
+
+#endif // LOCALPLUGINOPTIONS_H