blob: 10ed856a90db25188f3ce75e1f8420e82a9c93d7 (
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
37
38
39
40
41
|
/** \file PluginInterface_SessionLoader.h
\brief Define the interface of the plugin of type: session loader
\author alpha_one_x86
\licence GPL3, see the file COPYING */
#ifndef PLUGININTERFACE_SESSIONLOADER_H
#define PLUGININTERFACE_SESSIONLOADER_H
#include <string>
#include "OptionInterface.h"
#include "../StructEnumDefinition.h"
/** \brief To define the interface between Ultracopier and the session loader
* */
class PluginInterface_SessionLoader : public QObject
{
Q_OBJECT
public:
/// \brief set enabled/disabled
virtual void setEnabled(const bool &enabled) = 0;
/// \brief get if is enabled
virtual bool getEnabled() const = 0;
/// \brief set the resources
virtual void setResources(OptionInterface * options,const std::string &writePath,const std::string &pluginPath,const bool &portableVersion) = 0;
/// \brief to get the options widget, NULL if not have
virtual QWidget * options() = 0;
public slots:
/// \brief to reload the translation, because the new language have been loaded
virtual void newLanguageLoaded() = 0;
signals:
/// \brief To debug source
void debugInformation(const Ultracopier::DebugLevel &level,const std::string &fonction,const std::string &text,const std::string &file,const int &ligne) const;
};
#ifndef ULTRACOPIER_PLUGIN_ALL_IN_ONE
Q_DECLARE_INTERFACE(PluginInterface_SessionLoader,"first-world.info.ultracopier.PluginInterface.SessionLoader/2.0.0.0");
#endif
#endif // PLUGININTERFACE_SESSIONLOADER_H
|