• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kio

kprotocolmanager.h

Go to the documentation of this file.
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 <qstringlist.h>
00024 
00025 #include <kapplication.h>
00026 #include <kio/global.h>
00027 
00029 #define DEFAULT_USERAGENT_STRING ""
00030 
00031 class KConfig;
00032 
00054 class KIO_EXPORT KProtocolManager
00055 {
00056 public:
00057 
00058 
00059 /*=========================== USER-AGENT SETTINGS ===========================*/
00060 
00061 
00067   static QString defaultUserAgent();
00068 
00080   static QString defaultUserAgent(const QString &keys);
00081 
00093   static QString userAgentForHost( const QString &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 QString noProxyFor();
00217 
00226   static QString noProxyForRaw();
00227 
00239   static QString proxyFor( const QString& protocol );
00240 
00257   static QString proxyForURL( const KURL& url );
00258 
00264   static void badProxy( const QString & proxy );
00265 
00270   static QString 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 QString cacheDir();
00309 
00314   static KIO::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 QString slaveProtocol(const KURL &url, QString &proxy);
00380 
00385   static KConfig *config();
00386 private:
00387   static KConfig *http_config();
00388 };
00389 #endif

kio

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

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal