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

tdeio/tdeio

tdeprotocolmanager.h
00001 /* This file is part of the KDE libraries
00002    Copyright (C) 1999 Torben Weis <weis@kde.org>
00003    Copyright (C) 2000- Waldo Bastain <bastain@kde.org>
00004    Copyright (C) 2000- Dawit Alemayehu <adawit@kde.org>
00005 
00006    This library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Library General Public
00008    License version 2 as published by the Free Software Foundation.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018    Boston, MA 02110-1301, USA.
00019 */
00020 #ifndef __kprotocolmanager_h__
00021 #define __kprotocolmanager_h__
00022 
00023 #include <tqstringlist.h>
00024 
00025 #include <tdeapplication.h>
00026 #include <tdeio/global.h>
00027 
00029 #define DEFAULT_USERAGENT_STRING ""
00030 
00031 class TDEConfig;
00032 
00054 class TDEIO_EXPORT KProtocolManager
00055 {
00056 public:
00057 
00058 
00059 /*=========================== USER-AGENT SETTINGS ===========================*/
00060 
00061 
00067   static TQString defaultUserAgent();
00068 
00080   static TQString defaultUserAgent(const TQString &keys);
00081 
00093   static TQString userAgentForHost( const TQString &hostname );
00094 
00095 
00096 /*=========================== TIMEOUT CONFIG ================================*/
00097 
00098 
00105   static int readTimeout();
00106 
00113   static int connectTimeout();
00114 
00121   static int proxyConnectTimeout();
00122 
00129   static int responseTimeout();
00130 
00131 
00132 /*=============================== PROXY CONFIG ==============================*/
00133 
00134 
00140   static bool useProxy();
00141 
00156   static bool useReverseProxy();
00157 
00166   enum ProxyType
00167   {
00168       NoProxy,
00169       ManualProxy,
00170       PACProxy,
00171       WPADProxy,
00172       EnvVarProxy
00173   };
00174 
00180   static ProxyType proxyType();
00181 
00194   enum ProxyAuthMode
00195   {
00196       Prompt,
00197       Automatic
00198   };
00199 
00205   static ProxyAuthMode proxyAuthMode();
00206 
00216   static TQString noProxyFor();
00217 
00226   static TQString noProxyForRaw();
00227 
00239   static TQString proxyFor( const TQString& protocol );
00240 
00257   static TQString proxyForURL( const KURL& url );
00258 
00264   static void badProxy( const TQString & proxy );
00265 
00270   static TQString proxyConfigScript();
00271 
00272 
00273 /*========================== CACHE CONFIG ===================================*/
00274 
00275 
00282   static bool useCache();
00283 
00290   static int maxCacheAge();
00291 
00302   static int maxCacheSize(); // Maximum cache size in Kb.
00303 
00308   static TQString cacheDir();
00309 
00314   static TDEIO::CacheControl cacheControl();
00315 
00316 
00317 /*============================ DOWNLOAD CONFIG ==============================*/
00318 
00324   static bool autoResume();
00325 
00331   static bool markPartial();
00332 
00343   static int minimumKeepSize();
00344 
00345 
00346   /*============================ NETWORK CONNECTIONS ==========================*/
00352   static bool persistentProxyConnection();
00353 
00358   static bool persistentConnections();
00359 
00360 /*=============================== OTHERS ====================================*/
00361 
00362 
00367   static void reparseConfiguration();
00368 
00379   static TQString slaveProtocol(const KURL &url, TQString &proxy);
00380 
00385   static TDEConfig *config();
00386 private:
00387   static TDEConfig *http_config();
00388 };
00389 #endif

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
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/tdeio by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.