class Observer

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

Definition#include <observer.h>
InheritsDCOPObject (dcop), QObject (kdecore)
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 ()

[static]

Returns: the unique observer object

int  newJob ( KIO::Job * job )

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 )

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

bool  authorize ( QString& , QString& , const QString& , const QString& )

Invoke to request autorization info from the user or query the password daemon to see if one is stored.

Note this is simply a forwarding method to UIServer::authorize It simply returns the result of the UIServer to the calling function.

Parameters:
userthe user to be allowed authorized access
passthe password of the authorized user
headthe resource the requires authorization
keythe key used to cache the password.

Returns: true if authrization information was obtained.

KIO::RenameDlg_Result  open_RenameDlg ( KIO::Job * job, const QString & caption, const QString& src, const QString & dest, KIO::RenameDlg_Mode mode, QString& newDest, unsigned long sizeSrc = (unsigned long) -1, unsigned long sizeDest = (unsigned long) -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  open_SkipDlg ( KIO::Job * job, bool multi, const QString & error_text )

See skipdlg.h

k_dcop: /** * Called by the UI  Server (using DCOP) if the user presses cancel */ void killJob( int progressId )

static Observer * s_pObserver

[protected]

 Observer ()

[protected]

Observer ()

[protected]

UIServer_stub * m_uiserver

[protected]

QIntDict< KIO::Job > m_dctJobs

[protected]

void  slotTotalSize ( KIO::Job*, unsigned long size )

[slot]

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

[slot]

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

[slot]

void  slotProcessedSize ( KIO::Job*, unsigned long size )

[slot]

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

[slot]

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

[slot]

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

[slot]

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

[slot]

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

[slot]

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

[slot]

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

[slot]

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

[slot]

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

[slot]

void  slotCanResume ( KIO::Job*, bool can_resume )

[slot]

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

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

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