diff options
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 |