tdeprotocolmanager.cpp
76 .arg(TDE_VERSION_MAJOR).arg(TDE_VERSION_MINOR).arg(X).arg(TDE_VERSION_MAJOR).arg(TDE_VERSION_MINOR).arg(TDE_VERSION_RELEASE)
270 proxy = TQString(TQString::fromLocal8Bit(getenv(proxyFor(url.protocol()).local8Bit()))).stripWhiteSpace();
420 TQString sendUserAgent = TDEIO::SlaveConfig::self()->configData("http", hostname.lower(), "SendUserAgent").lower();
424 TQString useragent = TDEIO::SlaveConfig::self()->configData("http", hostname.lower(), "UserAgent");
436 TQString modifiers = TDEIO::SlaveConfig::self()->configData("http", TQString::null, "UserAgentKeys");
static TQString proxyForURL(const KURL &url)
Returns the proxy server address for a given URL.
Definition: tdeprotocolmanager.cpp:238
static ProxyAuthMode proxyAuthMode()
Returns the way proxy authorization should be handled.
Definition: tdeprotocolmanager.cpp:165
TDEIO_EXPORT TDEIO::CacheControl parseCacheControl(const TQString &cacheControl)
Parses the string representation of the cache control option.
Definition: global.cpp:2006
static void reparseConfiguration()
Force a reload of the general config file of io-slaves ( tdeioslaverc).
Definition: tdeprotocolmanager.cpp:78
static int readTimeout()
Returns the preferred timeout value for reading from remote connections in seconds.
Definition: tdeprotocolmanager.cpp:112
static TDEIO::CacheControl cacheControl()
Returns the Cache control directive to be used.
Definition: tdeprotocolmanager.cpp:180
static int maxCacheAge()
Returns the maximum age in seconds cached files should be kept before they are deleted as necessary.
Definition: tdeprotocolmanager.cpp:195
static TQString noProxyFor()
Returns a comma-separated list of hostnames or partial host-names that should bypass any proxy settin...
Definition: tdeprotocolmanager.cpp:215
static TQString defaultUserAgent()
Returns the default user-agent string.
Definition: tdeprotocolmanager.cpp:434
static TQString proxyConfigScript()
Returns the URL of the script for automatic proxy configuration.
Definition: tdeprotocolmanager.cpp:544
static bool autoResume()
Returns true if partial downloads should be automatically resumed.
Definition: tdeprotocolmanager.cpp:523
static bool persistentProxyConnection()
Returns true if proxy connections should be persistent.
Definition: tdeprotocolmanager.cpp:537
static bool useCache()
Returns true/false to indicate whether a cache should be used.
Definition: tdeprotocolmanager.cpp:174
static int connectTimeout()
Returns the preferred timeout value for remote connections in seconds.
Definition: tdeprotocolmanager.cpp:120
static ProxyType proxyType()
Returns the type of proxy configuration that is used.
Definition: tdeprotocolmanager.cpp:158
static bool markPartial()
Returns true if partial downloads should be marked with a ".part" extension.
Definition: tdeprotocolmanager.cpp:508
static bool useReverseProxy()
Returns true if the proxy settings should apply to the list returned by noProxyFor.
Definition: tdeprotocolmanager.cpp:151
MetaData configData(const TQString &protocol, const TQString &host)
Query slave configuration for slaves of type protocol when dealing with host.
Definition: slaveconfig.cpp:192
static int responseTimeout()
Returns the preferred response timeout value for remote connecting in seconds.
Definition: tdeprotocolmanager.cpp:136
static TQString slaveProtocol(const KURL &url, TQString &proxy)
Return the protocol to use in order to handle the given url It's usually the same,...
Definition: tdeprotocolmanager.cpp:329
static int proxyConnectTimeout()
Returns the preferred timeout value for proxy connections in seconds.
Definition: tdeprotocolmanager.cpp:128
static void badProxy(const TQString &proxy)
Marks this proxy as bad (down).
Definition: tdeprotocolmanager.cpp:283
static bool persistentConnections()
Returns true if connections should be persistent.
Definition: tdeprotocolmanager.cpp:530
static TQString userAgentForHost(const TQString &hostname)
Returns the userAgent string configured for the specified host.
Definition: tdeprotocolmanager.cpp:418
static TQString noProxyForRaw()
Same as above except the environment variable name is returned instead of the variable value when pro...
Definition: tdeprotocolmanager.cpp:207
static TQString cacheDir()
The directory which contains the cache files.
Definition: tdeprotocolmanager.cpp:189
static TQString proxyFor(const TQString &protocol)
Returns the proxy server address for a given protocol.
Definition: tdeprotocolmanager.cpp:224
static int maxCacheSize()
Returns the maximum size that can be used for caching.
Definition: tdeprotocolmanager.cpp:201
static bool useProxy()
Returns true if the user specified a proxy server to make connections.
Definition: tdeprotocolmanager.cpp:146
static int minimumKeepSize()
Returns the minimum file size for keeping aborted downloads.
Definition: tdeprotocolmanager.cpp:515