Changeset View
Changeset View
Standalone View
Standalone View
src/core/job_base.h
Context not available. | |||||
214 | */ | 214 | */ | ||
---|---|---|---|---|---|
215 | QString queryMetaData(const QString &key); | 215 | QString queryMetaData(const QString &key); | ||
216 | 216 | | |||
217 | /** | ||||
218 | * Checks if privileged execution of job is enabled or not. | ||||
219 | * In other words check if the job can notify the slave | ||||
220 | * to continue the file operation with root privileges in | ||||
221 | * of an error due to insufficient privileges. | ||||
222 | * | ||||
223 | * @since 5.37 | ||||
224 | **/ | ||||
225 | bool isPrivilegeExecutionEnabled() const; | ||||
226 | | ||||
217 | protected: | 227 | protected: | ||
218 | 228 | | |||
219 | Q_SIGNALS: | 229 | Q_SIGNALS: | ||
Context not available. | |||||
301 | * This is used by KIO::rename(), KIO::put(), KIO::file_copy(), KIO::file_move(), KIO::symlink(). | 311 | * 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. | 312 | * Otherwise the operation will fail with ERR_FILE_ALREADY_EXIST or ERR_DIR_ALREADY_EXIST. | ||
303 | */ | 313 | */ | ||
304 | Overwrite = 4 | 314 | Overwrite = 4, | ||
315 | | ||||
316 | /** | ||||
317 | * When set, notifies the slave that the application(job) wants the file operation to be | ||||
318 | * performed as root user if there occurs as error due to insufficient privilege. | ||||
319 | * Note that, just setting this flag won't result in success of the job. The job must also | ||||
320 | * set the variable m_enablePrivilegeExecution to true. This is required because KIO slave, | ||||
321 | * before performing the privilege file operation, will emit dataReq() signal to query for | ||||
322 | * privilege execution support and the job will reply according to truth of the variable. | ||||
323 | * | ||||
324 | * @since 5.37 | ||||
325 | **/ | ||||
326 | PrivilegeExecution = 8 | ||||
305 | }; | 327 | }; | ||
306 | Q_DECLARE_FLAGS(JobFlags, JobFlag) | 328 | Q_DECLARE_FLAGS(JobFlags, JobFlag) | ||
307 | Q_DECLARE_OPERATORS_FOR_FLAGS(JobFlags) | 329 | Q_DECLARE_OPERATORS_FOR_FLAGS(JobFlags) | ||
Context not available. |