Changeset View
Changeset View
Standalone View
Standalone View
src/core/job_base.h
Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Line(s) | |||||
61 | protected: | 61 | protected: | ||
62 | Job(); | 62 | Job(); | ||
63 | Job(JobPrivate &dd); | 63 | Job(JobPrivate &dd); | ||
64 | 64 | | |||
65 | public: | 65 | public: | ||
66 | virtual ~Job(); | 66 | virtual ~Job(); | ||
67 | void start() override {} // Since KIO autostarts its jobs | 67 | void start() override {} // Since KIO autostarts its jobs | ||
68 | 68 | | |||
69 | #if KIOCORE_ENABLE_DEPRECATED_SINCE(5, 0) | ||||
69 | /** | 70 | /** | ||
70 | * Retrieves the UI delegate of this job. | 71 | * Retrieves the UI delegate of this job. | ||
71 | * | 72 | * | ||
72 | * @deprecated since 5.0, can now be replaced with uiDelegate() | | |||
73 | * | | |||
74 | * @return the delegate used by the job to communicate with the UI | 73 | * @return the delegate used by the job to communicate with the UI | ||
74 | * | ||||
75 | * @deprecated since 5.0, can now be replaced with uiDelegate() | ||||
75 | */ | 76 | */ | ||
76 | #ifndef KIOCORE_NO_DEPRECATED | 77 | KIOCORE_DEPRECATED_VERSION(5, 0, "Use KJob::uiDelegate()") | ||
77 | KIOCORE_DEPRECATED KJobUiDelegate *ui() const; | 78 | KJobUiDelegate *ui() const; | ||
78 | #endif | 79 | #endif | ||
79 | 80 | | |||
80 | /** | 81 | /** | ||
81 | * Retrieves the UI delegate extension used by this job. | 82 | * Retrieves the UI delegate extension used by this job. | ||
82 | * @since 5.0 | 83 | * @since 5.0 | ||
83 | */ | 84 | */ | ||
84 | JobUiDelegateExtension *uiDelegateExtension() const; | 85 | JobUiDelegateExtension *uiDelegateExtension() const; | ||
85 | 86 | | |||
▲ Show 20 Lines • Show All 129 Lines • ▼ Show 20 Line(s) | 113 | public: | |||
215 | * @return the value of the meta data, or QString() if the | 216 | * @return the value of the meta data, or QString() if the | ||
216 | * @p key does not exist | 217 | * @p key does not exist | ||
217 | */ | 218 | */ | ||
218 | QString queryMetaData(const QString &key); | 219 | QString queryMetaData(const QString &key); | ||
219 | 220 | | |||
220 | protected: | 221 | protected: | ||
221 | 222 | | |||
222 | Q_SIGNALS: | 223 | Q_SIGNALS: | ||
224 | #if KIOCORE_ENABLE_DEPRECATED_SINCE(5, 0) | ||||
223 | /** | 225 | /** | ||
224 | * @deprecated. Don't use ! | | |||
225 | * Emitted when the job is canceled. | 226 | * Emitted when the job is canceled. | ||
226 | * Signal result() is emitted as well, and error() is, | 227 | * Signal result() is emitted as well, and error() is, | ||
227 | * in this case, ERR_USER_CANCELED. | 228 | * in this case, ERR_USER_CANCELED. | ||
228 | * @param job the job that emitted this signal | 229 | * @param job the job that emitted this signal | ||
230 | * @deprecated Since 5.0. Don't use ! | ||||
229 | */ | 231 | */ | ||
230 | #ifndef KIOCORE_NO_DEPRECATED | 232 | KIOCORE_DEPRECATED_VERSION(5, 0, "Do not use") | ||
231 | KIOCORE_DEPRECATED void canceled(KJob *job); | 233 | void canceled(KJob *job); | ||
232 | #endif | 234 | #endif | ||
233 | 235 | | |||
234 | /** | 236 | /** | ||
235 | * Emitted when the slave successfully connected to the host. | 237 | * Emitted when the slave successfully connected to the host. | ||
236 | * There is no guarantee the slave will send this, and this is | 238 | * There is no guarantee the slave will send this, and this is | ||
237 | * currently unused (in the applications). | 239 | * currently unused (in the applications). | ||
238 | * @param job the job that emitted this signal | 240 | * @param job the job that emitted this signal | ||
239 | */ | 241 | */ | ||
▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines |