diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-05-28 11:42:09 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-05-28 11:42:09 +0200 |
commit | c299a5e9c1ce2cd7af2eb02645993b21b9448f34 (patch) | |
tree | cd74c10814014d5f86cfc253d59d1920df238f9e /src/browser.h | |
parent | Remove Window::addTab(WebView *view) (diff) | |
download | smolbote-c299a5e9c1ce2cd7af2eb02645993b21b9448f34.tar.xz |
Changing Window profile
Diffstat (limited to 'src/browser.h')
-rw-r--r-- | src/browser.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/browser.h b/src/browser.h index 0a0d956..03126d3 100644 --- a/src/browser.h +++ b/src/browser.h @@ -23,6 +23,7 @@ class BookmarksWidget; class DownloadsWidget; class UrlRequestInterceptor; class MainWindow; +class WebProfile; class Browser : public SingleApplication { Q_OBJECT @@ -35,6 +36,12 @@ public: void setConfiguration(std::shared_ptr<Configuration> &config); void setup(const QString &defaultProfile); + WebProfile *profile(const QString &name) const; + QStringList profiles() const + { + return m_profiles.keys(); + } + int command(const QString &command); QStringList commands() const { @@ -51,6 +58,7 @@ private: std::shared_ptr<DownloadsWidget> m_downloads; std::shared_ptr<UrlRequestInterceptor> m_urlFilter; + QHash<QString, WebProfile*> m_profiles; QVector<MainWindow *> m_windows; QVector<Plugin> m_plugins; QHash<QString, std::function<int()>> m_commands; |