diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-06-07 12:34:16 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-06-07 12:34:16 +0200 |
commit | aaca93be3d8f153dce3ae98d4d4787463f3210cf (patch) | |
tree | fb2eeabd937e056bd5006f3aca1f19b9776a31c3 /plugins/interfaces.h | |
parent | Check URL validity before searching (diff) | |
download | smolbote-aaca93be3d8f153dce3ae98d4d4787463f3210cf.tar.xz |
Don't copy profiles into profile manager plugin
Diffstat (limited to 'plugins/interfaces.h')
-rw-r--r-- | plugins/interfaces.h | 10 |
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 |