From a6e6823da845ca14d37d8914c80185257e8c0e62 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Mon, 2 Apr 2018 15:47:01 +0200 Subject: Refactoring TabBar - cleaned up code - moved to mainwindow/widgets - add Close tabs left/right to context menu --- src/browser.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/browser.h') diff --git a/src/browser.h b/src/browser.h index 497050d..1f86327 100644 --- a/src/browser.h +++ b/src/browser.h @@ -9,18 +9,18 @@ #ifndef BROWSER_H #define BROWSER_H -#include "configuration.h" #include "singleapplication.h" -#include "webengine/webengineprofile.h" +#include #include #include -#include "webengine/cookiefilter.h" -#include "../plugins/interfaces.h" +class Configuration; class MainWindow; class BookmarksWidget; class DownloadsWidget; class UrlRequestInterceptor; +class WebEngineProfile; +class CookieFilter; class Browser : public SingleApplication { Q_OBJECT @@ -39,11 +39,13 @@ public: std::shared_ptr profile(const QString &storageName); - const QList profiles() const { + const QList profiles() const + { return m_profiles.keys(); } - const QVector plugins() const { + const QVector plugins() const + { return m_plugins; } @@ -60,8 +62,8 @@ private: QHash> m_profiles; std::shared_ptr m_defaultProfile; - UrlRequestInterceptor* m_urlRequestInterceptor = nullptr; - CookieFilter* m_cookieInterceptor = nullptr; + UrlRequestInterceptor *m_urlRequestInterceptor = nullptr; + CookieFilter *m_cookieInterceptor = nullptr; std::shared_ptr m_bookmarksManager; std::shared_ptr m_downloadManager; }; -- cgit v1.2.1