Changeset View
Changeset View
Standalone View
Standalone View
src/core/transferjob.h
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Line(s) | 42 | public: | |||
---|---|---|---|---|---|
67 | 67 | | |||
68 | /** | 68 | /** | ||
69 | * Provide data to the job when async data is enabled. | 69 | * Provide data to the job when async data is enabled. | ||
70 | * Should be called exactly once after receiving a dataReq signal | 70 | * Should be called exactly once after receiving a dataReq signal | ||
71 | * Sending an empty block indicates end of data. | 71 | * Sending an empty block indicates end of data. | ||
72 | */ | 72 | */ | ||
73 | void sendAsyncData(const QByteArray &data); | 73 | void sendAsyncData(const QByteArray &data); | ||
74 | 74 | | |||
75 | #if KIOCORE_ENABLE_DEPRECATED_SINCE(4, 3) | ||||
75 | /** | 76 | /** | ||
76 | * When enabled, the job reports the amount of data that has been sent, | 77 | * When enabled, the job reports the amount of data that has been sent, | ||
77 | * instead of the amount of data that has been received. | 78 | * instead of the amount of data that has been received. | ||
78 | * @see slotProcessedSize | 79 | * @see slotProcessedSize | ||
79 | * @see slotSpeed | 80 | * @see slotSpeed | ||
80 | * @deprecated since 4.2.1, this is unnecessary (it is always false for | 81 | * @deprecated since 4.2.1, this is unnecessary (it is always false for | ||
81 | * KIO::get and true for KIO::put) | 82 | * KIO::get and true for KIO::put) | ||
82 | */ | 83 | */ | ||
83 | #ifndef KIOCORE_NO_DEPRECATED | 84 | KIOCORE_DEPRECATED_VERSION(4, 3, "No longer needed") | ||
84 | KIOCORE_DEPRECATED void setReportDataSent(bool enabled); | 85 | void setReportDataSent(bool enabled); | ||
85 | #endif | 86 | #endif | ||
86 | 87 | | |||
88 | #if KIOCORE_ENABLE_DEPRECATED_SINCE(4, 3) | ||||
87 | /** | 89 | /** | ||
88 | * Returns whether the job reports the amount of data that has been | 90 | * Returns whether the job reports the amount of data that has been | ||
89 | * sent (true), or whether the job reports the amount of data that | 91 | * sent (true), or whether the job reports the amount of data that | ||
90 | * has been received (false) | 92 | * has been received (false) | ||
91 | * @deprecated since 4.2.1, this is unnecessary (it is always false for | 93 | * @deprecated since 4.2.1, this is unnecessary (it is always false for | ||
92 | * KIO::get and true for KIO::put) | 94 | * KIO::get and true for KIO::put) | ||
93 | */ | 95 | */ | ||
94 | #ifndef KIOCORE_NO_DEPRECATED | 96 | KIOCORE_DEPRECATED_VERSION(4, 3, "No longer needed") | ||
95 | KIOCORE_DEPRECATED bool reportDataSent() const; | 97 | bool reportDataSent() const; | ||
96 | #endif | 98 | #endif | ||
97 | 99 | | |||
98 | /** | 100 | /** | ||
99 | * Call this in the slot connected to result, | 101 | * Call this in the slot connected to result, | ||
100 | * and only after making sure no error happened. | 102 | * and only after making sure no error happened. | ||
101 | * @return the mimetype of the URL | 103 | * @return the mimetype of the URL | ||
102 | */ | 104 | */ | ||
103 | QString mimetype() const; | 105 | QString mimetype() const; | ||
▲ Show 20 Lines • Show All 214 Lines • Show Last 20 Lines |