aboutsummaryrefslogtreecommitdiff
path: root/plugins/interfaces.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-05-15 14:26:47 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-05-15 14:26:47 +0200
commite412f035b054612d00fdbc39e13a958cf5492fec (patch)
tree438b806b4d1a53be6761dc91acedc988e489de01 /plugins/interfaces.h
parentSet download tooltip image preview width to 400 (diff)
downloadsmolbote-e412f035b054612d00fdbc39e13a958cf5492fec.tar.xz
Profile editor plugin
Diffstat (limited to 'plugins/interfaces.h')
-rw-r--r--plugins/interfaces.h10
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"