\section{KIO::Simple\-Job Class Reference}
\label{classKIO_1_1SimpleJob}\index{KIO::SimpleJob@{KIO::SimpleJob}}
A simple job (one url and one command).  


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

Inheritance diagram for KIO::Simple\-Job:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=65pt]{classKIO_1_1SimpleJob__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KIO::Simple\-Job:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=277pt]{classKIO_1_1SimpleJob__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
void {\bf slot\-Total\-Size} (KIO::filesize\_\-t data\_\-size)
\begin{CompactList}\small\item\em Forward signal from the slave Can also be called by the parent job, when it knows the size. \item\end{CompactList}\item 
virtual void {\bf slot\-Error} (int, const  {\bf QString} \&)\label{classKIO_1_1SimpleJob_i1}

\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Simple\-Job} (const  {\bf KURL} \&url, int command, const  {\bf QByte\-Array} \&packed\-Args, bool show\-Progress\-Info)\label{classKIO_1_1SimpleJob_a0}

\item 
const  {\bf KURL} \& {\bf url} () const \label{classKIO_1_1SimpleJob_a2}

\item 
virtual void {\bf kill} (bool quietly=true)
\begin{CompactList}\small\item\em Abort job. \item\end{CompactList}\item 
virtual void {\bf put\-On\-Hold} ()
\begin{CompactList}\small\item\em Abort job. \item\end{CompactList}\item 
virtual void {\bf start} (Slave $\ast$slave)\label{classKIO_1_1SimpleJob_a5}

\item 
void {\bf slave\-Done} ()\label{classKIO_1_1SimpleJob_a6}

\item 
Slave $\ast$ {\bf slave} () const \label{classKIO_1_1SimpleJob_a7}

\item 
int {\bf command} () const \label{classKIO_1_1SimpleJob_a8}

\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
void {\bf remove\-On\-Hold} ()
\begin{CompactList}\small\item\em Discard suspended slave. \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
virtual void {\bf slot\-Finished} ()
\begin{CompactList}\small\item\em Called when the slave marks the job as finished. \item\end{CompactList}\item 
void {\bf slot\-Warning} (const  {\bf QString} \&)\label{classKIO_1_1SimpleJob_j1}

\item 
void {\bf slot\-Info\-Message} (const  {\bf QString} \&)
\begin{CompactList}\small\item\em Called on a slave's info message. \item\end{CompactList}\item 
void {\bf slot\-Connected} ()
\begin{CompactList}\small\item\em Called on a slave's connected signal. \item\end{CompactList}\item 
void {\bf slot\-Processed\-Size} (KIO::filesize\_\-t data\_\-size)
\begin{CompactList}\small\item\em Forward signal from the slave. \item\end{CompactList}\item 
void {\bf slot\-Speed} (unsigned long bytes\_\-per\_\-second)
\begin{CompactList}\small\item\em Forward signal from the slave. \item\end{CompactList}\item 
virtual void {\bf slot\-Meta\-Data} (const  KIO::Meta\-Data \&\_\-meta\-Data)
\begin{CompactList}\small\item\em Meta\-Data from the slave is received. \item\end{CompactList}\item 
void {\bf slot\-Need\-Progress\-Id} ()\label{classKIO_1_1SimpleJob_j7}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKIO_1_1SimpleJob_b0}

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
Slave $\ast$ {\bf m\_\-slave}\label{classKIO_1_1SimpleJob_p0}

\item 
{\bf QByte\-Array} {\bf m\_\-packed\-Args}\label{classKIO_1_1SimpleJob_p1}

\item 
{\bf KURL} {\bf m\_\-url}\label{classKIO_1_1SimpleJob_p2}

\item 
{\bf KURL} {\bf m\_\-sub\-Url}\label{classKIO_1_1SimpleJob_p3}

\item 
int {\bf m\_\-command}\label{classKIO_1_1SimpleJob_p4}

\item 
KIO::filesize\_\-t {\bf m\_\-total\-Size}\label{classKIO_1_1SimpleJob_p5}

\end{CompactItemize}


\subsection{Detailed Description}
A simple job (one url and one command). 

This is the base class for all jobs that are scheduled. Other jobs are high-level jobs (Copy\-Job, {\bf Delete\-Job}{\rm (p.\,\pageref{classKIO_1_1DeleteJob})}, {\bf File\-Copy\-Job}{\rm (p.\,\pageref{classKIO_1_1FileCopyJob})}...) that manage subjobs but aren't scheduled directly. 



Definition at line 364 of file jobclasses.h.

\subsection{Member Function Documentation}
\index{KIO::SimpleJob@{KIO::Simple\-Job}!kill@{kill}}
\index{kill@{kill}!KIO::SimpleJob@{KIO::Simple\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Simple\-Job::kill (bool {\em quietly} = true)\hspace{0.3cm}{\tt  [virtual]}}\label{classKIO_1_1SimpleJob_a3}


Abort job. 

This kills all subjobs and deletes the job. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em quietly}]if true, {\bf Job}{\rm (p.\,\pageref{classKIO_1_1Job})} will emit signal {\bf result}{\rm (p.\,\pageref{classKIO_1_1Job_l0})} Should only be set to false when the user kills the job (from kio\_\-uiserver), not when you want to abort a job. \end{description}
\end{Desc}


Reimplemented from {\bf KIO::Job} {\rm (p.\,\pageref{classKIO_1_1Job_a1})}.

Definition at line 380 of file job.cpp.

Referenced by put\-On\-Hold().\index{KIO::SimpleJob@{KIO::Simple\-Job}!putOnHold@{putOnHold}}
\index{putOnHold@{putOnHold}!KIO::SimpleJob@{KIO::Simple\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Simple\-Job::put\-On\-Hold ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKIO_1_1SimpleJob_a4}


Abort job. 

Suspends slave to be reused by another job for the same request. 

Definition at line 387 of file job.cpp.

References kill().

Referenced by KRun::found\-Mime\-Type().\index{KIO::SimpleJob@{KIO::Simple\-Job}!removeOnHold@{removeOnHold}}
\index{removeOnHold@{removeOnHold}!KIO::SimpleJob@{KIO::Simple\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Simple\-Job::remove\-On\-Hold ()\hspace{0.3cm}{\tt  [static]}}\label{classKIO_1_1SimpleJob_e0}


Discard suspended slave. 



Definition at line 394 of file job.cpp.\index{KIO::SimpleJob@{KIO::Simple\-Job}!slotTotalSize@{slotTotalSize}}
\index{slotTotalSize@{slotTotalSize}!KIO::SimpleJob@{KIO::Simple\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Simple\-Job::slot\-Total\-Size (KIO::filesize\_\-t {\em data\_\-size})\hspace{0.3cm}{\tt  [slot]}}\label{classKIO_1_1SimpleJob_i0}


Forward signal from the slave Can also be called by the parent job, when it knows the size. 



Definition at line 542 of file job.cpp.

References KIO::Job::total\-Size().

Referenced by slot\-Processed\-Size().\index{KIO::SimpleJob@{KIO::Simple\-Job}!slotFinished@{slotFinished}}
\index{slotFinished@{slotFinished}!KIO::SimpleJob@{KIO::Simple\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Simple\-Job::slot\-Finished ()\hspace{0.3cm}{\tt  [protected, virtual, slot]}}\label{classKIO_1_1SimpleJob_j0}


Called when the slave marks the job as finished. 



Reimplemented in {\bf KIO::Dav\-Job} {\rm (p.\,\pageref{classKIO_1_1DavJob_j0})}, and {\bf KIO::Transfer\-Job} {\rm (p.\,\pageref{classKIO_1_1TransferJob_j1})}.

Definition at line 476 of file job.cpp.

References KURL::directory(), KIO::Job::emit\-Result(), QPtr\-List$<$ Job $>$::is\-Empty(), and KURL::set\-Path().\index{KIO::SimpleJob@{KIO::Simple\-Job}!slotInfoMessage@{slotInfoMessage}}
\index{slotInfoMessage@{slotInfoMessage}!KIO::SimpleJob@{KIO::Simple\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Simple\-Job::slot\-Info\-Message (const {\bf QString} \&)\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKIO_1_1SimpleJob_j2}


Called on a slave's info message. 



Definition at line 525 of file job.cpp.

References KIO::Job::info\-Message().\index{KIO::SimpleJob@{KIO::Simple\-Job}!slotConnected@{slotConnected}}
\index{slotConnected@{slotConnected}!KIO::SimpleJob@{KIO::Simple\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Simple\-Job::slot\-Connected ()\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKIO_1_1SimpleJob_j3}


Called on a slave's connected signal. 



Definition at line 530 of file job.cpp.

References KIO::Job::connected().\index{KIO::SimpleJob@{KIO::Simple\-Job}!slotProcessedSize@{slotProcessedSize}}
\index{slotProcessedSize@{slotProcessedSize}!KIO::SimpleJob@{KIO::Simple\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Simple\-Job::slot\-Processed\-Size (KIO::filesize\_\-t {\em data\_\-size})\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKIO_1_1SimpleJob_j4}


Forward signal from the slave. 



Definition at line 548 of file job.cpp.

References KIO::Job::emit\-Percent(), KIO::Job::processed\-Size(), and slot\-Total\-Size().\index{KIO::SimpleJob@{KIO::Simple\-Job}!slotSpeed@{slotSpeed}}
\index{slotSpeed@{slotSpeed}!KIO::SimpleJob@{KIO::Simple\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Simple\-Job::slot\-Speed (unsigned long {\em bytes\_\-per\_\-second})\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKIO_1_1SimpleJob_j5}


Forward signal from the slave. 



Definition at line 558 of file job.cpp.

References KIO::Job::emit\-Speed().\index{KIO::SimpleJob@{KIO::Simple\-Job}!slotMetaData@{slotMetaData}}
\index{slotMetaData@{slotMetaData}!KIO::SimpleJob@{KIO::Simple\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Simple\-Job::slot\-Meta\-Data (const KIO::Meta\-Data \& {\em \_\-meta\-Data})\hspace{0.3cm}{\tt  [protected, virtual, slot]}}\label{classKIO_1_1SimpleJob_j6}


Meta\-Data from the slave is received. 



Definition at line 564 of file job.cpp.

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