19 #ifndef __kio_observer_h__
20 #define __kio_observer_h__
23 #include <dcopobject.h>
24 #include <tqintdict.h>
26 #include <kio/global.h>
27 #include <kio/authinfo.h>
29 #include "kio/skipdlg.h"
30 #include "kio/renamedlg.h"
55 class KIO_EXPORT
Observer :
public TQObject,
public DCOPObject {
67 if (!s_pObserver) s_pObserver =
new Observer;
78 int newJob(
KIO::Job * job,
bool showProgress );
85 void jobFinished(
int progressId );
90 bool openPassDlg(
const TQString& prompt, TQString& user, TQString& pass,
111 static int messageBox(
int progressId,
int type,
const TQString &text,
const TQString &caption,
112 const TQString &buttonYes,
const TQString &buttonNo );
128 static int messageBox(
int progressId,
int type,
const TQString &text,
const TQString &caption,
129 const TQString &buttonYes,
const TQString &buttonNo,
const TQString &dontAskAgainName );
136 const TQString & caption,
137 const TQString& src,
const TQString & dest,
138 KIO::RenameDlg_Mode mode,
142 time_t ctimeSrc = (time_t) -1,
143 time_t ctimeDest = (time_t) -1,
144 time_t mtimeSrc = (time_t) -1,
145 time_t mtimeDest = (time_t) -1
152 KIO::SkipDlg_Result open_SkipDlg(
KIO::Job * job,
154 const TQString & error_text );
161 void killJob(
int progressId );
175 UIServer_stub * m_uiserver;
177 TQIntDict< KIO::Job > m_dctJobs;
182 void slotTotalFiles(
KIO::Job*,
unsigned long files );
183 void slotTotalDirs(
KIO::Job*,
unsigned long dirs );
186 void slotProcessedFiles(
KIO::Job*,
unsigned long files );
187 void slotProcessedDirs(
KIO::Job*,
unsigned long dirs );
189 void slotSpeed(
KIO::Job*,
unsigned long speed );
190 void slotPercent(
KIO::Job*,
unsigned long percent );
191 void slotInfoMessage(
KIO::Job*,
const TQString & msg );
193 void slotCopying(
KIO::Job*,
const KURL& from,
const KURL& to );
194 void slotMoving(
KIO::Job*,
const KURL& from,
const KURL& to );
195 void slotDeleting(
KIO::Job*,
const KURL& url );
197 void slotTransferring(
KIO::Job*,
const KURL& url );
198 void slotCreatingDir(
KIO::Job*,
const KURL& dir );
203 void stating(
KIO::Job*,
const KURL& url );
204 void mounting(
KIO::Job*,
const TQString & dev,
const TQString & point );
205 void unmounting(
KIO::Job*,
const TQString & point );
207 virtual void virtual_hook(
int id,
void* data );
209 class ObserverPrivate* d;
This class is intended to make it easier to prompt for, cache and retrieve authorization information.
The base class for all jobs.
Observer for KIO::Job progress information.
A namespace for KIO globals.
TQ_ULLONG filesize_t
64-bit file size
RenameDlg_Result
The result of open_RenameDlg().