/* * This file is part of smolbote. It's copyrighted by the contributors recorded * in the version control history of the file, available from its original * location: git://neueland.iserlohn-fortress.net/smolbote.git * * SPDX-License-Identifier: GPL-3.0 */ #ifndef BROWSER_H #define BROWSER_H #include "settings/configuration.h" #include "singleapplication.h" #include "webengine/webengineprofile.h" #include #include class MainWindow; class BookmarksWidget; class DownloadsWidget; class UrlRequestInterceptor; class Browser : public SingleApplication { Q_OBJECT public: explicit Browser(int &argc, char *argv[]); ~Browser(); void setConfiguration(std::shared_ptr &config); std::shared_ptr profile(const QString storageName); QStringList profiles() const; public slots: MainWindow *createSession(const QString &profileName, bool newWindow, const QStringList &urls); private: Q_DISABLE_COPY(Browser) MainWindow *createWindow(); std::shared_ptr m_config; QVector m_windows; QHash> m_profiles; std::shared_ptr m_defaultProfile; std::shared_ptr m_urlRequestInterceptor; std::shared_ptr m_bookmarksManager; std::shared_ptr m_downloadManager; }; #endif // BROWSER_H