class Observer

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

Definition#include <observer.h>
InheritsDCOPObject (dcop) [public ], QObject (qt) [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Slots

Public Static Methods

Protected Methods

Protected Members


Detailed Description

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.

Observer *  self ()

self

[static]

Returns: the unique observer object

int  newJob ( KIO::Job * job, bool showProgress )

newJob

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.

void  jobFinished ( int progressId )

jobFinished

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

bool  openPassDlg ( const QString& prompt, QString& user, QString& pass, bool readOnly )

openPassDlg

bool  openPassDlg ( KIO::AuthInfo& info )

openPassDlg

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

messageBox

[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::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 )

open_RenameDlg

See renamedlg.h

KIO::SkipDlg_Result  open_SkipDlg ( KIO::Job * job, bool multi, const QString & error_text )

open_SkipDlg

See skipdlg.h

void  killJob ( int progressId )

killJob

[k_dcop]

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

KIO::MetaData  metadata ( int progressId )

metadata

[k_dcop]

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

static Observer * s_pObserver

s_pObserver

[protected]

 Observer ()

Observer

[protected]

 ~Observer ()

~Observer

[protected]

UIServer_stub * m_uiserver

m_uiserver

[protected]

QIntDict< KIO::Job > m_dctJobs

m_dctJobs

[protected]

void  slotTotalSize ( KIO::Job*, KIO::filesize_t size )

slotTotalSize

[slot]

void  slotTotalFiles ( KIO::Job*, unsigned long files )

slotTotalFiles

[slot]

void  slotTotalDirs ( KIO::Job*, unsigned long dirs )

slotTotalDirs

[slot]

void  slotProcessedSize ( KIO::Job*, KIO::filesize_t size )

slotProcessedSize

[slot]

void  slotProcessedFiles ( KIO::Job*, unsigned long files )

slotProcessedFiles

[slot]

void  slotProcessedDirs ( KIO::Job*, unsigned long dirs )

slotProcessedDirs

[slot]

void  slotSpeed ( KIO::Job*, unsigned long bytes_per_second )

slotSpeed

[slot]

void  slotPercent ( KIO::Job*, unsigned long percent )

slotPercent

[slot]

void  slotInfoMessage ( KIO::Job*, const QString & msg )

slotInfoMessage

[slot]

void  slotCopying ( KIO::Job*, const KURL& from, const KURL& to )

slotCopying

[slot]

void  slotMoving ( KIO::Job*, const KURL& from, const KURL& to )

slotMoving

[slot]

void  slotDeleting ( KIO::Job*, const KURL& url )

slotDeleting

[slot]

void  slotCreatingDir ( KIO::Job*, const KURL& dir )

slotCreatingDir

[slot]

void  slotCanResume ( KIO::Job*, KIO::filesize_t offset )

slotCanResume

[slot]

void  stating ( KIO::Job*, const KURL& url )

stating

void  mounting ( KIO::Job*, const QString & dev, const QString & point )

mounting

void  unmounting ( KIO::Job*, const QString & point )

unmounting

void  virtual_hook ( int id, void* data )

virtual_hook

[protected virtual]

Reimplemented from DCOPObject.