summaryrefslogtreecommitdiff
path: root/interface/OptionInterface.h
blob: 96381706de39b3196805f0eeee2855383c15cd6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/** \file OptionInterface.h
\brief Define the class of the option engine
\author alpha_one_x86
\licence GPL3, see the file COPYING */

#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) const = 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() const;
};

#endif // OPTION_INTERFACE_H