# kdecore Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# khttpproxysocketdevice.h

    00001 /*  -*- C++ -*-
    00002  *  Copyright (C) 2003 Thiago Macieira <thiago.macieira@kdemail.net>
    00003  *
    00004  *
    00005  *  Permission is hereby granted, free of charge, to any person obtaining
    00006  *  a copy of this software and associated documentation files (the
    00007  *  "Software"), to deal in the Software without restriction, including
    00008  *  without limitation the rights to use, copy, modify, merge, publish,
    00009  *  distribute, sublicense, and/or sell copies of the Software, and to
    00010  *  permit persons to whom the Software is furnished to do so, subject to
    00011  *  the following conditions:
    00012  *
    00013  *  The above copyright notice and this permission notice shall be included
    00014  *  in all copies or substantial portions of the Software.
    00015  *
    00016  *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    00017  *  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    00018  *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
    00019  *  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
    00020  *  LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
    00021  *  OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
    00022  *  WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    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 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 }               // namespace KNetwork
    00121
    00122 #endif

This file is part of the documentation for kdecore Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:18:04 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003