KIO::DefaultProgress Class Reference

Inheritance diagram for KIO::DefaultProgress:

KIO::ProgressBase QWidget List of all members.

Detailed Description

Definition at line 37 of file defaultprogress.h.


Public Slots

virtual void slotTotalSize (KIO::Job *job, KIO::filesize_t size)
virtual void slotTotalFiles (KIO::Job *job, unsigned long files)
virtual void slotTotalDirs (KIO::Job *job, unsigned long dirs)
virtual void slotProcessedSize (KIO::Job *job, KIO::filesize_t bytes)
virtual void slotProcessedFiles (KIO::Job *job, unsigned long files)
virtual void slotProcessedDirs (KIO::Job *job, unsigned long dirs)
virtual void slotSpeed (KIO::Job *job, unsigned long speed)
virtual void slotPercent (KIO::Job *job, unsigned long percent)
virtual void slotInfoMessage (KIO::Job *job, const QString &msg)
virtual void slotCopying (KIO::Job *job, const KURL &src, const KURL &dest)
virtual void slotMoving (KIO::Job *job, const KURL &src, const KURL &dest)
virtual void slotDeleting (KIO::Job *job, const KURL &url)
void slotTransferring (KIO::Job *job, const KURL &url)
virtual void slotCreatingDir (KIO::Job *job, const KURL &dir)
virtual void slotStating (KIO::Job *job, const KURL &dir)
virtual void slotMounting (KIO::Job *job, const QString &dev, const QString &point)
virtual void slotUnmounting (KIO::Job *job, const QString &point)
virtual void slotCanResume (KIO::Job *job, KIO::filesize_t from)
void slotClean ()

Public Member Functions

 DefaultProgress (bool showNow=true)
 DefaultProgress (QWidget *parent, const char *name=0)
 ~DefaultProgress ()
bool keepOpen () const

Static Public Member Functions

static QString makePercentString (unsigned long percent, KIO::filesize_t totalSize, unsigned long totalFiles)

Protected Types

enum  ModeType {
  Copy, Move, Delete, Create,
  Done
}

Protected Member Functions

void init ()
void showTotals ()
void setDestVisible (bool visible)
void checkDestination (const KURL &dest)
virtual void virtual_hook (int id, void *data)

Protected Attributes

KLineEdit * sourceEdit
KLineEdit * destEdit
QLabelprogressLabel
QLabeldestInvite
QLabelspeedLabel
QLabelsizeLabel
QLabelresumeLabel
KProgress * m_pProgressBar
KIO::filesize_t m_iTotalSize
unsigned long m_iTotalFiles
unsigned long m_iTotalDirs
KIO::filesize_t m_iProcessedSize
unsigned long m_iProcessedDirs
unsigned long m_iProcessedFiles
ModeType mode

Constructor & Destructor Documentation

KIO::DefaultProgress::DefaultProgress ( bool  showNow = true  ) 

Creates a new default progress dialog.

Parameters:
showNow true to show immediately, false to show when needed

Definition at line 60 of file defaultprogress.cpp.

KIO::DefaultProgress::DefaultProgress ( QWidget parent,
const char *  name = 0 
)

Creates a new default progress dialog.

Parameters:
parent the parent of the dialog (or 0 for top-level)
name the name of the dialog, can be 0
Since:
3.1

Definition at line 72 of file defaultprogress.cpp.


Member Function Documentation

QString KIO::DefaultProgress::makePercentString ( unsigned long  percent,
KIO::filesize_t  totalSize,
unsigned long  totalFiles 
) [static]

Shared with uiserver.cpp.

Definition at line 234 of file defaultprogress.cpp.

void KIO::DefaultProgress::slotTotalSize ( KIO::Job job,
KIO::filesize_t  size 
) [virtual, slot]

Called to set the total size.

Parameters:
job the KIO::Job
size the total size in bytes

Reimplemented from KIO::ProgressBase.

Definition at line 187 of file defaultprogress.cpp.

void KIO::DefaultProgress::slotTotalFiles ( KIO::Job job,
unsigned long  files 
) [virtual, slot]

Called to set the total number of files.

Parameters:
job the KIO::Job
files the number of files

Reimplemented from KIO::ProgressBase.

Definition at line 198 of file defaultprogress.cpp.

void KIO::DefaultProgress::slotTotalDirs ( KIO::Job job,
unsigned long  dirs 
) [virtual, slot]

Called to set the total number of directories.

Parameters:
job the KIO::Job
dirs the number of directories

Reimplemented from KIO::ProgressBase.

Definition at line 207 of file defaultprogress.cpp.

void KIO::DefaultProgress::slotProcessedSize ( KIO::Job job,
KIO::filesize_t  bytes 
) [virtual, slot]

Called to set the processed size.

Parameters:
job the KIO::Job
bytes the processed size in bytes

Reimplemented from KIO::ProgressBase.

Definition at line 280 of file defaultprogress.cpp.

void KIO::DefaultProgress::slotProcessedFiles ( KIO::Job job,
unsigned long  files 
) [virtual, slot]

Called to set the number of processed files.

Parameters:
job the KIO::Job
files the number of files

Reimplemented from KIO::ProgressBase.

Definition at line 306 of file defaultprogress.cpp.

void KIO::DefaultProgress::slotProcessedDirs ( KIO::Job job,
unsigned long  dirs 
) [virtual, slot]

Called to set the number of processed directories.

Parameters:
job the KIO::Job
dirs the number of directories

Reimplemented from KIO::ProgressBase.

Definition at line 292 of file defaultprogress.cpp.

void KIO::DefaultProgress::slotSpeed ( KIO::Job job,
unsigned long  speed 
) [virtual, slot]

Called to set the speed.

Parameters:
job the KIO::Job
speed the speed in bytes/second

Reimplemented from KIO::ProgressBase.

Definition at line 322 of file defaultprogress.cpp.

void KIO::DefaultProgress::slotPercent ( KIO::Job job,
unsigned long  percent 
) [virtual, slot]

Called to set the percentage.

Parameters:
job the KIO::Job
percent the percentage

Reimplemented from KIO::ProgressBase.

Definition at line 246 of file defaultprogress.cpp.

void KIO::DefaultProgress::slotInfoMessage ( KIO::Job job,
const QString msg 
) [virtual, slot]

Called to set an information message.

Parameters:
job the KIO::Job
msg the message to set

Definition at line 273 of file defaultprogress.cpp.

void KIO::DefaultProgress::slotCopying ( KIO::Job job,
const KURL &  src,
const KURL &  dest 
) [virtual, slot]

Called when the job is copying.

Parameters:
job the KIO::Job
src the source of the operation
dest the destination of the operation

Reimplemented from KIO::ProgressBase.

Definition at line 333 of file defaultprogress.cpp.

void KIO::DefaultProgress::slotMoving ( KIO::Job job,
const KURL &  src,
const KURL &  dest 
) [virtual, slot]

Called when the job is moving.

Parameters:
job the KIO::Job
src the source of the operation
dest the destination of the operation

Reimplemented from KIO::ProgressBase.

Definition at line 347 of file defaultprogress.cpp.

void KIO::DefaultProgress::slotDeleting ( KIO::Job job,
const KURL &  url 
) [virtual, slot]

Called when the job is deleting.

Parameters:
job the KIO::Job
url the URL to delete

Reimplemented from KIO::ProgressBase.

Definition at line 373 of file defaultprogress.cpp.

void KIO::DefaultProgress::slotTransferring ( KIO::Job job,
const KURL &  url 
) [slot]

Called when the job is transferring.

Parameters:
job the KIO::Job
url the url to transfer
Since:
3.1

Definition at line 384 of file defaultprogress.cpp.

void KIO::DefaultProgress::slotCreatingDir ( KIO::Job job,
const KURL &  dir 
) [virtual, slot]

Called when the job is creating a directory.

Parameters:
job the KIO::Job
dir the URL of the directory to create

Reimplemented from KIO::ProgressBase.

Definition at line 361 of file defaultprogress.cpp.

void KIO::DefaultProgress::slotStating ( KIO::Job job,
const KURL &  dir 
) [virtual, slot]

Called when the job is requesting a stat.

Parameters:
job the KIO::Job
dir the dir to stat
Since:
3.1

Definition at line 394 of file defaultprogress.cpp.

void KIO::DefaultProgress::slotMounting ( KIO::Job job,
const QString dev,
const QString point 
) [virtual, slot]

Called when the job is mounting.

Parameters:
job the KIO::Job
dev the device to mount
point the mount point

Definition at line 401 of file defaultprogress.cpp.

void KIO::DefaultProgress::slotUnmounting ( KIO::Job job,
const QString point 
) [virtual, slot]

Called when the job is unmounting.

Parameters:
job the KIO::Job
point the mount point

Definition at line 408 of file defaultprogress.cpp.

void KIO::DefaultProgress::slotCanResume ( KIO::Job job,
KIO::filesize_t  from 
) [virtual, slot]

Called when the job is resuming.

Parameters:
job the KIO::Job
from the position to resume from in bytes

Reimplemented from KIO::ProgressBase.

Definition at line 415 of file defaultprogress.cpp.

void KIO::DefaultProgress::slotClean (  )  [virtual, slot]

Called when the job is cleaned.

Since:
3.1

Reimplemented from KIO::ProgressBase.

Definition at line 444 of file defaultprogress.cpp.

void KIO::DefaultProgress::init (  )  [protected]

Since:
3.1

Definition at line 85 of file defaultprogress.cpp.

void KIO::DefaultProgress::checkDestination ( const KURL &  dest  )  [protected]

Since:
3.1

Definition at line 469 of file defaultprogress.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys