summaryrefslogtreecommitdiff
path: root/interface/OptionInterface.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 /interface/OptionInterface.h
Imported Upstream version 0.3.0.5
Diffstat (limited to 'interface/OptionInterface.h')
-rw-r--r--interface/OptionInterface.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/interface/OptionInterface.h b/interface/OptionInterface.h
new file mode 100644
index 0000000..2be66cb
--- /dev/null
+++ b/interface/OptionInterface.h
@@ -0,0 +1,37 @@
+/** \file OptionInterface.h
+\brief Define the class of the option engine
+\author alpha_one_x86
+\version 0.3
+\date 2010 */
+
+#ifndef OPTION_INTERFACE_H
+#define OPTION_INTERFACE_H
+
+#include <QString>
+#include <QList>
+#include <QVariant>
+#include <QPair>
+
+#include "../StructEnumDefinition.h"
+
+/** \brief to pass the options to the plugin, the instance is created into Ultracopier from the class LocalPluginOptions()
+ * \see LocalPluginOptions()
+ * **/
+class OptionInterface : public QObject
+{
+ Q_OBJECT
+ public:
+ /// \brief To add option group to options
+ virtual bool addOptionGroup(const QList<QPair<QString, QVariant> > &KeysList) = 0;
+ /*/// \brief To remove option group to options, removed to the load plugin
+ virtual bool removeOptionGroup() = 0;*/
+ /// \brief To get option value
+ virtual QVariant getOptionValue(const QString &variableName) = 0;
+ /// \brief To set option value
+ virtual void setOptionValue(const QString &variableName,const QVariant &value) = 0;
+ signals:
+ //void newOptionValue(QString,QVariant);-> disabled because the value will not externally changed, then useless notification
+ void resetOptions();
+};
+
+#endif // OPTION_INTERFACE_H