summaryrefslogtreecommitdiff
path: root/imagenetworkaccessmanager.h
blob: 9dfb58680d6d651d4681e324cfd91100c1962d60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef IMAGENETWORKACCESSMANAGER_H
#define IMAGENETWORKACCESSMANAGER_H

#include <QtNetwork/QNetworkAccessManager>
#include <QtDeclarative/QDeclarativeNetworkAccessManagerFactory>

class ImageNetworkAccessManager : public QNetworkAccessManager
{
	Q_OBJECT
public:
	explicit ImageNetworkAccessManager(QObject *parent = 0);

protected:
	QNetworkReply * createRequest(Operation op, const QNetworkRequest &request, QIODevice *outgoingData);
};

class ImageNetworkAccessManagerFactory : public QDeclarativeNetworkAccessManagerFactory
{
public:
	QNetworkAccessManager * create(QObject *parent);
};

#endif // IMAGENETWORKACCESSMANAGER_H