diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-05-16 18:20:25 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-05-16 18:20:25 +0200 |
commit | 6d095aca7f59dff26df0e2b5283d926feff5b477 (patch) | |
tree | da26b56719aefee7eec5b81a47b6b6ad49125437 /plugins/interfaces.h | |
parent | Move help and version functions to main (out of Configuration) (diff) | |
download | smolbote-6d095aca7f59dff26df0e2b5283d926feff5b477.tar.xz |
Plugin command-line parameters
Diffstat (limited to 'plugins/interfaces.h')
-rw-r--r-- | plugins/interfaces.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/interfaces.h b/plugins/interfaces.h index 46cf24a..ad3df97 100644 --- a/plugins/interfaces.h +++ b/plugins/interfaces.h @@ -11,6 +11,7 @@ #include <QtPlugin> #include <memory> +#include <functional> class QString; class QAction; @@ -26,13 +27,13 @@ class PluginInterface { public: virtual ~PluginInterface() = default; + virtual QHash<QString, std::function<void()>> commands() = 0; }; class ProfileInterface { public: virtual ~ProfileInterface() = default; - virtual QDialog *createWidget(QWebEngineProfile *profile, QWidget *parent) = 0; }; |