Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

Observer Class Reference

Observer for KIO::Job progress information. More...

#include <observer.h>

Inheritance diagram for Observer:

DCOPObject List of all members.

Public Slots

void slotTransferring (KIO::Job *, const KURL &url)
 
Since:
3.1



DCOP Methods

void killJob (int progressId)
KIO::MetaData metadata (int progressId)

Public Methods

int newJob (KIO::Job *job, bool showProgress)
void jobFinished (int progressId)
bool openPassDlg (const QString &prompt, QString &user, QString &pass, bool readOnly)
KIO::RenameDlg_Result open_RenameDlg (KIO::Job *job, const QString &caption, const QString &src, const QString &dest, KIO::RenameDlg_Mode mode, QString &newDest, KIO::filesize_t sizeSrc=(KIO::filesize_t)-1, KIO::filesize_t sizeDest=(KIO::filesize_t)-1, time_t ctimeSrc=(time_t)-1, time_t ctimeDest=(time_t)-1, time_t mtimeSrc=(time_t)-1, time_t mtimeDest=(time_t)-1)
KIO::SkipDlg_Result open_SkipDlg (KIO::Job *job, bool multi, const QString &error_text)

Static Public Methods

Observer * self ()
int messageBox (int progressId, int type, const QString &text, const QString &caption, const QString &buttonYes, const QString &buttonNo)

Protected Methods

virtual void virtual_hook (int id, void *data)

Detailed Description

Observer for KIO::Job progress information.

Observer for KIO::Job progress information This class, of which there is always only one instance, "observes" what jobs do and forwards this information to the progress-info server.

It is a DCOP object so that the UI server can call the kill method when the user presses Cancel.

Author:
David Faure <faure@kde.org>

Definition at line 52 of file observer.h.


Member Function Documentation

void Observer::jobFinished int    progressId
 

Called by the job destructor, to tell the UI Server that the job ended

void Observer::killJob int    progressId
 

Called by the UI Server (using DCOP) if the user presses cancel

int Observer::messageBox int    progressId,
int    type,
const QString &    text,
const QString &    caption,
const QString &    buttonYes,
const QString &    buttonNo
[static]
 

Popup a message box. See KIO::SlaveBase. This doesn't use DCOP anymore, it shows the dialog in the application's process. Otherwise, other apps would block when trying to communicate with UIServer.

KIO::MetaData Observer::metadata int    progressId
 

Called by the UI Server (using DCOP) to get all the metadata of the job

int Observer::newJob KIO::Job   job,
bool    showProgress
 

Called by the job constructor, to signal its presence to the UI Server.

Returns:
the progress ID assigned by the UI Server to the Job.

KIO::RenameDlg_Result Observer::open_RenameDlg KIO::Job   job,
const QString &    caption,
const QString &    src,
const QString &    dest,
KIO::RenameDlg_Mode    mode,
QString &    newDest,
KIO::filesize_t    sizeSrc = (KIO::filesize_t)-1,
KIO::filesize_t    sizeDest = (KIO::filesize_t)-1,
time_t    ctimeSrc = (time_t)-1,
time_t    ctimeDest = (time_t)-1,
time_t    mtimeSrc = (time_t)-1,
time_t    mtimeDest = (time_t)-1
 

See renamedlg.h

KIO::SkipDlg_Result Observer::open_SkipDlg KIO::Job   job,
bool    multi,
const QString &    error_text
 

See skipdlg.h

bool Observer::openPassDlg const QString &    prompt,
QString &    user,
QString &    pass,
bool    readOnly
 

Deprecated:
.

Observer* Observer::self   [inline, static]
 

Returns:
the unique observer object

Definition at line 62 of file observer.h.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:29 2003 for kdelibs by doxygen1.2.18