goldendict-ng/src/resourceschemehandler.hh
2023-04-17 17:17:36 -04:00

21 lines
466 B
C++

#ifndef RESOURCESCHEMEHANDLER_H
#define RESOURCESCHEMEHANDLER_H
#include"article_netmgr.hh"
class ResourceSchemeHandler : public QWebEngineUrlSchemeHandler
{
Q_OBJECT
public:
ResourceSchemeHandler(ArticleNetworkAccessManager& articleNetMgr, QObject *parent = nullptr);
void requestStarted(QWebEngineUrlRequestJob *requestJob);
protected:
private:
ArticleNetworkAccessManager& mManager;
QMimeDatabase db;
};
#endif // RESOURCESCHEMEHANDLER_H