\section{KIO::Statusbar\-Progress Class Reference}
\label{classKIO_1_1StatusbarProgress}\index{KIO::StatusbarProgress@{KIO::StatusbarProgress}}
This is a special IO progress widget. IO progress widget for embedding in a statusbar.  


{\tt \#include $<$statusbarprogress.h$>$}

Inheritance diagram for KIO::Statusbar\-Progress:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=78pt]{classKIO_1_1StatusbarProgress__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KIO::Statusbar\-Progress:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=311pt]{classKIO_1_1StatusbarProgress__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
virtual void {\bf slot\-Clean} ()
\begin{CompactList}\small\item\em This method is called when the widget should be cleaned (after job is finished). \item\end{CompactList}\item 
virtual void {\bf slot\-Total\-Size} ({\bf KIO::Job} $\ast$, KIO::filesize\_\-t {\bf size})\label{classKIO_1_1StatusbarProgress_i1}

\item 
virtual void {\bf slot\-Percent} ({\bf KIO::Job} $\ast$, unsigned long percent)\label{classKIO_1_1StatusbarProgress_i2}

\item 
virtual void {\bf slot\-Speed} ({\bf KIO::Job} $\ast$, unsigned long bytes\_\-per\_\-second)\label{classKIO_1_1StatusbarProgress_i3}

\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Statusbar\-Progress} ({\bf QWidget} $\ast$parent, bool button=true)\label{classKIO_1_1StatusbarProgress_a0}

\item 
void {\bf set\-Job} ({\bf KIO::Job} $\ast$job)\label{classKIO_1_1StatusbarProgress_a2}

\end{CompactItemize}
\subsection*{Protected Types}
\begin{CompactItemize}
\item 
enum {\bf Mode} \{ {\bf None}, 
{\bf Label}, 
{\bf Progress}
 \}
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf set\-Mode} ()\label{classKIO_1_1StatusbarProgress_b0}

\item 
virtual bool {\bf event\-Filter} ({\bf QObject} $\ast$, {\bf QEvent} $\ast$)\label{classKIO_1_1StatusbarProgress_b1}

\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKIO_1_1StatusbarProgress_b2}

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
{\bf KProgress} $\ast$ {\bf m\_\-p\-Progress\-Bar}\label{classKIO_1_1StatusbarProgress_p0}

\item 
{\bf QLabel} $\ast$ {\bf m\_\-p\-Label}\label{classKIO_1_1StatusbarProgress_p1}

\item 
{\bf QPush\-Button} $\ast$ {\bf m\_\-p\-Button}\label{classKIO_1_1StatusbarProgress_p2}

\item 
KIO::filesize\_\-t {\bf m\_\-i\-Total\-Size}\label{classKIO_1_1StatusbarProgress_p3}

\item 
uint {\bf mode}\label{classKIO_1_1StatusbarProgress_p4}

\item 
bool {\bf m\_\-b\-Show\-Button}\label{classKIO_1_1StatusbarProgress_p5}

\item 
{\bf QBox\-Layout} $\ast$ {\bf box}\label{classKIO_1_1StatusbarProgress_p6}

\item 
{\bf QWidget\-Stack} $\ast$ {\bf stack}\label{classKIO_1_1StatusbarProgress_p7}

\end{CompactItemize}


\subsection{Detailed Description}
This is a special IO progress widget. IO progress widget for embedding in a statusbar. 

Similarly to Default\-Progress, it's purpose is to show a progress of the IO operation.

Instead of creating a separate window, this is only a widget that can be easily embedded in a statusbar.

Usage of {\bf Statusbar\-Progress}{\rm (p.\,\pageref{classKIO_1_1StatusbarProgress})} is little different. This dialog will be a part of some application. \small\begin{alltt}
 // create a dialog
 {\bf StatusbarProgress}{\rm (p.\,\pageref{classKIO_1_1StatusbarProgress})} *statusProgress;
 statusProgress = new {\bf StatusbarProgress}{\rm (p.\,\pageref{classKIO_1_1StatusbarProgress})}( statusBar() );
 statusBar()-$>$insertWidget( statusProgress, statusProgress-$>${\bf width()} , 0 );
 ...
 // create job and connect it to the progress
 CopyJob* job = {\bf KIO::copy}{\rm (p.\,\pageref{namespaceKIO_a215})}(...);
 statusProgress-$>$setJob( job );
 ...
 \end{alltt}\normalsize 


\begin{Desc}
\item[Author:]Matej Koss $<${\tt koss@miesto.sk}$>$ \end{Desc}




Definition at line 62 of file statusbarprogress.h.

\subsection{Member Function Documentation}
\index{KIO::StatusbarProgress@{KIO::Statusbar\-Progress}!slotClean@{slotClean}}
\index{slotClean@{slotClean}!KIO::StatusbarProgress@{KIO::Statusbar\-Progress}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::Statusbar\-Progress::slot\-Clean ()\hspace{0.3cm}{\tt  [virtual, slot]}}\label{classKIO_1_1StatusbarProgress_i0}


This method is called when the widget should be cleaned (after job is finished). 

redefine this for custom behavior. 

Reimplemented from {\bf KIO::Progress\-Base} {\rm (p.\,\pageref{classKIO_1_1ProgressBase_i1})}.

Definition at line 108 of file statusbarprogress.cpp.

References QLabel::clear(), and KProgress::set\-Value().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
statusbarprogress.h\item 
statusbarprogress.cpp\end{CompactItemize}
