aboutsummaryrefslogtreecommitdiff
path: root/src/browser.h
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-04-02 15:47:01 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-04-02 15:47:01 +0200
commita6e6823da845ca14d37d8914c80185257e8c0e62 (patch)
tree1c0126f5a78bc95a6f536d2b091cf762972943c9 /src/browser.h
parentUpdated documentation (diff)
downloadsmolbote-a6e6823da845ca14d37d8914c80185257e8c0e62.tar.xz
Refactoring TabBar
- cleaned up code - moved to mainwindow/widgets - add Close tabs left/right to context menu
Diffstat (limited to 'src/browser.h')
-rw-r--r--src/browser.h18
1 files changed, 10 insertions, 8 deletions
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 <QJsonObject>
#include <QVector>
#include <memory>
-#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<WebEngineProfile> profile(const QString &storageName);
- const QList<QString> profiles() const {
+ const QList<QString> profiles() const
+ {
return m_profiles.keys();
}
- const QVector<Plugin> plugins() const {
+ const QVector<Plugin> plugins() const
+ {
return m_plugins;
}
@@ -60,8 +62,8 @@ private:
QHash<QString, std::shared_ptr<WebEngineProfile>> m_profiles;
std::shared_ptr<WebEngineProfile> m_defaultProfile;
- UrlRequestInterceptor* m_urlRequestInterceptor = nullptr;
- CookieFilter* m_cookieInterceptor = nullptr;
+ UrlRequestInterceptor *m_urlRequestInterceptor = nullptr;
+ CookieFilter *m_cookieInterceptor = nullptr;
std::shared_ptr<BookmarksWidget> m_bookmarksManager;
std::shared_ptr<DownloadsWidget> m_downloadManager;
};