Changeset View
Changeset View
Standalone View
Standalone View
src/core/slavebase.h
Show First 20 Lines • Show All 200 Lines • ▼ Show 20 Line(s) | 63 | public: | |||
---|---|---|---|---|---|
201 | * Don't emit it in listDir, listEntries speaks for itself. | 201 | * Don't emit it in listDir, listEntries speaks for itself. | ||
202 | */ | 202 | */ | ||
203 | void processedSize(KIO::filesize_t _bytes); | 203 | void processedSize(KIO::filesize_t _bytes); | ||
204 | 204 | | |||
205 | void position(KIO::filesize_t _pos); | 205 | void position(KIO::filesize_t _pos); | ||
206 | 206 | | |||
207 | void written(KIO::filesize_t _bytes); | 207 | void written(KIO::filesize_t _bytes); | ||
208 | 208 | | |||
209 | void truncated(KIO::filesize_t _length); | ||||
dfaure: @since 5.66 | |||||
210 | | ||||
209 | /** | 211 | /** | ||
210 | * Only use this if you can't know in advance the size of the | 212 | * Only use this if you can't know in advance the size of the | ||
211 | * copied data. For example, if you're doing variable bitrate | 213 | * copied data. For example, if you're doing variable bitrate | ||
212 | * compression of the source. | 214 | * compression of the source. | ||
213 | * | 215 | * | ||
214 | * STUB ! Currently unimplemented. Here now for binary compatibility. | 216 | * STUB ! Currently unimplemented. Here now for binary compatibility. | ||
215 | * | 217 | * | ||
216 | * Call this during get and copy, once in a while, | 218 | * Call this during get and copy, once in a while, | ||
▲ Show 20 Lines • Show All 250 Lines • ▼ Show 20 Line(s) | 380 | #endif | |||
467 | virtual void write(const QByteArray &data); | 469 | virtual void write(const QByteArray &data); | ||
468 | /** | 470 | /** | ||
469 | * seek. | 471 | * seek. | ||
470 | * @param offset the requested amount of data to read | 472 | * @param offset the requested amount of data to read | ||
471 | * @see KIO::FileJob::read() | 473 | * @see KIO::FileJob::read() | ||
472 | */ | 474 | */ | ||
473 | virtual void seek(KIO::filesize_t offset); | 475 | virtual void seek(KIO::filesize_t offset); | ||
474 | /** | 476 | /** | ||
477 | * truncate. | ||||
478 | * @param length the requested amount to truncate to | ||||
479 | * @see KIO::FileJob::truncate() | ||||
480 | */ | ||||
481 | virtual void truncate(KIO::filesize_t length); | ||||
WARNING RED ALERT.... adding a virtual method is a binary incompatible change. This cannot be done in the 5.x timeframe. Use a different solution, like special() or virtual_hook(). I think virtual_hook is better if the idea is to turn it into a virtual method in KF6. dfaure: WARNING RED ALERT.... adding a virtual method is a binary incompatible change. This cannot be… | |||||
482 | /** | ||||
475 | * close. | 483 | * close. | ||
476 | * @see KIO::FileJob::close() | 484 | * @see KIO::FileJob::close() | ||
477 | */ | 485 | */ | ||
478 | virtual void close(); | 486 | virtual void close(); | ||
479 | 487 | | |||
480 | /** | 488 | /** | ||
481 | * put, i.e. write data into a file. | 489 | * put, i.e. write data into a file. | ||
482 | * | 490 | * | ||
▲ Show 20 Lines • Show All 573 Lines • Show Last 20 Lines |
@since 5.66