From 3b611f42bf5c233ca66e406474896022b6ed78cc Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sat, 25 Aug 2018 20:07:54 +0200 Subject: Add BrowserInterface to simplify plugins a bit --- src/browser.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/browser.h') diff --git a/src/browser.h b/src/browser.h index 99da8a7..340a16d 100644 --- a/src/browser.h +++ b/src/browser.h @@ -24,7 +24,7 @@ class DownloadsWidget; class UrlRequestInterceptor; class MainWindow; class WebProfile; -class Browser : public SingleApplication +class Browser : public SingleApplication, public BrowserInterface { Q_OBJECT @@ -37,6 +37,7 @@ public slots: public: void setConfiguration(std::unique_ptr &config); + Configuration *getConfiguration() const override; void registerPlugin(const Plugin &plugin); void setup(const QString &defaultProfile); @@ -46,8 +47,7 @@ public: return m_bookmarks; } -signals: - void registerProfile(WebProfile *profile); + const QVector profiles() const override; public slots: void createSession(const QJsonObject &object); -- cgit v1.2.1