diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-05-15 14:26:47 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-05-15 14:26:47 +0200 |
commit | e412f035b054612d00fdbc39e13a958cf5492fec (patch) | |
tree | 438b806b4d1a53be6761dc91acedc988e489de01 /plugins/interfaces.h | |
parent | Set download tooltip image preview width to 400 (diff) | |
download | smolbote-e412f035b054612d00fdbc39e13a958cf5492fec.tar.xz |
Profile editor plugin
Diffstat (limited to 'plugins/interfaces.h')
-rw-r--r-- | plugins/interfaces.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/interfaces.h b/plugins/interfaces.h index 3bec574..46cf24a 100644 --- a/plugins/interfaces.h +++ b/plugins/interfaces.h @@ -10,12 +10,18 @@ #define INTERFACES_H #include <QtPlugin> +#include <memory> class QString; class QAction; -class QWidget; +class QDialog; class QWebEngineProfile; +struct Plugin +{ + std::shared_ptr<QObject> instance; +}; + class PluginInterface { public: @@ -27,7 +33,7 @@ class ProfileInterface public: virtual ~ProfileInterface() = default; - virtual QWidget *createWidget(QWebEngineProfile *profile, QWidget *parent) = 0; + virtual QDialog *createWidget(QWebEngineProfile *profile, QWidget *parent) = 0; }; #define PluginInterfaceIid "net.iserlohn-fortress.smolbote.PluginInterface" |