mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-25 01:14:07 +00:00
21 lines
439 B
C
21 lines
439 B
C
|
#ifndef RESOURCESCHEMEHANDLER_H
|
||
|
#define RESOURCESCHEMEHANDLER_H
|
||
|
|
||
|
#include"article_netmgr.hh"
|
||
|
|
||
|
class ResourceSchemeHandler : public QWebEngineUrlSchemeHandler
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
ResourceSchemeHandler(ArticleNetworkAccessManager& articleNetMgr);
|
||
|
void requestStarted(QWebEngineUrlRequestJob *requestJob);
|
||
|
|
||
|
protected:
|
||
|
|
||
|
private:
|
||
|
ArticleNetworkAccessManager& mManager;
|
||
|
QMimeDatabase db;
|
||
|
};
|
||
|
|
||
|
#endif // RESOURCESCHEMEHANDLER_H
|