Changeset View
Changeset View
Standalone View
Standalone View
src/core/slavebase.h
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | 63 | public: | |||
---|---|---|---|---|---|
92 | /** | 92 | /** | ||
93 | * Asks for data from the job. | 93 | * Asks for data from the job. | ||
94 | * @see readData | 94 | * @see readData | ||
95 | */ | 95 | */ | ||
96 | void dataReq(); | 96 | void dataReq(); | ||
97 | 97 | | |||
98 | /** | 98 | /** | ||
99 | * open succeeds | 99 | * open succeeds | ||
100 | * @see open | 100 | * @see open() | ||
101 | */ | 101 | */ | ||
102 | void opened(); | 102 | void opened(); | ||
103 | 103 | | |||
104 | /** | 104 | /** | ||
105 | * Call to signal an error. | 105 | * Call to signal an error. | ||
106 | * This also finishes the job, so you must not call | 106 | * This also finishes the job, so you must not call | ||
107 | * finished() after calling this. | 107 | * finished() after calling this. | ||
chinmoyr: @since 5.62 | |||||
108 | * | 108 | * | ||
109 | * If the error code is KIO::ERR_SLAVE_DEFINED then the | 109 | * If the error code is KIO::ERR_SLAVE_DEFINED then the | ||
110 | * _text should contain the complete translated text of | 110 | * _text should contain the complete translated text of | ||
111 | * of the error message. | 111 | * of the error message. | ||
112 | * | 112 | * | ||
113 | * For all other error codes, _text should match the corresponding | 113 | * For all other error codes, _text should match the corresponding | ||
114 | * error code. Usually, _text is a file or host name, or the error which | 114 | * error code. Usually, _text is a file or host name, or the error which | ||
115 | * was passed from the server.<br> | 115 | * was passed from the server.<br> | ||
▲ Show 20 Lines • Show All 297 Lines • ▼ Show 20 Line(s) | |||||
413 | /** | 413 | /** | ||
414 | * open. | 414 | * open. | ||
415 | * @param url the full url for this request. Host, port and user of the URL | 415 | * @param url the full url for this request. Host, port and user of the URL | ||
416 | * can be assumed to be the same as in the last setHost() call. | 416 | * can be assumed to be the same as in the last setHost() call. | ||
417 | * @param mode see \ref QIODevice::OpenMode | 417 | * @param mode see \ref QIODevice::OpenMode | ||
418 | */ | 418 | */ | ||
419 | virtual void open(const QUrl &url, QIODevice::OpenMode mode); | 419 | virtual void open(const QUrl &url, QIODevice::OpenMode mode); | ||
420 | 420 | | |||
421 | /** | ||||
422 | * read. | ||||
423 | * @param size the requested amount of data to read | ||||
424 | * @see KIO::FileJob::read() | ||||
425 | */ | ||||
421 | virtual void read(KIO::filesize_t size); | 426 | virtual void read(KIO::filesize_t size); | ||
427 | /** | ||||
428 | * write. | ||||
429 | * @param data the data to write | ||||
430 | * @see KIO::FileJob::write() | ||||
431 | */ | ||||
422 | virtual void write(const QByteArray &data); | 432 | virtual void write(const QByteArray &data); | ||
433 | /** | ||||
434 | * seek. | ||||
435 | * @param offset the requested amount of data to read | ||||
436 | * @see KIO::FileJob::read() | ||||
437 | */ | ||||
423 | virtual void seek(KIO::filesize_t offset); | 438 | virtual void seek(KIO::filesize_t offset); | ||
439 | /** | ||||
440 | * close. | ||||
441 | * @see KIO::FileJob::close() | ||||
442 | */ | ||||
424 | virtual void close(); | 443 | virtual void close(); | ||
425 | 444 | | |||
426 | /** | 445 | /** | ||
427 | * put, i.e. write data into a file. | 446 | * put, i.e. write data into a file. | ||
428 | * | 447 | * | ||
429 | * @param url where to write the file | 448 | * @param url where to write the file | ||
430 | * @param permissions may be -1. In this case no special permission mode is set. | 449 | * @param permissions may be -1. In this case no special permission mode is set. | ||
431 | * @param flags We support Overwrite here. Hopefully, we're going to | 450 | * @param flags We support Overwrite here. Hopefully, we're going to | ||
▲ Show 20 Lines • Show All 557 Lines • Show Last 20 Lines |
@since 5.62