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

kio

http_slave_defaults.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002    Copyright (C) 2001 Waldo Bastian <bastian@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License version 2 as published by the Free Software Foundation.
00007 
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012 
00013    You should have received a copy of the GNU Library General Public License
00014    along with this library; see the file COPYING.LIB.  If not, write to
00015    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016    Boston, MA 02110-1301, USA.
00017 */
00018 
00019 #ifndef _KIO_HTTP_SLAVE_DEFAULTS_H
00020 #define _KIO_HTTP_SLAVE_DEFAULTS_H
00021 
00022 // CONNECTION
00023 #define DEFAULT_KEEP_ALIVE_TIMEOUT      60              // 60 seconds
00024 
00025 // CACHE SETTINGS
00026 #define DEFAULT_MAX_CACHE_SIZE          5120            // 5 MB
00027 #define DEFAULT_MAX_CACHE_AGE           60*60*24*14     // 14 DAYS
00028 #define DEFAULT_CACHE_EXPIRE            3*60            // 3 MINS
00029 #define DEFAULT_CLEAN_CACHE_INTERVAL    30*60           // 30 MINS
00030 #define DEFAULT_CACHE_CONTROL           KIO::CC_Refresh // Verify with remote
00031 #define CACHE_REVISION                  "7\n"           // Cache version
00032 
00033 // DEFAULT USER AGENT KEY - ENABLES OS NAME
00034 #define DEFAULT_USER_AGENT_KEYS         "o"             // Show OS
00035 
00036 // MAXIMUM AMOUNT OF DATA THAT CAN BE SAFELY SENT OVER IPC
00037 #define MAX_IPC_SIZE                    1024*8
00038 
00039 // AMOUNT OF DATA TO OBTAIN FROM THE SERVER BY DEFAULT
00040 #define DEFAULT_BUF_SIZE                1024*4
00041 
00042 // SOME DEFAULT HEADER VALUES
00043 #define DEFAULT_LANGUAGE_HEADER         "en"
00044 #define DEFAULT_MIME_TYPE               "text/html"
00045 #define DEFAULT_PARTIAL_CHARSET_HEADER   ", utf-8;q=0.5, *;q=0.5"
00046 
00047 #define DEFAULT_ACCEPT_HEADER           "text/html, image/jpeg, image/png, text/*, image/*, */*"
00048 
00049 #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