From 3958fa914c8a524ed4b6a5b035b794e12708fa1d Mon Sep 17 00:00:00 2001 From: Thomas Preud'homme Date: Thu, 1 Mar 2018 22:42:01 +0000 Subject: Import ultracopier_1.4.0.4.orig.tar.xz [dgit import orig ultracopier_1.4.0.4.orig.tar.xz] --- interface/PluginInterface_SessionLoader.h | 39 +++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 interface/PluginInterface_SessionLoader.h (limited to 'interface/PluginInterface_SessionLoader.h') diff --git a/interface/PluginInterface_SessionLoader.h b/interface/PluginInterface_SessionLoader.h new file mode 100644 index 0000000..d0cd366 --- /dev/null +++ b/interface/PluginInterface_SessionLoader.h @@ -0,0 +1,39 @@ +/** \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 + +#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; +}; + +Q_DECLARE_INTERFACE(PluginInterface_SessionLoader,"first-world.info.ultracopier.PluginInterface.SessionLoader/1.2.4.0"); + +#endif // PLUGININTERFACE_SESSIONLOADER_H -- cgit v1.2.3