Changeset View
Changeset View
Standalone View
Standalone View
src/core/global.h
Show First 20 Lines • Show All 256 Lines • ▼ Show 20 Line(s) | 256 | enum CacheControl { | |||
---|---|---|---|---|---|
257 | CC_CacheOnly, ///< Fail request if not in cache | 257 | CC_CacheOnly, ///< Fail request if not in cache | ||
258 | CC_Cache, ///< Use cached entry if available | 258 | CC_Cache, ///< Use cached entry if available | ||
259 | CC_Verify, ///< Validate cached entry with remote site if expired | 259 | CC_Verify, ///< Validate cached entry with remote site if expired | ||
260 | CC_Refresh, ///< Always validate cached entry with remote site | 260 | CC_Refresh, ///< Always validate cached entry with remote site | ||
261 | CC_Reload ///< Always fetch from remote site. | 261 | CC_Reload ///< Always fetch from remote site. | ||
262 | }; | 262 | }; | ||
263 | 263 | | |||
264 | /** | 264 | /** | ||
265 | * Specifies privilege file operation status. | ||||
dfaure: @since 5.38 | |||||
266 | * @since 5.38 | ||||
267 | */ | ||||
I suggest naming it PrivilegedOperationStatus (Better avoid abbreviations, and "File" is kind of obvious in KIO.) dfaure: I suggest naming it PrivilegedOperationStatus
(Better avoid abbreviations, and "File" is kind… | |||||
268 | enum PrivilegeOperationStatus { | ||||
269 | OperationAllowed = 1, | ||||
270 | OperationCanceled, | ||||
Canceled and cancelled as both correct English (maybe one is UK and one is US, I don't know). In KIO we used Canceled everywhere, though. I would prefer if this stayed consistent with the rest of KIO.. dfaure: Canceled and cancelled as both correct English (maybe one is UK and one is US, I don't know). | |||||
271 | OperationNotAllowed | ||||
272 | }; | ||||
273 | | ||||
274 | /** | ||||
265 | * Parses the string representation of the cache control option. | 275 | * Parses the string representation of the cache control option. | ||
266 | * | 276 | * | ||
267 | * @param cacheControl the string representation | 277 | * @param cacheControl the string representation | ||
268 | * @return the cache control value | 278 | * @return the cache control value | ||
269 | * @see getCacheControlString() | 279 | * @see getCacheControlString() | ||
270 | */ | 280 | */ | ||
271 | KIOCORE_EXPORT KIO::CacheControl parseCacheControl(const QString &cacheControl); | 281 | KIOCORE_EXPORT KIO::CacheControl parseCacheControl(const QString &cacheControl); | ||
272 | 282 | | |||
▲ Show 20 Lines • Show All 60 Lines • Show Last 20 Lines |
@since 5.38