\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=79pt]{classKIO_1_1StatusbarProgress__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KIO::Statusbar\-Progress:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=292pt]{classKIO_1_1StatusbarProgress__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
virtual void {\bf slot\-Clean} ()
\item 
virtual void {\bf slot\-Total\-Size} ({\bf KIO::Job} $\ast$, {\bf KIO::filesize\_\-t} {\bf size})
\item 
virtual void {\bf slot\-Percent} ({\bf KIO::Job} $\ast$, unsigned long percent)
\item 
virtual void {\bf slot\-Speed} ({\bf KIO::Job} $\ast$, unsigned long bytes\_\-per\_\-second)
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Statusbar\-Progress} ({\bf QWidget} $\ast$parent, bool button=true)
\item 
void {\bf set\-Job} ({\bf KIO::Job} $\ast$job)
\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 
{\bf 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. 

\footnotesize\begin{verbatim} // create a dialog
 StatusbarProgress *statusProgress;
 statusProgress = new StatusbarProgress( statusBar() );
 statusBar()->insertWidget( statusProgress, statusProgress->width() , 0 );
 ...
 // create job and connect it to the progress
 CopyJob* job = KIO::copy(...);
 statusProgress->setJob( job );
 ...
\end{verbatim}
\normalsize


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




Definition at line 60 of file statusbarprogress.h.

\subsection{Constructor \& Destructor Documentation}
\index{KIO::StatusbarProgress@{KIO::Statusbar\-Progress}!StatusbarProgress@{StatusbarProgress}}
\index{StatusbarProgress@{StatusbarProgress}!KIO::StatusbarProgress@{KIO::Statusbar\-Progress}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KIO::Statusbar\-Progress::Statusbar\-Progress ({\bf QWidget} $\ast$ {\em parent}, bool {\em button} = {\tt true})}\label{classKIO_1_1StatusbarProgress_a0}


Creates a new {\bf Statusbar\-Progress}{\rm (p.\,\pageref{classKIO_1_1StatusbarProgress})}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em parent}]the parent of this widget \item[{\em button}]true to add an abort button. The button will be connected to {\bf Progress\-Base::slot\-Stop()}{\rm (p.\,\pageref{classKIO_1_1ProgressBase_i0})} \end{description}
\end{Desc}


Definition at line 35 of file statusbarprogress.cpp.

References QWidget\-Stack::add\-Widget(), QBox\-Layout::add\-Widget(), QWidget::font\-Metrics(), QLabel::set\-Alignment(), QWidget::set\-Minimum\-Size(), KIO::Progress\-Base::set\-Only\-Clean(), QWidget::size\-Hint(), and KIO::Progress\-Base::slot\-Stop().

\subsection{Member Function Documentation}
\index{KIO::StatusbarProgress@{KIO::Statusbar\-Progress}!setJob@{setJob}}
\index{setJob@{setJob}!KIO::StatusbarProgress@{KIO::Statusbar\-Progress}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::Statusbar\-Progress::set\-Job ({\bf KIO::Job} $\ast$ {\em job})}\label{classKIO_1_1StatusbarProgress_a2}


Sets the job to monitor. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em job}]the job to monitor \end{description}
\end{Desc}


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

Definition at line 74 of file statusbarprogress.cpp.\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 111 of file statusbarprogress.cpp.

References QLabel::clear(), and KProgress::set\-Value().\index{KIO::StatusbarProgress@{KIO::Statusbar\-Progress}!slotTotalSize@{slotTotalSize}}
\index{slotTotalSize@{slotTotalSize}!KIO::StatusbarProgress@{KIO::Statusbar\-Progress}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::Statusbar\-Progress::slot\-Total\-Size ({\bf KIO::Job} $\ast$, {\bf KIO::filesize\_\-t} {\em size})\hspace{0.3cm}{\tt  [virtual, slot]}}\label{classKIO_1_1StatusbarProgress_i1}


Called to set the total size. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em job}]the {\bf KIO::Job}{\rm (p.\,\pageref{classKIO_1_1Job})} \item[{\em bytes}]the total size in bytes \end{description}
\end{Desc}


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

Definition at line 121 of file statusbarprogress.cpp.\index{KIO::StatusbarProgress@{KIO::Statusbar\-Progress}!slotPercent@{slotPercent}}
\index{slotPercent@{slotPercent}!KIO::StatusbarProgress@{KIO::Statusbar\-Progress}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::Statusbar\-Progress::slot\-Percent ({\bf KIO::Job} $\ast$, unsigned long {\em percent})\hspace{0.3cm}{\tt  [virtual, slot]}}\label{classKIO_1_1StatusbarProgress_i2}


Called to set the percentage. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em job}]the {\bf KIO::Job}{\rm (p.\,\pageref{classKIO_1_1Job})} \item[{\em percent}]the percentage \end{description}
\end{Desc}


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

Definition at line 125 of file statusbarprogress.cpp.

References KProgress::set\-Value().\index{KIO::StatusbarProgress@{KIO::Statusbar\-Progress}!slotSpeed@{slotSpeed}}
\index{slotSpeed@{slotSpeed}!KIO::StatusbarProgress@{KIO::Statusbar\-Progress}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::Statusbar\-Progress::slot\-Speed ({\bf KIO::Job} $\ast$, unsigned long {\em bytes\_\-per\_\-second})\hspace{0.3cm}{\tt  [virtual, slot]}}\label{classKIO_1_1StatusbarProgress_i3}


Called to set the speed. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em job}]the {\bf KIO::Job}{\rm (p.\,\pageref{classKIO_1_1Job})} \item[{\em speed}]the speed in bytes/second \end{description}
\end{Desc}


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

Definition at line 130 of file statusbarprogress.cpp.

References QLabel::set\-Text().

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