|
|
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& msg, QString& user, QString& passwd, bool lockUserName )
| openPassDlg |
Prompts the user for authorization info( login & password ).
Note this function simply forwards the request to UIServer::openPassDlg and returns the result of that function call...
Parameters:
msg | the resource the requires authorization |
user | the user to be allowed authorized access |
passwd | the password of the authorized user |
lockUserName | enables/disables the username field |
Returns: true if authorization was sucessfully obtained.
int messageBox ( int progressId, int type, const QString &text, const QString &caption, const QString &buttonYes, const QString &buttonNo)
| messageBox |
Popup a message box. See SlaveBase.
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 )
| 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*, unsigned long 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*, unsigned long 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*, unsigned long 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 |