diff options
Diffstat (limited to 'src/browser.h')
-rw-r--r-- | src/browser.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/browser.h b/src/browser.h index 236b0fb..5b1a760 100644 --- a/src/browser.h +++ b/src/browser.h @@ -26,6 +26,11 @@ class Browser : public SingleApplication Q_OBJECT public: + struct Plugin { + QJsonObject meta; + QObject *pointer; + }; + explicit Browser(int &argc, char *argv[]); ~Browser() final; Q_DISABLE_COPY(Browser) @@ -33,7 +38,6 @@ public: void setConfiguration(std::shared_ptr<Configuration> &config); std::shared_ptr<WebEngineProfile> profile(const QString storageName); - QStringList profiles() const; public slots: MainWindow *createSession(const QString &profileName, bool newWindow, const QStringList &urls); @@ -44,7 +48,7 @@ private: std::shared_ptr<Configuration> m_config; QVector<MainWindow *> m_windows; - QVector<PluginInterface *> m_plugins; + QVector<Plugin> m_plugins; QHash<QString, std::shared_ptr<WebEngineProfile>> m_profiles; std::shared_ptr<WebEngineProfile> m_defaultProfile; |