diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-05-16 18:20:25 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-05-16 18:20:25 +0200 |
commit | 6d095aca7f59dff26df0e2b5283d926feff5b477 (patch) | |
tree | da26b56719aefee7eec5b81a47b6b6ad49125437 /src/browser.h | |
parent | Move help and version functions to main (out of Configuration) (diff) | |
download | smolbote-6d095aca7f59dff26df0e2b5283d926feff5b477.tar.xz |
Plugin command-line parameters
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 01de9bb..e5df9de 100644 --- a/src/browser.h +++ b/src/browser.h @@ -14,6 +14,7 @@ #include <QVector> #include <memory> #include <interfaces.h> +#include <functional> QVector<Plugin> loadPlugins(const QString &location); @@ -34,6 +35,12 @@ public: void setConfiguration(std::shared_ptr<Configuration> &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<MainWindow *> m_windows; QVector<Plugin> m_plugins; + QHash<QString, std::function<void()>> m_commands; }; #endif // SMOLBOTE_BROWSER_H |