The K Desktop Environment

KIO::Job::result

Name

KIO::Job::result -- final status or result of job operation

Synopsis

  KIO::Job::result(KIO::Job* job)
  

Parameters

job

Pointer to the current job. See the documentation for KIO::Job to see what operations you can do with it.

Description

This is the most common signal and one that you should always connect to. It returns the final status or result of your operation. You will commonly check if there was an error here.. but you might also want to use this to finish off anything you might be doing while the job was progressing.

Example

  Client::Client()
  {
    connect(job,  SIGNAL(result(KIO::Job *)),
            this, SLOT(slotResult(KIO::Job *)));
  }
 
  void Client::slotResult(KIO::Job *job)
  {
    if (job->error())
      job->showErrorDialog();
  }