khttpproxysocketdevice.h
/* -*- C++ -*-
* Copyright (C) 2003 Thiago Macieira <thiago.macieira@kdemail.net>
*
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#ifndef KHTTPPROXYSOCKETDEVICE_H
#define KHTTPPROXYSOCKETDEVICE_H
#include "ksocketdevice.h"
namespace KNetwork {
class KHttpProxySocketDevicePrivate;
class KDECORE_EXPORT KHttpProxySocketDevice: public KSocketDevice
{
public:
KHttpProxySocketDevice(const KSocketBase* = 0L);
KHttpProxySocketDevice(const KResolverEntry& proxy);
virtual ~KHttpProxySocketDevice();
virtual int capabilities() const;
const KResolverEntry& proxyServer() const;
void setProxyServer(const KResolverEntry& proxy);
virtual void close();
virtual bool connect(const KResolverEntry& address);
virtual bool connect(const QString& name, const QString& service);
virtual KSocketAddress peerAddress() const;
virtual KSocketAddress externalAddress() const;
private:
bool parseServerReply();
KHttpProxySocketDevicePrivate *d;
public:
static KResolverEntry defaultProxy;
};
} // namespace KNetwork
#endif
KNetwork::KResolverEntry
One resolution entry.
Definition: kresolver.h:66
KNetwork::KSocketAddress
A generic socket address.
Definition: ksocketaddress.h:423
KNetwork::KHttpProxySocketDevice::defaultProxy
static KResolverEntry defaultProxy
This is the default proxy server to be used.
Definition: khttpproxysocketdevice.h:117
KNetwork::KHttpProxySocketDevice
The low-level backend for HTTP proxying.
Definition: khttpproxysocketdevice.h:43
KNetwork::KSocketDevice
Low-level socket functionality.
Definition: ksocketdevice.h:50
KNetwork::KSocketBase
Basic socket functionality.
Definition: ksocketbase.h:97

KDE Home | KDE Accessibility Home | Description of Access Keys