khttpproxysocketdevice.h00001
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 "ksocketdevice.h"
00029
00030 namespace KNetwork {
00031
00032 class KHttpProxySocketDevicePrivate;
00033
00043 class KDECORE_EXPORT KHttpProxySocketDevice: public KSocketDevice
00044 {
00045 public:
00049 KHttpProxySocketDevice(const KSocketBase* = 0L);
00050
00054 KHttpProxySocketDevice(const KResolverEntry& proxy);
00055
00059 virtual ~KHttpProxySocketDevice();
00060
00064 virtual int capabilities() const;
00065
00069 const KResolverEntry& proxyServer() const;
00070
00074 void setProxyServer(const KResolverEntry& proxy);
00075
00079 virtual void close();
00080
00084 virtual bool connect(const KResolverEntry& address);
00085
00090 virtual bool connect(const QString& name, const QString& service);
00091
00095 virtual KSocketAddress peerAddress() const;
00096
00101 virtual KSocketAddress externalAddress() const;
00102
00103 private:
00108 bool parseServerReply();
00109 KHttpProxySocketDevicePrivate *d;
00110
00111 public:
00117 static KResolverEntry defaultProxy;
00118 };
00119
00120 }
00121
00122 #endif
|