Changeset View
Changeset View
Standalone View
Standalone View
src/core/job_base.h
Show First 20 Lines • Show All 213 Lines • ▼ Show 20 Line(s) | 109 | public: | |||
---|---|---|---|---|---|
214 | */ | 214 | */ | ||
215 | QString queryMetaData(const QString &key); | 215 | QString queryMetaData(const QString &key); | ||
216 | 216 | | |||
217 | protected: | 217 | protected: | ||
218 | 218 | | |||
219 | Q_SIGNALS: | 219 | Q_SIGNALS: | ||
220 | /** | 220 | /** | ||
221 | * @deprecated. Don't use ! | 221 | * @deprecated. Don't use ! | ||
222 | * Emitted when the job is canceled. | 222 | * Emitted when the job is canceled. | ||
dfaure: This doesn't need to be public, does it? Could be in the private class. | |||||
223 | * Signal result() is emitted as well, and error() is, | 223 | * Signal result() is emitted as well, and error() is, | ||
224 | * in this case, ERR_USER_CANCELED. | 224 | * in this case, ERR_USER_CANCELED. | ||
225 | * @param job the job that emitted this signal | 225 | * @param job the job that emitted this signal | ||
226 | */ | 226 | */ | ||
227 | #ifndef KIOCORE_NO_DEPRECATED | 227 | #ifndef KIOCORE_NO_DEPRECATED | ||
228 | KIOCORE_DEPRECATED void canceled(KJob *job); | 228 | KIOCORE_DEPRECATED void canceled(KJob *job); | ||
229 | #endif | 229 | #endif | ||
dfaure: This doesn't need to be public, does it? Could be in the private class. | |||||
230 | 230 | | |||
231 | /** | 231 | /** | ||
232 | * Emitted when the slave successfully connected to the host. | 232 | * Emitted when the slave successfully connected to the host. | ||
233 | * There is no guarantee the slave will send this, and this is | 233 | * There is no guarantee the slave will send this, and this is | ||
234 | * currently unused (in the applications). | 234 | * currently unused (in the applications). | ||
235 | * @param job the job that emitted this signal | 235 | * @param job the job that emitted this signal | ||
236 | */ | 236 | */ | ||
237 | void connected(KIO::Job *job); | 237 | void connected(KIO::Job *job); | ||
▲ Show 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | 279 | enum JobFlag { | |||
296 | */ | 296 | */ | ||
297 | Resume = 2, | 297 | Resume = 2, | ||
298 | 298 | | |||
299 | /** | 299 | /** | ||
300 | * When set, automatically overwrite the destination if it exists already. | 300 | * When set, automatically overwrite the destination if it exists already. | ||
301 | * This is used by KIO::rename(), KIO::put(), KIO::file_copy(), KIO::file_move(), KIO::symlink(). | 301 | * This is used by KIO::rename(), KIO::put(), KIO::file_copy(), KIO::file_move(), KIO::symlink(). | ||
302 | * Otherwise the operation will fail with ERR_FILE_ALREADY_EXIST or ERR_DIR_ALREADY_EXIST. | 302 | * Otherwise the operation will fail with ERR_FILE_ALREADY_EXIST or ERR_DIR_ALREADY_EXIST. | ||
303 | */ | 303 | */ | ||
304 | Overwrite = 4 | 304 | Overwrite = 4, | ||
305 | | ||||
306 | //TODO: Only one of these flags is required. Remove the one less stable. | ||||
307 | /** | ||||
308 | * When set, notifies the slave that application/job does not want privilege execution. | ||||
309 | * So in case of failure due to insufficient privileges show an error without attempting | ||||
310 | * to run the operation as root first. | ||||
311 | * | ||||
dfaure: You can use @since 5.40 everywhere... | |||||
312 | * @since 5.43 | ||||
313 | */ | ||||
314 | NoPrivilegeExecution = 8, | ||||
315 | | ||||
316 | /** | ||||
317 | * When set, notifies the slave that the application(job) wants the file operation to be | ||||
typo: insufficient I would add "without attempting to run the operation as root first". dfaure: typo: insufficient
I would add "without attempting to run the operation as root first". | |||||
318 | * performed as root user if there occurs a failure due to insufficient privilege. | ||||
319 | * | ||||
320 | * @since 5.43 | ||||
dfaure: It's usually just */ on this line (single star) | |||||
321 | */ | ||||
322 | PrivilegeExecution = 16 | ||||
323 | | ||||
305 | }; | 324 | }; | ||
306 | Q_DECLARE_FLAGS(JobFlags, JobFlag) | 325 | Q_DECLARE_FLAGS(JobFlags, JobFlag) | ||
307 | Q_DECLARE_OPERATORS_FOR_FLAGS(JobFlags) | 326 | Q_DECLARE_OPERATORS_FOR_FLAGS(JobFlags) | ||
308 | 327 | | |||
309 | enum LoadType { Reload, NoReload }; | 328 | enum LoadType { Reload, NoReload }; | ||
310 | 329 | | |||
311 | } | 330 | } | ||
312 | 331 | | |||
313 | #endif | 332 | #endif |
This doesn't need to be public, does it? Could be in the private class.