
Next Prev Table of Contents
Pointer to the current job.
The data that the slave received and is passing along to your app
This signal is emitted whenever the slave receives data. The data may be the entire file.. but may only be chunks of it. The only way you know for sure that you are done is to connect to the result() signal.
Client::Client()
{
connect(job, SIGNAL(data(KIO::Job *, const QByteArray&)),
this, SLOT(slotData(KIO::Job *, const QByteArray&)));
}
void Client::slotData(KIO::Job *job, const QByteArray& data)
{
QCString c_string(data.data(), data.size());
kdDebug() << "Data: \"" << c_string.data() << "\"" << endl;
}
|
Next Prev Table of Contents