diff options
Diffstat (limited to 'src/browser.h')
-rw-r--r-- | src/browser.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/browser.h b/src/browser.h index 9d75036..bb4a6bf 100644 --- a/src/browser.h +++ b/src/browser.h @@ -28,6 +28,7 @@ #include <QLocalServer> #include "settings.h" #include <QNetworkAccessManager> +#include "webengine/webengineprofile.h" #ifdef qApp #undef qApp @@ -47,8 +48,7 @@ public: QString applicationLongVersion() const; - void firstRun(); - bool preLaunch(QStringList urls); + bool prepare(QStringList urls); static Browser *instance(); @@ -61,6 +61,8 @@ public: void addWindow(MainWindow* window); MainWindow *mainWindow(); + WebEngineProfile *profile(const QString name); + public slots: void removeWindow(MainWindow* window); @@ -70,7 +72,10 @@ private slots: private: Settings *m_settings; QLocalServer *m_localServer; - QVector<MainWindow*> m_windows; + + QVector<MainWindow *> m_windows; + QHash<QString, WebEngineProfile *> m_profiles; + QNetworkAccessManager *m_networkAccessManager; BookmarksWidget *m_bookmarksManager; DownloadsWidget *m_downloadManager; |