KDECore
k3httpproxysocketdevice.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef KHTTPPROXYSOCKETDEVICE_H
00026 #define KHTTPPROXYSOCKETDEVICE_H
00027
00028 #include "k3socketdevice.h"
00029
00030 namespace KNetwork {
00031
00032 class KHttpProxySocketDevicePrivate;
00033
00044 class KDECORE_EXPORT KHttpProxySocketDevice: public KSocketDevice
00045 {
00046 public:
00050 KHttpProxySocketDevice(const KSocketBase* = 0L);
00051
00055 explicit KHttpProxySocketDevice(const KResolverEntry& proxy);
00056
00060 virtual ~KHttpProxySocketDevice();
00061
00065 virtual int capabilities() const;
00066
00070 const KResolverEntry& proxyServer() const;
00071
00075 void setProxyServer(const KResolverEntry& proxy);
00076
00080 virtual void close();
00081
00085 virtual bool connect(const KResolverEntry& address);
00086
00091 virtual bool connect(const QString& name, const QString& service);
00092
00096 virtual KSocketAddress peerAddress() const;
00097
00102 virtual KSocketAddress externalAddress() const;
00103
00104 private:
00109 bool parseServerReply();
00110 KHttpProxySocketDevicePrivate* const d;
00111
00112 public:
00118 static KResolverEntry defaultProxy;
00119 };
00120
00121 }
00122
00123 #endif