Changeset View
Changeset View
Standalone View
Standalone View
src/core/kfileitem.h
Show First 20 Lines • Show All 268 Lines • ▼ Show 20 Line(s) | 108 | #endif | |||
---|---|---|---|---|---|
269 | /** | 269 | /** | ||
270 | * Checks whether the file or directory is writable. In some cases | 270 | * Checks whether the file or directory is writable. In some cases | ||
271 | * (remote files), we may return true even though it can't be written to. | 271 | * (remote files), we may return true even though it can't be written to. | ||
272 | * @return true if the file or directory can be written to - more precisely, | 272 | * @return true if the file or directory can be written to - more precisely, | ||
273 | * false if we know for sure it can't | 273 | * false if we know for sure it can't | ||
274 | */ | 274 | */ | ||
275 | bool isWritable() const; | 275 | bool isWritable() const; | ||
276 | 276 | | |||
277 | #ifndef Q_OS_WIN // Function uses low level xattr library for extracting extended attributes that is not available on Windows | ||||
278 | /** | ||||
279 | * Checks whether the file is hidden NTFS file. | ||||
280 | * @return true if the file is hidden. | ||||
281 | */ | ||||
282 | bool isHiddenNtfs() const; | ||||
broulik: If we were to go this route (adding it to `KFileItem` which I think we shouldn't), this should… | |||||
283 | #endif | ||||
284 | | ||||
277 | /** | 285 | /** | ||
278 | * Checks whether the file is hidden. | 286 | * Checks whether the file is hidden. | ||
279 | * @return true if the file is hidden. | 287 | * @return true if the file is hidden. | ||
280 | */ | 288 | */ | ||
281 | bool isHidden() const; | 289 | bool isHidden() const; | ||
282 | 290 | | |||
283 | /** | 291 | /** | ||
284 | * @return true if the file is a remote URL, or a local file on a network mount. | 292 | * @return true if the file is a remote URL, or a local file on a network mount. | ||
▲ Show 20 Lines • Show All 309 Lines • Show Last 20 Lines |
If we were to go this route (adding it to KFileItem which I think we shouldn't), this should be in KFileItemPrivate and not a public method, let alone one whose availability depends on the platform