diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-06-22 16:15:31 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-06-22 16:15:31 +0200 |
commit | 9d004e3d18312bea2259bc30064999f9f2db14a6 (patch) | |
tree | 55d02ccb4775bd8a327c431cd40aed6c3edd918b /src/browser.h | |
parent | Fix various warnings (diff) | |
download | smolbote-9d004e3d18312bea2259bc30064999f9f2db14a6.tar.xz |
Plugin commands no longer require --command
Diffstat (limited to 'src/browser.h')
-rw-r--r-- | src/browser.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/browser.h b/src/browser.h index 7163c8f..821583a 100644 --- a/src/browser.h +++ b/src/browser.h @@ -38,6 +38,8 @@ public slots: public: void setConfiguration(std::shared_ptr<Configuration> &config); + void registerPlugin(const Plugin &plugin); + void setup(const QString &defaultProfile); std::shared_ptr<BookmarksWidget> bookmarks() @@ -51,17 +53,6 @@ public: return m_profiles.keys(); } - int command(const QString &command); - const QStringList commands() const - { - return m_commands.keys(); - } - - const QVector<Plugin> plugins() const - { - return m_plugins; - } - signals: void registerProfile(WebProfile *profile); @@ -78,7 +69,6 @@ private: QMap<QString, WebProfile*> m_profiles; QVector<MainWindow *> m_windows; QVector<Plugin> m_plugins; - QHash<QString, std::function<int()>> m_commands; }; #endif // SMOLBOTE_BROWSER_H |