summaryrefslogtreecommitdiff
path: root/src/networkaccessmanager.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-08-08 22:56:27 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-08-08 22:56:27 +0200
commit600c2a546b9bb2a93e3dad0e73ad7b303b0ec2dc (patch)
tree8ece96133bab9154ba2a730283e0a3f17c1910ea /src/networkaccessmanager.h
parentMerge commit 'megabigbug/tabfontsize' (diff)
downloadrekonq-600c2a546b9bb2a93e3dad0e73ad7b303b0ec2dc.tar.xz
RekonqAccessManager (rekonq 0.2 version)
Diffstat (limited to 'src/networkaccessmanager.h')
-rw-r--r--src/networkaccessmanager.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/networkaccessmanager.h b/src/networkaccessmanager.h
index ed4577e4..1eea9a0d 100644
--- a/src/networkaccessmanager.h
+++ b/src/networkaccessmanager.h
@@ -27,14 +27,22 @@
#ifndef NETWORKACCESSMANAGER_H
#define NETWORKACCESSMANAGER_H
-// KDE Includes
-#include <QtNetwork/QNetworkAccessManager>
+#include <kdeversion.h>
+
+#if KDE_IS_VERSION(4, 2, 70)
+ #include <kio/accessmanager.h>
+ using namespace KIO;
+ typedef AccessManager RekonqAccessManager;
+#else
+ #include <QtNetwork/QNetworkAccessManager>
+ typedef QNetworkAccessManager RekonqAccessManager;
+#endif
// Forward Declarations
class QNetworkDiskCache;
-class NetworkAccessManager : public QNetworkAccessManager
+class NetworkAccessManager : public RekonqAccessManager
{
Q_OBJECT