tdeprotocolmanager.cpp
77 .arg(TDE_VERSION_MAJOR).arg(TDE_VERSION_MINOR).arg(X).arg(TDE_VERSION_MAJOR).arg(TDE_VERSION_MINOR).arg(TDE_VERSION_RELEASE)
271 proxy = TQString(TQString::fromLocal8Bit(getenv(proxyFor(url.protocol()).local8Bit()))).stripWhiteSpace();
421 TQString sendUserAgent = TDEIO::SlaveConfig::self()->configData("http", hostname.lower(), "SendUserAgent").lower();
425 TQString useragent = TDEIO::SlaveConfig::self()->configData("http", hostname.lower(), "UserAgent");
437 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:239
static ProxyAuthMode proxyAuthMode()
Returns the way proxy authorization should be handled.
Definition: tdeprotocolmanager.cpp:166
TDEIO_EXPORT TDEIO::CacheControl parseCacheControl(const TQString &cacheControl)
Parses the string representation of the cache control option.
Definition: global.cpp:2002
static void reparseConfiguration()
Force a reload of the general config file of io-slaves ( tdeioslaverc).
Definition: tdeprotocolmanager.cpp:79
static int readTimeout()
Returns the preferred timeout value for reading from remote connections in seconds.
Definition: tdeprotocolmanager.cpp:113
static TDEIO::CacheControl cacheControl()
Returns the Cache control directive to be used.
Definition: tdeprotocolmanager.cpp:181
static int maxCacheAge()
Returns the maximum age in seconds cached files should be kept before they are deleted as necessary.
Definition: tdeprotocolmanager.cpp:196
static TQString noProxyFor()
Returns a comma-separated list of hostnames or partial host-names that should bypass any proxy settin...
Definition: tdeprotocolmanager.cpp:216
static TQString defaultUserAgent()
Returns the default user-agent string.
Definition: tdeprotocolmanager.cpp:435
static TQString proxyConfigScript()
Returns the URL of the script for automatic proxy configuration.
Definition: tdeprotocolmanager.cpp:545
static bool autoResume()
Returns true if partial downloads should be automatically resumed.
Definition: tdeprotocolmanager.cpp:524
static bool persistentProxyConnection()
Returns true if proxy connections should be persistent.
Definition: tdeprotocolmanager.cpp:538
static bool useCache()
Returns true/false to indicate whether a cache should be used.
Definition: tdeprotocolmanager.cpp:175
static int connectTimeout()
Returns the preferred timeout value for remote connections in seconds.
Definition: tdeprotocolmanager.cpp:121
static ProxyType proxyType()
Returns the type of proxy configuration that is used.
Definition: tdeprotocolmanager.cpp:159
static bool markPartial()
Returns true if partial downloads should be marked with a ".part" extension.
Definition: tdeprotocolmanager.cpp:509
static bool useReverseProxy()
Returns true if the proxy settings should apply to the list returned by noProxyFor.
Definition: tdeprotocolmanager.cpp:152
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:137
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:330
static int proxyConnectTimeout()
Returns the preferred timeout value for proxy connections in seconds.
Definition: tdeprotocolmanager.cpp:129
static void badProxy(const TQString &proxy)
Marks this proxy as bad (down).
Definition: tdeprotocolmanager.cpp:284
static bool persistentConnections()
Returns true if connections should be persistent.
Definition: tdeprotocolmanager.cpp:531
static TQString userAgentForHost(const TQString &hostname)
Returns the userAgent string configured for the specified host.
Definition: tdeprotocolmanager.cpp:419
static TQString noProxyForRaw()
Same as above except the environment variable name is returned instead of the variable value when pro...
Definition: tdeprotocolmanager.cpp:208
static TQString cacheDir()
The directory which contains the cache files.
Definition: tdeprotocolmanager.cpp:190
static TQString proxyFor(const TQString &protocol)
Returns the proxy server address for a given protocol.
Definition: tdeprotocolmanager.cpp:225
static int maxCacheSize()
Returns the maximum size that can be used for caching.
Definition: tdeprotocolmanager.cpp:202
static bool useProxy()
Returns true if the user specified a proxy server to make connections.
Definition: tdeprotocolmanager.cpp:147
static int minimumKeepSize()
Returns the minimum file size for keeping aborted downloads.
Definition: tdeprotocolmanager.cpp:516
Trinity API Reference