Skip to content
Skip to link menu
Trinity API Reference
Trinity API Reference
tdecore
tdecore
tdecore
network
khttpproxysocketdevice.h
1
/*
2
* Copyright (C) 2003 Thiago Macieira <thiago.macieira@kdemail.net>
3
*
4
*
5
* Permission is hereby granted, free of charge, to any person obtaining
6
* a copy of this software and associated documentation files (the
7
* "Software"), to deal in the Software without restriction, including
8
* without limitation the rights to use, copy, modify, merge, publish,
9
* distribute, sublicense, and/or sell copies of the Software, and to
10
* permit persons to whom the Software is furnished to do so, subject to
11
* the following conditions:
12
*
13
* The above copyright notice and this permission notice shall be included
14
* in all copies or substantial portions of the Software.
15
*
16
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
*/
24
25
#ifndef KHTTPPROXYSOCKETDEVICE_H
26
#define KHTTPPROXYSOCKETDEVICE_H
27
28
#include "tdesocketdevice.h"
29
30
namespace
KNetwork {
31
32
class
KHttpProxySocketDevicePrivate;
33
43
class
TDECORE_EXPORT
KHttpProxySocketDevice
:
public
TDESocketDevice
44
{
45
public
:
49
KHttpProxySocketDevice
(
const
TDESocketBase
* = 0L);
50
54
KHttpProxySocketDevice
(
const
KResolverEntry
& proxy);
55
59
virtual
~
KHttpProxySocketDevice
();
60
64
virtual
int
capabilities()
const
;
65
69
const
KResolverEntry
& proxyServer()
const
;
70
74
void
setProxyServer(
const
KResolverEntry
& proxy);
75
79
virtual
void
close();
80
84
virtual
bool
connect(
const
KResolverEntry
& address);
85
90
virtual
bool
connect(
const
TQString& name,
const
TQString& service);
91
95
virtual
TDESocketAddress
peerAddress()
const
;
96
101
virtual
TDESocketAddress
externalAddress()
const
;
102
103
private
:
108
bool
parseServerReply();
109
KHttpProxySocketDevicePrivate *d;
110
111
public
:
117
static
KResolverEntry
defaultProxy
;
118
};
119
120
}
// namespace KNetwork
121
122
#endif
tdecore
Skip menu "tdecore"
Main Page
Modules
Namespace List
Class Hierarchy
Alphabetical List
Class List
File List
Namespace Members
Class Members
Related Pages
tdecore
Skip menu "tdecore"
arts
dcop
dnssd
interfaces
kspeech
interface
library
tdetexteditor
kate
kded
kdoctools
kimgio
kjs
libtdemid
libtdescreensaver
tdecore
tdeabc
tdecmshell
tdecore
tdefx
tdehtml
tdeinit
tdeio
bookmarks
httpfilter
kpasswdserver
kssl
tdeioslave
http
tdefile
tdeio
tdeioexec
tdemdi
tdemdi
tdenewstuff
tdeparts
tdeprint
tderandr
tderesources
tdespell2
tdesu
tdeui
tdeunittest
tdeutils
tdewallet