.TH "KIO::StatusbarProgress" 3 "28 Jan 2004" "kio Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KIO::StatusbarProgress \- This is a special IO progress widget. IO progress widget for embedding in a statusbar.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <statusbarprogress.h>\fP
.PP
Inherits \fBKIO::ProgressBase\fP.
.PP
.SS "Public Slots"

.in +1c
.ti -1c
.RI "virtual void \fBslotClean\fP ()"
.br
.RI "\fIThis method is called when the widget should be cleaned (after job is finished). \fP"
.ti -1c
.RI "virtual void \fBslotTotalSize\fP (\fBKIO::Job\fP *, KIO::filesize_t \fBsize\fP)"
.br
.ti -1c
.RI "virtual void \fBslotPercent\fP (\fBKIO::Job\fP *, unsigned long percent)"
.br
.ti -1c
.RI "virtual void \fBslotSpeed\fP (\fBKIO::Job\fP *, unsigned long bytes_per_second)"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBStatusbarProgress\fP (\fBQWidget\fP *parent, bool button=true)"
.br
.ti -1c
.RI "void \fBsetJob\fP (\fBKIO::Job\fP *job)"
.br
.in -1c
.SS "Protected Types"

.in +1c
.ti -1c
.RI "enum \fBMode\fP { \fBNone\fP, \fBLabel\fP, \fBProgress\fP }"
.br
.in -1c
.SS "Protected Member Functions"

.in +1c
.ti -1c
.RI "void \fBsetMode\fP ()"
.br
.ti -1c
.RI "virtual bool \fBeventFilter\fP (\fBQObject\fP *, \fBQEvent\fP *)"
.br
.ti -1c
.RI "virtual void \fBvirtual_hook\fP (int id, void *data)"
.br
.in -1c
.SS "Protected Attributes"

.in +1c
.ti -1c
.RI "\fBKProgress\fP * \fBm_pProgressBar\fP"
.br
.ti -1c
.RI "\fBQLabel\fP * \fBm_pLabel\fP"
.br
.ti -1c
.RI "\fBQPushButton\fP * \fBm_pButton\fP"
.br
.ti -1c
.RI "KIO::filesize_t \fBm_iTotalSize\fP"
.br
.ti -1c
.RI "uint \fBmode\fP"
.br
.ti -1c
.RI "bool \fBm_bShowButton\fP"
.br
.ti -1c
.RI "\fBQBoxLayout\fP * \fBbox\fP"
.br
.ti -1c
.RI "\fBQWidgetStack\fP * \fBstack\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
This is a special IO progress widget. IO progress widget for embedding in a statusbar. 

Similarly to \fBDefaultProgress\fP, it's purpose is to show a progress of the IO operation.
.PP
Instead of creating a separate window, this is only a widget that can be easily embedded in a statusbar.
.PP
Usage of \fBStatusbarProgress\fP is little different. This dialog will be a part of some application. 
.PP
.nf

 // create a dialog
 \fBStatusbarProgress\fP *statusProgress;
 statusProgress = new \fBStatusbarProgress\fP( statusBar() );
 statusBar()->insertWidget( statusProgress, statusProgress->\fBwidth()\fP , 0 );
 ...
 // create job and connect it to the progress
 CopyJob* job = \fBKIO::copy\fP(...);
 statusProgress->setJob( job );
 ...
 
.PP
.PP
\fBAuthor:\fP
.RS 4
Matej Koss <koss@miesto.sk> 
.RE
.PP

.PP
Definition at line 62 of file statusbarprogress.h.
.SH "Member Function Documentation"
.PP 
.SS "void KIO::StatusbarProgress::slotClean ()\fC [virtual, slot]\fP"
.PP
This method is called when the widget should be cleaned (after job is finished). redefine this for custom behavior. Reimplemented from \fBKIO::ProgressBase\fP.
.PP
Definition at line 108 of file statusbarprogress.cpp.
.PP
References QLabel::clear(), and KProgress::setValue().

.SH "Author"
.PP 
Generated automatically by Doxygen for kio Library from the source code.
