• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/tdeio
 

tdeio/tdeio

  • tdeio
  • tdeio
tdeprotocolmanager.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 1999 Torben Weis <weis@kde.org>
3  Copyright (C) 2000- Waldo Bastain <bastain@kde.org>
4  Copyright (C) 2000- Dawit Alemayehu <adawit@kde.org>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License version 2 as published by the Free Software Foundation.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 #ifndef __kprotocolmanager_h__
21 #define __kprotocolmanager_h__
22 
23 #include <tqstringlist.h>
24 
25 #include <tdeapplication.h>
26 #include <tdeio/global.h>
27 
29 #define DEFAULT_USERAGENT_STRING ""
30 
31 class TDEConfig;
32 
54 class TDEIO_EXPORT KProtocolManager
55 {
56 public:
57 
58 
59 /*=========================== USER-AGENT SETTINGS ===========================*/
60 
61 
67  static TQString defaultUserAgent();
68 
80  static TQString defaultUserAgent(const TQString &keys);
81 
93  static TQString userAgentForHost( const TQString &hostname );
94 
95 
96 /*=========================== TIMEOUT CONFIG ================================*/
97 
98 
105  static int readTimeout();
106 
113  static int connectTimeout();
114 
121  static int proxyConnectTimeout();
122 
129  static int responseTimeout();
130 
131 
132 /*=============================== PROXY CONFIG ==============================*/
133 
134 
140  static bool useProxy();
141 
156  static bool useReverseProxy();
157 
166  enum ProxyType
167  {
168  NoProxy,
169  ManualProxy,
170  PACProxy,
171  WPADProxy,
172  EnvVarProxy
173  };
174 
180  static ProxyType proxyType();
181 
194  enum ProxyAuthMode
195  {
196  Prompt,
197  Automatic
198  };
199 
205  static ProxyAuthMode proxyAuthMode();
206 
216  static TQString noProxyFor();
217 
226  static TQString noProxyForRaw();
227 
239  static TQString proxyFor( const TQString& protocol );
240 
257  static TQString proxyForURL( const KURL& url );
258 
264  static void badProxy( const TQString & proxy );
265 
270  static TQString proxyConfigScript();
271 
272 
273 /*========================== CACHE CONFIG ===================================*/
274 
275 
282  static bool useCache();
283 
290  static int maxCacheAge();
291 
302  static int maxCacheSize(); // Maximum cache size in Kb.
303 
308  static TQString cacheDir();
309 
314  static TDEIO::CacheControl cacheControl();
315 
316 
317 /*============================ DOWNLOAD CONFIG ==============================*/
318 
324  static bool autoResume();
325 
331  static bool markPartial();
332 
343  static int minimumKeepSize();
344 
345 
346  /*============================ NETWORK CONNECTIONS ==========================*/
352  static bool persistentProxyConnection();
353 
358  static bool persistentConnections();
359 
360 /*=============================== OTHERS ====================================*/
361 
362 
367  static void reparseConfiguration();
368 
379  static TQString slaveProtocol(const KURL &url, TQString &proxy);
380 
385  static TDEConfig *config();
386 private:
387  static TDEConfig *http_config();
388 };
389 #endif
KProtocolManager::ProxyAuthMode
ProxyAuthMode
Proxy authorization modes.
Definition: tdeprotocolmanager.h:194
KProtocolManager::ProxyType
ProxyType
Types of proxy configuration.
Definition: tdeprotocolmanager.h:166
TDEIO::CacheControl
CacheControl
Specifies how to use the cache.
Definition: global.h:387
KProtocolManager
Provides information about I/O (Internet, etc.) settings chosen/set by the end user.
Definition: tdeprotocolmanager.h:54

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • 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
Generated for tdeio/tdeio by doxygen 1.8.8
This website is maintained by Timothy Pearson.