From aaca93be3d8f153dce3ae98d4d4787463f3210cf Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Thu, 7 Jun 2018 12:34:16 +0200 Subject: Don't copy profiles into profile manager plugin --- plugins/interfaces.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/interfaces.h') 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 #include @@ -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 *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 -- cgit v1.2.1