diff options
-rw-r--r-- | src/networkaccessmanager.cpp | 17 | ||||
-rw-r--r-- | src/networkaccessmanager.h | 14 |
2 files changed, 27 insertions, 4 deletions
diff --git a/src/networkaccessmanager.cpp b/src/networkaccessmanager.cpp index 6f0e2a3e..3fe42cbb 100644 --- a/src/networkaccessmanager.cpp +++ b/src/networkaccessmanager.cpp @@ -40,6 +40,7 @@ // Qt Includes #include <QtCore/QPointer> +#include <QtCore/QIODevice> #include <QtGui/QDialog> #include <QtGui/QStyle> @@ -48,11 +49,12 @@ #include <QtNetwork/QAuthenticator> #include <QtNetwork/QNetworkProxy> #include <QtNetwork/QNetworkReply> +#include <QtNetwork/QNetworkRequest> #include <QtNetwork/QSslError> NetworkAccessManager::NetworkAccessManager(QObject *parent) - : QNetworkAccessManager(parent) + : AccessManager(parent) { connect(this, SIGNAL(authenticationRequired(QNetworkReply*, QAuthenticator*)), SLOT(authenticationRequired(QNetworkReply*, QAuthenticator*))); @@ -73,6 +75,19 @@ NetworkAccessManager::NetworkAccessManager(QObject *parent) } +NetworkAccessManager::~NetworkAccessManager() +{ +// FIXME: implement me!! +} + + +QNetworkReply *NetworkAccessManager::createRequest(Operation op, const QNetworkRequest &req, QIODevice *outgoingData) +{ +// FIXME: implement me!! + return put(req,outgoingData); +} + + void NetworkAccessManager::loadSettings() { QNetworkProxy proxy; diff --git a/src/networkaccessmanager.h b/src/networkaccessmanager.h index 7da2f54f..a61a3483 100644 --- a/src/networkaccessmanager.h +++ b/src/networkaccessmanager.h @@ -22,20 +22,28 @@ #ifndef NETWORKACCESSMANAGER_H #define NETWORKACCESSMANAGER_H -// Qt Includes -#include <QtNetwork/QNetworkAccessManager> +// KDE Includes +#include <KIO/AccessManager> +class QNetworkRequest; +class QIODevice; -class NetworkAccessManager : public QNetworkAccessManager +using namespace KIO; + +class NetworkAccessManager : public AccessManager { Q_OBJECT public: NetworkAccessManager(QObject *parent = 0); + ~NetworkAccessManager(); public slots: void loadSettings(); +protected: + QNetworkReply *createRequest(Operation op, const QNetworkRequest &req, QIODevice *outgoingData = 0); + private slots: void authenticationRequired(QNetworkReply *reply, QAuthenticator *auth); void proxyAuthenticationRequired(const QNetworkProxy &proxy, QAuthenticator *auth); |