Changeset View
Changeset View
Standalone View
Standalone View
host/tabsrunnerplugin.h
Show All 30 Lines | |||||
31 | class TabsRunnerPlugin : public AbstractBrowserPlugin, protected QDBusContext | 31 | class TabsRunnerPlugin : public AbstractBrowserPlugin, protected QDBusContext | ||
32 | { | 32 | { | ||
33 | Q_OBJECT | 33 | Q_OBJECT | ||
34 | 34 | | |||
35 | public: | 35 | public: | ||
36 | explicit TabsRunnerPlugin(QObject *parent); | 36 | explicit TabsRunnerPlugin(QObject *parent); | ||
37 | bool onLoad() override; | 37 | bool onLoad() override; | ||
38 | bool onUnload() override; | 38 | bool onUnload() override; | ||
39 | | ||||
40 | using AbstractBrowserPlugin::handleData; | ||||
39 | void handleData(const QString &event, const QJsonObject &data) override; | 41 | void handleData(const QString &event, const QJsonObject &data) override; | ||
40 | 42 | | |||
41 | // dbus-exported | 43 | // dbus-exported | ||
42 | QList<QHash<QString, QVariant>> GetTabs(); | 44 | QList<QHash<QString, QVariant>> GetTabs(); | ||
43 | void Activate(int tabId); | 45 | void Activate(int tabId); | ||
44 | void SetMuted(int tabId, bool muted); | 46 | void SetMuted(int tabId, bool muted); | ||
45 | 47 | | |||
46 | private: | 48 | private: | ||
47 | QDBusMessage m_tabsReplyMessage; | 49 | QDBusMessage m_tabsReplyMessage; | ||
48 | 50 | | |||
49 | }; | 51 | }; |