Changeset View
Changeset View
Standalone View
Standalone View
src/core/statjob.h
Show First 20 Lines • Show All 177 Lines • ▼ Show 20 Line(s) | |||||
178 | * By default this is 2 (all details wanted, including modification time, size, etc.), | 178 | * By default this is 2 (all details wanted, including modification time, size, etc.), | ||
179 | * setDetails(1) is used when deleting: we don't need all the information if it takes | 179 | * setDetails(1) is used when deleting: we don't need all the information if it takes | ||
180 | * too much time, no need to follow symlinks etc. | 180 | * too much time, no need to follow symlinks etc. | ||
181 | * setDetails(0) is used for very simple probing: we'll only get the answer | 181 | * setDetails(0) is used for very simple probing: we'll only get the answer | ||
182 | * "it's a file or a directory or a symlink, or it doesn't exist". This is used by KRun and DeleteJob. | 182 | * "it's a file or a directory or a symlink, or it doesn't exist". This is used by KRun and DeleteJob. | ||
183 | * @param flags Can be HideProgressInfo here | 183 | * @param flags Can be HideProgressInfo here | ||
184 | * @return the job handling the operation. | 184 | * @return the job handling the operation. | ||
185 | */ | 185 | */ | ||
186 | // TODO KF6: refactor details to be a bitmask, with some constant bitmasks to fill the current usual use case | ||||
186 | KIOCORE_EXPORT StatJob *stat(const QUrl &url, KIO::StatJob::StatSide side, | 187 | KIOCORE_EXPORT StatJob *stat(const QUrl &url, KIO::StatJob::StatSide side, | ||
187 | short int details, JobFlags flags = DefaultFlags); | 188 | short int details, JobFlags flags = DefaultFlags); | ||
188 | 189 | | |||
189 | #if KIOCORE_ENABLE_DEPRECATED_SINCE(4, 0) | 190 | #if KIOCORE_ENABLE_DEPRECATED_SINCE(4, 0) | ||
190 | /** | 191 | /** | ||
191 | * Find all details for one file or directory. | 192 | * Find all details for one file or directory. | ||
192 | * This version of the call includes two additional booleans, @p sideIsSource and @p details. | 193 | * This version of the call includes two additional booleans, @p sideIsSource and @p details. | ||
193 | * | 194 | * | ||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |