aboutsummaryrefslogtreecommitdiff
path: root/plugins/interfaces.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/interfaces.h')
-rw-r--r--plugins/interfaces.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/interfaces.h b/plugins/interfaces.h
index d6bff54..8b5b78c 100644
--- a/plugins/interfaces.h
+++ b/plugins/interfaces.h
@@ -6,8 +6,8 @@
* SPDX-License-Identifier: MIT
*/
-#ifndef INTERFACES_H
-#define INTERFACES_H
+#ifndef SMOLBOTE_PLUGIN_INTERFACES_H
+#define SMOLBOTE_PLUGIN_INTERFACES_H
#include <QtPlugin>
#include <memory>
@@ -16,7 +16,7 @@
class QString;
class QAction;
class QDialog;
-class QWebEngineProfile;
+class WebProfile;
struct Plugin
{
@@ -34,7 +34,7 @@ class ProfileInterface
{
public:
virtual ~ProfileInterface() = default;
- virtual void addProfile(const QString &name, QWebEngineProfile *profile) = 0;
+ virtual void setProfiles(QHash<QString, WebProfile *> *profiles) = 0;
virtual QDialog *createWidget(QWidget *parent = nullptr) = 0;
};
@@ -44,4 +44,4 @@ Q_DECLARE_INTERFACE(PluginInterface, PluginInterfaceIid)
#define ProfileInterfaceIid "net.iserlohn-fortress.smolbote.ProfileInterface"
Q_DECLARE_INTERFACE(ProfileInterface, ProfileInterfaceIid)
-#endif //INTERFACES_H
+#endif // SMOLBOTE_PLUGIN_INTERFACES_H