kio
KIO::DefaultProgress Class Reference
#include <defaultprogress.h>
Public Slots | |
virtual void | slotCanResume (KIO::Job *job, KIO::filesize_t from) |
void | slotClean () |
virtual void | slotCopying (KIO::Job *job, const KURL &src, const KURL &dest) |
virtual void | slotCreatingDir (KIO::Job *job, const KURL &dir) |
virtual void | slotDeleting (KIO::Job *job, const KURL &url) |
virtual void | slotInfoMessage (KIO::Job *job, const QString &msg) |
virtual void | slotMounting (KIO::Job *job, const QString &dev, const QString &point) |
virtual void | slotMoving (KIO::Job *job, const KURL &src, const KURL &dest) |
virtual void | slotPercent (KIO::Job *job, unsigned long percent) |
virtual void | slotProcessedDirs (KIO::Job *job, unsigned long dirs) |
virtual void | slotProcessedFiles (KIO::Job *job, unsigned long files) |
virtual void | slotProcessedSize (KIO::Job *job, KIO::filesize_t bytes) |
virtual void | slotSpeed (KIO::Job *job, unsigned long speed) |
virtual void | slotStating (KIO::Job *job, const KURL &dir) |
virtual void | slotTotalDirs (KIO::Job *job, unsigned long dirs) |
virtual void | slotTotalFiles (KIO::Job *job, unsigned long files) |
virtual void | slotTotalSize (KIO::Job *job, KIO::filesize_t size) |
void | slotTransferring (KIO::Job *job, const KURL &url) |
virtual void | slotUnmounting (KIO::Job *job, const QString &point) |
Public Member Functions | |
DefaultProgress (QWidget *parent, const char *name=0) | |
DefaultProgress (bool showNow=true) | |
bool | keepOpen () const |
~DefaultProgress () | |
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 | checkDestination (const KURL &dest) |
void | init () |
void | setDestVisible (bool visible) |
void | showTotals () |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
KLineEdit * | destEdit |
QLabel * | destInvite |
unsigned long | m_iProcessedDirs |
unsigned long | m_iProcessedFiles |
KIO::filesize_t | m_iProcessedSize |
unsigned long | m_iTotalDirs |
unsigned long | m_iTotalFiles |
KIO::filesize_t | m_iTotalSize |
KProgress * | m_pProgressBar |
ModeType | mode |
QLabel * | progressLabel |
QLabel * | resumeLabel |
QLabel * | sizeLabel |
KLineEdit * | sourceEdit |
QLabel * | speedLabel |
Detailed Description
Definition at line 37 of file defaultprogress.h.
Member Enumeration Documentation
enum KIO::DefaultProgress::ModeType [protected] |
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.
KIO::DefaultProgress::~DefaultProgress | ( | ) |
Definition at line 182 of file defaultprogress.cpp.
Member Function Documentation
void KIO::DefaultProgress::checkDestination | ( | const KURL & | dest | ) | [protected] |
void KIO::DefaultProgress::init | ( | ) | [protected] |
bool KIO::DefaultProgress::keepOpen | ( | ) | const |
Definition at line 80 of file defaultprogress.cpp.
QString KIO::DefaultProgress::makePercentString | ( | unsigned long | percent, | |
KIO::filesize_t | totalSize, | |||
unsigned long | totalFiles | |||
) | [static] |
void KIO::DefaultProgress::setDestVisible | ( | bool | visible | ) | [protected] |
Definition at line 424 of file defaultprogress.cpp.
void KIO::DefaultProgress::showTotals | ( | ) | [protected] |
Definition at line 215 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::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::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::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.
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::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::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::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::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::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::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::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::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::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::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::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::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.
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::virtual_hook | ( | int | id, | |
void * | data | |||
) | [protected, virtual] |
Member Data Documentation
KLineEdit* KIO::DefaultProgress::destEdit [protected] |
Definition at line 130 of file defaultprogress.h.
QLabel* KIO::DefaultProgress::destInvite [protected] |
Definition at line 132 of file defaultprogress.h.
unsigned long KIO::DefaultProgress::m_iProcessedDirs [protected] |
Definition at line 144 of file defaultprogress.h.
unsigned long KIO::DefaultProgress::m_iProcessedFiles [protected] |
Definition at line 145 of file defaultprogress.h.
Definition at line 143 of file defaultprogress.h.
unsigned long KIO::DefaultProgress::m_iTotalDirs [protected] |
Definition at line 141 of file defaultprogress.h.
unsigned long KIO::DefaultProgress::m_iTotalFiles [protected] |
Definition at line 140 of file defaultprogress.h.
KIO::filesize_t KIO::DefaultProgress::m_iTotalSize [protected] |
Definition at line 139 of file defaultprogress.h.
KProgress* KIO::DefaultProgress::m_pProgressBar [protected] |
Definition at line 137 of file defaultprogress.h.
ModeType KIO::DefaultProgress::mode [protected] |
Definition at line 148 of file defaultprogress.h.
QLabel* KIO::DefaultProgress::progressLabel [protected] |
Definition at line 131 of file defaultprogress.h.
QLabel* KIO::DefaultProgress::resumeLabel [protected] |
Definition at line 135 of file defaultprogress.h.
QLabel* KIO::DefaultProgress::sizeLabel [protected] |
Definition at line 134 of file defaultprogress.h.
KLineEdit* KIO::DefaultProgress::sourceEdit [protected] |
Definition at line 129 of file defaultprogress.h.
QLabel* KIO::DefaultProgress::speedLabel [protected] |
Definition at line 133 of file defaultprogress.h.
The documentation for this class was generated from the following files: