Obsolete Members for KIO

The following members of class KIO are deprecated. They are provided to keep old source code working. We strongly advise against using them in new code.

Types

(deprecated in 6.6) enum CacheControl { CC_CacheOnly, CC_Cache, CC_Verify, CC_Refresh, CC_Reload }

Functions

(deprecated in 6.6) QString getCacheControlString(KIO::CacheControl cacheControl)
(deprecated in 6.9) KIO::SimpleJob *http_update_cache(const QUrl &url, bool no_cache, const QDateTime &expireDate)
(deprecated in 6.6) KIO::CacheControl parseCacheControl(const QString &cacheControl)

Type Documentation

[deprecated in 6.6] enum KIO::CacheControl

This enum is deprecated since 6.6. We strongly advise against using it in new code.

Specifies how to use the cache.

Not used

ConstantValueDescription
KIO::CC_CacheOnly0Fail request if not in cache
KIO::CC_Cache1Use cached entry if available
KIO::CC_Verify2Validate cached entry with remote site if expired
KIO::CC_Refresh3Always validate cached entry with remote site
KIO::CC_Reload4Always fetch from remote site

See also parseCacheControl() and getCacheControlString().

Function Documentation

[deprecated in 6.6] QString KIO::getCacheControlString(KIO::CacheControl cacheControl)

This function is deprecated since 6.6. We strongly advise against using it in new code.

Returns a string representation of the given cache control method.

cacheControl the cache control method

Returns the string representation

Not used.

See also parseCacheControl().

[deprecated in 6.9] KIO::SimpleJob *http_update_cache(const QUrl &url, bool no_cache, const QDateTime &expireDate)

This function is deprecated since 6.9. We strongly advise against using it in new code.

HTTP cache update

Not implemented.

url Url to update, protocol must be "http".

no_cache If true, cache entry for url is deleted.

expireDate Local machine time indicating when the entry is supposed to expire.

Returns the job handling the operation.

[deprecated in 6.6] KIO::CacheControl KIO::parseCacheControl(const QString &cacheControl)

This function is deprecated since 6.6. We strongly advise against using it in new code.

Parses the string representation of the cache control option.

cacheControl the string representation

Returns the cache control value.

Not used

See also getCacheControlString().