\section{UIServer Class Reference}
\label{classUIServer}\index{UIServer@{UIServer}}
It's purpose is to show progress of IO operations. Graphical server for progress information with an optional all-in-one progress window.  


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

Inheritance diagram for UIServer:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=165pt]{classUIServer__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for UIServer:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=285pt]{classUIServer__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
void {\bf slot\-Configure} ()\label{classUIServer_i0}

\item 
void {\bf slot\-Remove\-System\-Tray\-Icon} ()\label{classUIServer_i1}

\end{CompactItemize}
\subsection*{DCOP Member Functions}
\begin{CompactItemize}
\item 
int {\bf new\-Job} ({\bf QCString} app\-Id, bool show\-Progress)
\item 
ASYNC {\bf job\-Finished} (int id)\label{classUIServer_z1}

\item 
ASYNC {\bf total\-Size} (int id, unsigned long size)\label{classUIServer_z2}

\item 
ASYNC {\bf total\-Size64} (int id, {\bf KIO::filesize\_\-t} size)\label{classUIServer_z3}

\item 
ASYNC {\bf total\-Files} (int id, unsigned long files)\label{classUIServer_z4}

\item 
ASYNC {\bf total\-Dirs} (int id, unsigned long dirs)\label{classUIServer_z5}

\item 
ASYNC {\bf processed\-Size} (int id, unsigned long bytes)\label{classUIServer_z6}

\item 
ASYNC {\bf processed\-Size64} (int id, {\bf KIO::filesize\_\-t} bytes)\label{classUIServer_z7}

\item 
ASYNC {\bf processed\-Files} (int id, unsigned long files)\label{classUIServer_z8}

\item 
ASYNC {\bf processed\-Dirs} (int id, unsigned long dirs)\label{classUIServer_z9}

\item 
ASYNC {\bf percent} (int id, unsigned long ipercent)\label{classUIServer_z10}

\item 
ASYNC {\bf speed} (int id, unsigned long bytes\_\-per\_\-second)\label{classUIServer_z11}

\item 
ASYNC {\bf info\-Message} (int id, const {\bf QString} \&msg)\label{classUIServer_z12}

\item 
ASYNC {\bf copying} (int id, {\bf KURL} from, {\bf KURL} to)\label{classUIServer_z13}

\item 
ASYNC {\bf moving} (int id, {\bf KURL} from, {\bf KURL} to)\label{classUIServer_z14}

\item 
ASYNC {\bf deleting} (int id, {\bf KURL} url)\label{classUIServer_z15}

\item 
ASYNC {\bf transferring} (int id, {\bf KURL} url)\label{classUIServer_z16}

\item 
ASYNC {\bf creating\-Dir} (int id, {\bf KURL} dir)\label{classUIServer_z17}

\item 
ASYNC {\bf stating} (int id, {\bf KURL} url)\label{classUIServer_z18}

\item 
ASYNC {\bf mounting} (int id, {\bf QString} dev, {\bf QString} point)\label{classUIServer_z19}

\item 
ASYNC {\bf unmounting} (int id, {\bf QString} point)\label{classUIServer_z20}

\item 
ASYNC {\bf can\-Resume} (int id, unsigned long offset)\label{classUIServer_z21}

\item 
ASYNC {\bf can\-Resume64} (int id, {\bf KIO::filesize\_\-t} offset)\label{classUIServer_z22}

\item 
{\bf QByte\-Array} {\bf open\-Pass\-Dlg} (const {\bf KIO::Auth\-Info} \&info)
\item 
int {\bf message\-Box} (int id, int type, const {\bf QString} \&text, const {\bf QString} \&caption, const {\bf QString} \&button\-Yes, const {\bf QString} \&button\-No)
\item 
{\bf QByte\-Array} {\bf open\_\-Rename\-Dlg64} (int id, const {\bf QString} \&caption, const {\bf QString} \&src, const {\bf QString} \&dest, intmode, {\bf KIO::filesize\_\-t} size\-Src, {\bf KIO::filesize\_\-t} size\-Dest, unsigned longctime\-Src, unsigned longctime\-Dest, unsigned longmtime\-Src, unsigned longmtime\-Dest)
\item 
{\bf QByte\-Array} {\bf open\_\-Rename\-Dlg} (int id, const {\bf QString} \&caption, const {\bf QString} \&src, const {\bf QString} \&dest, intmode, unsigned long size\-Src, unsigned long size\-Dest, unsigned longctime\-Src, unsigned longctime\-Dest, unsigned longmtime\-Src, unsigned longmtime\-Dest)
\item 
int {\bf open\_\-Skip\-Dlg} (int id, intmulti, const {\bf QString} \&error\_\-text)
\item 
void {\bf set\-List\-Mode} (bool list)
\item 
void {\bf set\-Job\-Visible} (int id, bool visible)
\item 
void {\bf show\-SSLInfo\-Dialog} (const {\bf QString} \&url, const {\bf KIO::Meta\-Data} \&data, int mainwindow)
\item 
void {\bf show\-SSLInfo\-Dialog} (const {\bf QString} \&url, const {\bf KIO::Meta\-Data} \&data)
\item 
KSSLCert\-Dlg\-Ret {\bf show\-SSLCert\-Dialog} (const {\bf QString} \&host, const {\bf QString\-List} \&cert\-List, int mainwindow)\label{classUIServer_z32}

\item 
KSSLCert\-Dlg\-Ret {\bf show\-SSLCert\-Dialog} (const {\bf QString} \&host, const {\bf QString\-List} \&cert\-List)\label{classUIServer_z33}

\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static {\bf UIServer} $\ast$ {\bf create\-Instance} ()\label{classUIServer_e0}

\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
void {\bf slot\-Update} ()\label{classUIServer_j0}

\item 
void {\bf slot\-Quit} ()\label{classUIServer_j1}

\item 
void {\bf slot\-Cancel\-Current} ()\label{classUIServer_j2}

\item 
void {\bf slot\-Toggle\-Default\-Progress} ({\bf QList\-View\-Item} $\ast$)\label{classUIServer_j3}

\item 
void {\bf slot\-Selection} ()\label{classUIServer_j4}

\item 
void {\bf slot\-Job\-Canceled} ({\bf Progress\-Item} $\ast$)\label{classUIServer_j5}

\item 
void {\bf slot\-Apply\-Config} ()\label{classUIServer_j6}

\item 
void {\bf slot\-Show\-Context\-Menu} ({\bf KList\-View} $\ast$, {\bf QList\-View\-Item} $\ast$item, const {\bf QPoint} \&pos)\label{classUIServer_j7}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
{\bf Progress\-Item} $\ast$ {\bf find\-Item} (int id)\label{classUIServer_b0}

\item 
virtual void {\bf resize\-Event} ({\bf QResize\-Event} $\ast$e)\label{classUIServer_b1}

\item 
virtual bool {\bf query\-Close} ()\label{classUIServer_b2}

\item 
void {\bf set\-Item\-Visible} ({\bf Progress\-Item} $\ast$item, bool visible)\label{classUIServer_b3}

\item 
void {\bf apply\-Settings} ()\label{classUIServer_b4}

\item 
void {\bf read\-Settings} ()\label{classUIServer_b5}

\item 
void {\bf write\-Settings} ()\label{classUIServer_b6}

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
{\bf QTimer} $\ast$ {\bf update\-Timer}\label{classUIServer_p0}

\item 
{\bf List\-Progress} $\ast$ {\bf list\-Progress}\label{classUIServer_p1}

\item 
{\bf KTool\-Bar::Bar\-Position} {\bf toolbar\-Pos}\label{classUIServer_p2}

\item 
{\bf QString} {\bf properties}\label{classUIServer_p3}

\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf no\_\-bogus\_\-warning\_\-from\_\-gcc}\label{classUIServer_n0}

\end{CompactItemize}


\subsection{Detailed Description}
It's purpose is to show progress of IO operations. Graphical server for progress information with an optional all-in-one progress window. 

There is only one instance of this window for all jobs.

All IO operations ( jobs ) are displayed in this window, one line per operation. User can cancel operations with Cancel button on toolbar.

Double clicking an item in the list opens a small download window ( Default\-Progress ).

\begin{Desc}
\item[Author:]David Faure $<${\tt faure@kde.org}$>$ 

Matej Koss $<${\tt koss@miesto.sk}$>$ \end{Desc}




Definition at line 217 of file uiserver.h.

\subsection{Member Function Documentation}
\index{UIServer@{UIServer}!newJob@{newJob}}
\index{newJob@{newJob}!UIServer@{UIServer}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int UIServer::new\-Job ({\bf QCString} {\em app\-Id}, bool {\em show\-Progress})}\label{classUIServer_z0}


Signal a new job. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em app\-Id}]the DCOP application id of the job's parent application \end{description}
\end{Desc}
\begin{Desc}
\item[See also:]KIO::Observer::new\-Job \end{Desc}
\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em show\-Progress}]whether to popup the progress for the job. Usually true, but may be false when we use kio\_\-uiserver for other things, like SSL dialogs. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the job id \end{Desc}


Definition at line 746 of file uiserver.cpp.\index{UIServer@{UIServer}!openPassDlg@{openPassDlg}}
\index{openPassDlg@{openPassDlg}!UIServer@{UIServer}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QByte\-Array} UIServer::open\-Pass\-Dlg (const {\bf KIO::Auth\-Info} \& {\em info})}\label{classUIServer_z23}


\begin{Desc}
\item[{\bf Deprecated}](it blocks other apps). Use {\bf KIO::Password\-Dialog::get\-Name\-And\-Password}{\rm (p.\,\pageref{classKIO_1_1PasswordDialog_e0})} instead. To be removed in {\bf KDE} 4.0. \end{Desc}


Definition at line 1148 of file uiserver.cpp.\index{UIServer@{UIServer}!messageBox@{messageBox}}
\index{messageBox@{messageBox}!UIServer@{UIServer}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int UIServer::message\-Box (int {\em id}, int {\em type}, const {\bf QString} \& {\em text}, const {\bf QString} \& {\em caption}, const {\bf QString} \& {\em button\-Yes}, const {\bf QString} \& {\em button\-No})}\label{classUIServer_z24}


Popup a message box. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em type}]type of message box: Question\-Yes\-No, Warning\-Yes\-No, Warning\-Continue\-Cancel... This enum is defined in {\bf slavebase.h}{\rm (p.\,\pageref{slavebase_8h})}, it currently is: Question\-Yes\-No = 1, Warning\-Yes\-No = 2, Warning\-Continue\-Cancel = 3, Warning\-Yes\-No\-Cancel = 4, Information = 5, SSLMessage\-Box = 6 \item[{\em text}]Message string. May contain newlines. \item[{\em caption}]Message box title. \item[{\em button\-Yes}]The text for the first button. The default is i18n(\char`\"{}\&Yes\char`\"{}). \item[{\em button\-No}]The text for the second button. The default is i18n(\char`\"{}\&No\char`\"{}). Note: for Continue\-Cancel, button\-Yes is the continue button and button\-No is unused. and for Information, none is used. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]a button code, as defined in {\bf KMessage\-Box}, or 0 on communication error. \end{Desc}


Definition at line 1167 of file uiserver.cpp.\index{UIServer@{UIServer}!open_RenameDlg64@{open\_\-RenameDlg64}}
\index{open_RenameDlg64@{open\_\-RenameDlg64}!UIServer@{UIServer}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QByte\-Array} UIServer::open\_\-Rename\-Dlg64 (int {\em id}, const {\bf QString} \& {\em caption}, const {\bf QString} \& {\em src}, const {\bf QString} \& {\em dest}, intmode, {\bf KIO::filesize\_\-t} {\em size\-Src}, {\bf KIO::filesize\_\-t} {\em size\-Dest}, unsigned {\em longctime\-Src}, unsigned {\em longctime\-Dest}, unsigned {\em longmtime\-Src}, unsigned {\em longmtime\-Dest})}\label{classUIServer_z25}


\begin{Desc}
\item[{\bf Deprecated}](it blocks other apps). Use KIO::open\_\-Rename\-Dlg instead. To be removed in {\bf KDE} 4.0. \end{Desc}


Definition at line 1267 of file uiserver.cpp.\index{UIServer@{UIServer}!open_RenameDlg@{open\_\-RenameDlg}}
\index{open_RenameDlg@{open\_\-RenameDlg}!UIServer@{UIServer}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QByte\-Array} UIServer::open\_\-Rename\-Dlg (int {\em id}, const {\bf QString} \& {\em caption}, const {\bf QString} \& {\em src}, const {\bf QString} \& {\em dest}, intmode, unsigned long {\em size\-Src}, unsigned long {\em size\-Dest}, unsigned {\em longctime\-Src}, unsigned {\em longctime\-Dest}, unsigned {\em longmtime\-Src}, unsigned {\em longmtime\-Dest})}\label{classUIServer_z26}


\begin{Desc}
\item[{\bf Deprecated}](it blocks other apps). Use KIO::open\_\-Rename\-Dlg instead. To be removed in {\bf KDE} 4.0. \end{Desc}


Definition at line 1252 of file uiserver.cpp.\index{UIServer@{UIServer}!open_SkipDlg@{open\_\-SkipDlg}}
\index{open_SkipDlg@{open\_\-SkipDlg}!UIServer@{UIServer}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int UIServer::open\_\-Skip\-Dlg (int {\em id}, intmulti, const {\bf QString} \& {\em error\_\-text})}\label{classUIServer_z27}


\begin{Desc}
\item[{\bf Deprecated}](it blocks other apps). Use KIO::open\_\-Skip\-Dlg instead. To be removed in {\bf KDE} 4.0. \end{Desc}


Definition at line 1299 of file uiserver.cpp.\index{UIServer@{UIServer}!setListMode@{setListMode}}
\index{setListMode@{setListMode}!UIServer@{UIServer}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void UIServer::set\-List\-Mode (bool {\em list})}\label{classUIServer_z28}


Switch to or from list mode - called by the kcontrol module. 



Definition at line 1107 of file uiserver.cpp.\index{UIServer@{UIServer}!setJobVisible@{setJobVisible}}
\index{setJobVisible@{setJobVisible}!UIServer@{UIServer}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void UIServer::set\-Job\-Visible (int {\em id}, bool {\em visible})}\label{classUIServer_z29}


Hide or show a job. 

Typically, we hide a job while a \char`\"{}skip\char`\"{} or \char`\"{}rename\char`\"{} dialog is being shown for this job. This prevents killing it from the uiserver. 

Definition at line 806 of file uiserver.cpp.\index{UIServer@{UIServer}!showSSLInfoDialog@{showSSLInfoDialog}}
\index{showSSLInfoDialog@{showSSLInfoDialog}!UIServer@{UIServer}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void UIServer::show\-SSLInfo\-Dialog (const {\bf QString} \& {\em url}, const {\bf KIO::Meta\-Data} \& {\em data}, int {\em mainwindow})}\label{classUIServer_z30}


Show a SSL Information Dialog. 



Definition at line 1177 of file uiserver.cpp.\index{UIServer@{UIServer}!showSSLInfoDialog@{showSSLInfoDialog}}
\index{showSSLInfoDialog@{showSSLInfoDialog}!UIServer@{UIServer}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void UIServer::show\-SSLInfo\-Dialog (const {\bf QString} \& {\em url}, const {\bf KIO::Meta\-Data} \& {\em data})}\label{classUIServer_z31}


\begin{Desc}
\item[{\bf Deprecated}]\end{Desc}


Definition at line 1172 of file uiserver.cpp.

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