From 6d095aca7f59dff26df0e2b5283d926feff5b477 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Wed, 16 May 2018 18:20:25 +0200 Subject: Plugin command-line parameters --- src/browser.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/browser.h') diff --git a/src/browser.h b/src/browser.h index 01de9bb..e5df9de 100644 --- a/src/browser.h +++ b/src/browser.h @@ -14,6 +14,7 @@ #include #include #include +#include QVector loadPlugins(const QString &location); @@ -34,6 +35,12 @@ public: void setConfiguration(std::shared_ptr &config); void setup(const QString &defaultProfile); + void command(const QString &command); + QStringList commands() const + { + return m_commands.keys(); + } + public slots: void createSession(const QString &profileName, bool newWindow, const QStringList &urls); MainWindow *createWindow(); @@ -46,6 +53,7 @@ private: QVector m_windows; QVector m_plugins; + QHash> m_commands; }; #endif // SMOLBOTE_BROWSER_H -- cgit v1.2.1