Sha256: 0429e5927c82f4f9161c6af52fccf0d27e7351a27df4a7603d7c9db5529cee41
Contents?: true
Size: 572 Bytes
Versions: 19
Compression:
Stored size: 572 Bytes
Contents
#include <QStringList> #include "RequestHandler.h" class BlacklistedRequestHandler : public RequestHandler { public: BlacklistedRequestHandler(RequestHandler *next, QObject *parent = 0); virtual QNetworkReply* handleRequest( NetworkAccessManager *, QNetworkAccessManager::Operation, QNetworkRequest &, QIODevice * ); void setUrlBlacklist(QStringList urlBlacklist); void blockUrl(const QString &); void reset(); private: RequestHandler *m_next; QStringList m_urlBlacklist; bool isBlacklisted(QUrl url); };
Version data entries
19 entries across 19 versions & 1 rubygems