Changeset View
Changeset View
Standalone View
Standalone View
host/downloadplugin.h
Show All 29 Lines | |||||
30 | 30 | | |||
31 | class DownloadPlugin : public AbstractBrowserPlugin | 31 | class DownloadPlugin : public AbstractBrowserPlugin | ||
32 | { | 32 | { | ||
33 | Q_OBJECT | 33 | Q_OBJECT | ||
34 | public: | 34 | public: | ||
35 | explicit DownloadPlugin(QObject *parent); | 35 | explicit DownloadPlugin(QObject *parent); | ||
36 | bool onLoad() override; | 36 | bool onLoad() override; | ||
37 | bool onUnload() override; | 37 | bool onUnload() override; | ||
38 | using AbstractBrowserPlugin::handleData; | ||||
38 | void handleData(const QString &event, const QJsonObject &data) override; | 39 | void handleData(const QString &event, const QJsonObject &data) override; | ||
39 | private: | 40 | private: | ||
40 | QHash<int, DownloadJob *> m_jobs; | 41 | QHash<int, DownloadJob *> m_jobs; | ||
41 | }; | 42 | }; |