Changeset View
Changeset View
Standalone View
Standalone View
host/main.cpp
Show All 27 Lines | |||||
28 | #include "connection.h" | 28 | #include "connection.h" | ||
29 | #include "abstractbrowserplugin.h" | 29 | #include "abstractbrowserplugin.h" | ||
30 | 30 | | |||
31 | #include "settings.h" | 31 | #include "settings.h" | ||
32 | #include "windowmapper.h" | 32 | #include "windowmapper.h" | ||
33 | #include "incognitoplugin.h" | 33 | #include "incognitoplugin.h" | ||
34 | #include "kdeconnectplugin.h" | 34 | #include "kdeconnectplugin.h" | ||
35 | #include "downloadplugin.h" | 35 | #include "downloadplugin.h" | ||
36 | #include "bookmarksrunnerplugin.h" | ||||
36 | #include "tabsrunnerplugin.h" | 37 | #include "tabsrunnerplugin.h" | ||
37 | #include "mprisplugin.h" | 38 | #include "mprisplugin.h" | ||
38 | #include "slcplugin.h" | 39 | #include "slcplugin.h" | ||
39 | 40 | | |||
40 | void msgHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg) | 41 | void msgHandler(QtMsgType type, const QMessageLogContext &context, const QString &msg) | ||
41 | { | 42 | { | ||
42 | Q_UNUSED(type); | 43 | Q_UNUSED(type); | ||
43 | Q_UNUSED(context); | 44 | Q_UNUSED(context); | ||
Show All 32 Lines | 62 | { | |||
76 | // "DEFAULT_EXTENSION_SETTINGS" in constants.js or else it won't | 77 | // "DEFAULT_EXTENSION_SETTINGS" in constants.js or else it won't | ||
77 | // even bother loading your shiny new plugin! | 78 | // even bother loading your shiny new plugin! | ||
78 | QList<AbstractBrowserPlugin*> m_plugins; | 79 | QList<AbstractBrowserPlugin*> m_plugins; | ||
79 | m_plugins << &Settings::self(); | 80 | m_plugins << &Settings::self(); | ||
80 | m_plugins << &WindowMapper::self(); | 81 | m_plugins << &WindowMapper::self(); | ||
81 | m_plugins << new IncognitoPlugin(&a); | 82 | m_plugins << new IncognitoPlugin(&a); | ||
82 | m_plugins << new KDEConnectPlugin(&a); | 83 | m_plugins << new KDEConnectPlugin(&a); | ||
83 | m_plugins << new DownloadPlugin(&a); | 84 | m_plugins << new DownloadPlugin(&a); | ||
85 | m_plugins << new BookmarksRunnerPlugin(&a); | ||||
84 | m_plugins << new TabsRunnerPlugin(&a); | 86 | m_plugins << new TabsRunnerPlugin(&a); | ||
85 | m_plugins << new MPrisPlugin(&a); | 87 | m_plugins << new MPrisPlugin(&a); | ||
86 | m_plugins << new SlcPlugin(&a); | 88 | m_plugins << new SlcPlugin(&a); | ||
87 | 89 | | |||
88 | // TODO make this prettier, also prevent unloading them at any cost | 90 | // TODO make this prettier, also prevent unloading them at any cost | ||
89 | Settings::self().setLoaded(true); | 91 | Settings::self().setLoaded(true); | ||
90 | WindowMapper::self().setLoaded(true); | 92 | WindowMapper::self().setLoaded(true); | ||
91 | 93 | | |||
▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines |