summaryrefslogtreecommitdiff
path: root/SessionLoader.h
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2017-11-24 23:24:09 +0000
committerThomas Preud'homme <robotux@celest.fr>2017-11-24 23:24:09 +0000
commitb3c8bdcc0d1e4b2ab298847a7902b6d60410a5bc (patch)
tree8fce8a51adfb245db8ab2a76831661780c0c713e /SessionLoader.h
parente297dbd8052ef4e66f069e2dd1865ae7fa8af28e (diff)
New upstream version 1.2.3.6
Diffstat (limited to 'SessionLoader.h')
-rw-r--r--SessionLoader.h64
1 files changed, 35 insertions, 29 deletions
diff --git a/SessionLoader.h b/SessionLoader.h
index 28bb3aa..c14f0f5 100644
--- a/SessionLoader.h
+++ b/SessionLoader.h
@@ -1,8 +1,6 @@
/** \file SessionLoader.h
\brief Define the class to load the plugin and lunch it
\author alpha_one_x86
-\version 0.3
-\date 2010
\licence GPL3, see the file COPYING
This class load ALL plugin compatible to listen and catch the copy/move
@@ -13,43 +11,51 @@ This class load ALL plugin compatible to listen and catch the copy/move
#include <QObject>
#include <QList>
+#ifndef ULTRACOPIER_PLUGIN_ALL_IN_ONE_DIRECT
#include <QPluginLoader>
+#endif
#include <QString>
#include <QStringList>
#include "interface/PluginInterface_SessionLoader.h"
#include "PluginsManager.h"
-#include "GlobalClass.h"
#include "OptionDialog.h"
+#include "LocalPluginOptions.h"
+#ifndef ULTRACOPIER_VERSION_PORTABLE
/** \brief manage all SessionLoader plugin */
-class SessionLoader : public QObject, GlobalClass
+class SessionLoader : public QObject
{
- Q_OBJECT
- public:
- explicit SessionLoader(OptionDialog *optionDialog);
- ~SessionLoader();
- private slots:
- void onePluginAdded(const PluginsAvailable &plugin);
- void onePluginWillBeRemoved(const PluginsAvailable &plugin);
- void newOptionValue(const QString &groupName,const QString &variableName,const QVariant &value);
- #ifdef ULTRACOPIER_DEBUG
- void debugInformation(DebugLevel level,const QString& fonction,const QString& text,const QString& file,const int& ligne);
- #endif // ULTRACOPIER_DEBUG
- private:
- //variable
- struct LocalPlugin
- {
- PluginInterface_SessionLoader * sessionLoaderInterface;
- QPluginLoader * pluginLoader;
- QString path;
- LocalPluginOptions *options;
- };
- QList<LocalPlugin> pluginList;
- bool shouldEnabled;
- OptionDialog *optionDialog;
- signals:
- void previouslyPluginAdded(PluginsAvailable);
+ Q_OBJECT
+ public:
+ explicit SessionLoader(OptionDialog *optionDialog);
+ ~SessionLoader();
+ private slots:
+ void onePluginAdded(const PluginsAvailable &plugin);
+ #ifndef ULTRACOPIER_PLUGIN_ALL_IN_ONE
+ void onePluginWillBeRemoved(const PluginsAvailable &plugin);
+ #endif
+ void newOptionValue(const QString &groupName,const QString &variableName,const QVariant &value);
+ #ifdef ULTRACOPIER_DEBUG
+ void debugInformation(const Ultracopier::DebugLevel &level,const QString& fonction,const QString& text,const QString& file,const int& ligne);
+ #endif // ULTRACOPIER_DEBUG
+ private:
+ //variable
+ struct LocalPlugin
+ {
+ PluginInterface_SessionLoader * sessionLoaderInterface;
+ #ifndef ULTRACOPIER_PLUGIN_ALL_IN_ONE_DIRECT
+ QPluginLoader * pluginLoader;
+ #endif
+ QString path;
+ LocalPluginOptions *options;
+ };
+ QList<LocalPlugin> pluginList;
+ bool shouldEnabled;
+ OptionDialog *optionDialog;
+ signals:
+ void previouslyPluginAdded(PluginsAvailable) const;
};
+#endif
#endif // SESSIONLOADER_H