19 #ifndef __tdeio_observer_h__
20 #define __tdeio_observer_h__
23 #include <dcopobject.h>
24 #include <tqintdict.h>
26 #include <tdeio/global.h>
27 #include <tdeio/authinfo.h>
28 #include "tdeio/job.h"
29 #include "tdeio/skipdlg.h"
30 #include "tdeio/renamedlg.h"
55 class TDEIO_EXPORT
Observer :
public TQObject,
public DCOPObject {
67 if (!s_pObserver) s_pObserver =
new Observer;
78 int newJob(
TDEIO::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 TDEIO::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 TDEIO::SkipDlg_Result open_SkipDlg(
TDEIO::Job * job,
154 const TQString & error_text );
161 void killJob(
int progressId );
175 UIServer_stub * m_uiserver;
177 TQIntDict< TDEIO::Job > m_dctJobs;
182 void slotTotalFiles(
TDEIO::Job*,
unsigned long files );
183 void slotTotalDirs(
TDEIO::Job*,
unsigned long dirs );
186 void slotProcessedFiles(
TDEIO::Job*,
unsigned long files );
187 void slotProcessedDirs(
TDEIO::Job*,
unsigned long dirs );
189 void slotSpeed(
TDEIO::Job*,
unsigned long speed );
190 void slotPercent(
TDEIO::Job*,
unsigned long percent );
191 void slotInfoMessage(
TDEIO::Job*,
const TQString & msg );
193 void slotCopying(
TDEIO::Job*,
const KURL& from,
const KURL& to );
194 void slotMoving(
TDEIO::Job*,
const KURL& from,
const KURL& to );
195 void slotDeleting(
TDEIO::Job*,
const KURL& url );
197 void slotTransferring(
TDEIO::Job*,
const KURL& url );
198 void slotCreatingDir(
TDEIO::Job*,
const KURL& dir );
204 void mounting(
TDEIO::Job*,
const TQString & dev,
const TQString & point );
205 void unmounting(
TDEIO::Job*,
const TQString & point );
207 virtual void virtual_hook(
int id,
void* data );
209 class ObserverPrivate* d;
Observer for TDEIO::Job progress information.
This class is intended to make it easier to prompt for, cache and retrieve authorization information.
The base class for all jobs.
A namespace for TDEIO globals.
RenameDlg_Result
The result of open_RenameDlg().
TQ_ULLONG filesize_t
64-bit file size