summaryrefslogtreecommitdiff
path: root/plugins-unmaintained/PluginLoader/keybinding/pluginLoader.h
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2018-05-29 05:44:34 +0100
committerThomas Preud'homme <robotux@celest.fr>2018-05-29 05:44:34 +0100
commit594fcba67600704bee9115c86e18927b2237b304 (patch)
tree38dc620e6b8e9a76c1953ded39c1dc006a830728 /plugins-unmaintained/PluginLoader/keybinding/pluginLoader.h
parent20062a6a4bc2aec8ada645baa78ff68892ccd154 (diff)
New upstream version 1.4.0.8
Diffstat (limited to 'plugins-unmaintained/PluginLoader/keybinding/pluginLoader.h')
-rw-r--r--plugins-unmaintained/PluginLoader/keybinding/pluginLoader.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/plugins-unmaintained/PluginLoader/keybinding/pluginLoader.h b/plugins-unmaintained/PluginLoader/keybinding/pluginLoader.h
new file mode 100644
index 0000000..1361c0d
--- /dev/null
+++ b/plugins-unmaintained/PluginLoader/keybinding/pluginLoader.h
@@ -0,0 +1,47 @@
+/** \file pluginLoader.h
+\brief Define the plugin loader
+\author alpha_one_x86
+\licence GPL3, see the file COPYING */
+
+#ifndef PLUGIN_LOADER_TEST_H
+#define PLUGIN_LOADER_TEST_H
+
+#include <QObject>
+#include <QMessageBox>
+
+#include <QString>
+#include <QStringList>
+#include <QProcess>
+#include <QSet>
+#include <QKeySequence>
+
+#include "../../../interface/PluginInterface_PluginLoader.h"
+#include "Environment.h"
+#include "OptionsWidget.h"
+
+/// \brief \brief Define the plugin loader
+class KeyBindPlugin : public PluginInterface_PluginLoader
+{
+ Q_OBJECT
+ Q_PLUGIN_METADATA(IID "first-world.info.ultracopier.PluginInterface.PluginLoader/1.0.0.0" FILE "plugin.json")
+ Q_INTERFACES(PluginInterface_PluginLoader)
+public:
+ KeyBindPlugin();
+ ~KeyBindPlugin();
+ /// \brief try enable/disable the catching
+ void setEnabled(const bool &needBeRegistred);
+ /// \brief to set resources, writePath can be empty if read only mode
+ 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();
+private:
+ OptionInterface * optionsEngine;
+ OptionsWidget optionsWidget;
+private slots:
+ void setKeyBind(const QKeySequence &keySequence);
+};
+
+#endif // PLUGIN_LOADER_TEST_H