summaryrefslogtreecommitdiff
path: root/plugins/SessionLoader/KDE4/sessionLoader.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SessionLoader/KDE4/sessionLoader.h')
-rw-r--r--plugins/SessionLoader/KDE4/sessionLoader.h35
1 files changed, 15 insertions, 20 deletions
diff --git a/plugins/SessionLoader/KDE4/sessionLoader.h b/plugins/SessionLoader/KDE4/sessionLoader.h
index 41c4204..b037da7 100644
--- a/plugins/SessionLoader/KDE4/sessionLoader.h
+++ b/plugins/SessionLoader/KDE4/sessionLoader.h
@@ -1,8 +1,7 @@
/** \file sessionLoader.h
\brief Define the session loader
\author alpha_one_x86
-\version 0.3
-\date 2010 */
+\licence GPL3, see the file COPYING */
#ifndef SESSION_LOADER_PLUGIN_H
#define SESSION_LOADER_PLUGIN_H
@@ -12,27 +11,23 @@
#include "../../../interface/PluginInterface_SessionLoader.h"
/// \brief Define the session loader
-class SessionLoader : public PluginInterface_SessionLoader
+class KDESessionLoader : public PluginInterface_SessionLoader
{
- Q_OBJECT
- Q_INTERFACES(PluginInterface_SessionLoader)
+ Q_OBJECT
+ Q_PLUGIN_METADATA(IID "first-world.info.ultracopier.PluginInterface.SessionLoader/1.0.0.0" FILE "plugin.json")
+ Q_INTERFACES(PluginInterface_SessionLoader)
public:
- /// \brief to set if it's enabled or not
- void setEnabled(bool);
- /// \brief to get if is enabled
- bool getEnabled();
- /// \brief set the resources for the plugins
- void setResources(OptionInterface * options,QString writePath,QString pluginPath,bool portableVersion);
- /// \brief to get the options widget, NULL if not have
- QWidget * options();
+ /// \brief to set if it's enabled or not
+ void setEnabled(const bool &enabled);
+ /// \brief to get if is enabled
+ bool getEnabled() const;
+ /// \brief set the resources for the plugins
+ void setResources(OptionInterface * options,const QString &writePath,const QString &pluginPath,const bool &portableVersion);
+ /// \brief to get the options widget, NULL if not have
+ QWidget * options();
public slots:
- /// \brief to reload the translation, because the new language have been loaded
- void newLanguageLoaded();
-signals:
- #ifdef ULTRACOPIER_PLUGIN_DEBUG
- /// \brief To debug source
- void debugInformation(DebugLevel level,QString fonction,QString text,QString file,int ligne);
- #endif
+ /// \brief to reload the translation, because the new language have been loaded
+ void newLanguageLoaded();
};
#endif // SESSION_LOADER_PLUGIN_H