\section{KIO::Delete\-Job Class Reference}
\label{classKIO_1_1DeleteJob}\index{KIO::DeleteJob@{KIO::DeleteJob}}
A more complex {\bf Job}{\rm (p.\,\pageref{classKIO_1_1Job})} to delete files and directories.  


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

Inheritance diagram for KIO::Delete\-Job:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=60pt]{classKIO_1_1DeleteJob__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KIO::Delete\-Job:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=233pt]{classKIO_1_1DeleteJob__coll__graph}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf total\-Files} ({\bf KIO::Job} $\ast$job, unsigned long files)
\item 
void {\bf total\-Dirs} ({\bf KIO::Job} $\ast$job, unsigned long dirs)
\item 
void {\bf processed\-Files} ({\bf KIO::Job} $\ast$job, unsigned long files)
\item 
void {\bf processed\-Dirs} ({\bf KIO::Job} $\ast$job, unsigned long dirs)
\item 
void {\bf deleting} ({\bf KIO::Job} $\ast$job, const {\bf KURL} \&file)
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Delete\-Job} (const {\bf KURL::List} \&src, bool shred, bool show\-Progress\-Info)
\item 
{\bf KURL::List} {\bf urls} () const 
\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
void {\bf slot\-Start} ()\label{classKIO_1_1DeleteJob_j0}

\item 
void {\bf slot\-Entries} ({\bf KIO::Job} $\ast$, const {\bf KIO::UDSEntry\-List} \&list)\label{classKIO_1_1DeleteJob_j1}

\item 
virtual void {\bf slot\-Result} ({\bf KIO::Job} $\ast$job)
\item 
void {\bf slot\-Processed\-Size} ({\bf KIO::Job} $\ast$, {\bf KIO::filesize\_\-t} data\_\-size)
\item 
void {\bf slot\-Report} ()\label{classKIO_1_1DeleteJob_j4}

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

\end{CompactItemize}


\subsection{Detailed Description}
A more complex {\bf Job}{\rm (p.\,\pageref{classKIO_1_1Job})} to delete files and directories. 

Don't create the job directly, but use {\bf KIO::del()}{\rm (p.\,\pageref{namespaceKIO_a240})} instead.

\begin{Desc}
\item[See also:]{\bf KIO::del()}{\rm (p.\,\pageref{namespaceKIO_a240})} \end{Desc}




Definition at line 1698 of file jobclasses.h.

\subsection{Constructor \& Destructor Documentation}
\index{KIO::DeleteJob@{KIO::Delete\-Job}!DeleteJob@{DeleteJob}}
\index{DeleteJob@{DeleteJob}!KIO::DeleteJob@{KIO::Delete\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Delete\-Job::Delete\-Job (const {\bf KURL::List} \& {\em src}, bool {\em shred}, bool {\em show\-Progress\-Info})}\label{classKIO_1_1DeleteJob_a0}


Do not create a {\bf Delete\-Job}{\rm (p.\,\pageref{classKIO_1_1DeleteJob})} directly. 

Use {\bf KIO::del()}{\rm (p.\,\pageref{namespaceKIO_a240})} instead.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em src}]the list of URLs to delete \item[{\em shred}]true to shred (make sure that data is not recoverable)a \item[{\em show\-Progress\-Info}]true to show progress information to the user \end{description}
\end{Desc}
\begin{Desc}
\item[See also:]{\bf KIO::del()}{\rm (p.\,\pageref{namespaceKIO_a240})}\end{Desc}


Definition at line 3783 of file job.cpp.

References QObject::connect(), QTimer::single\-Shot(), QTimer::start(), total\-Dirs(), and total\-Files().

\subsection{Member Function Documentation}
\index{KIO::DeleteJob@{KIO::Delete\-Job}!urls@{urls}}
\index{urls@{urls}!KIO::DeleteJob@{KIO::Delete\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KURL::List} KIO::Delete\-Job::urls () const\hspace{0.3cm}{\tt  [inline]}}\label{classKIO_1_1DeleteJob_a1}


Returns the list of URLs. 

\begin{Desc}
\item[Returns:]the list of URLs.\end{Desc}


Definition at line 1717 of file jobclasses.h.\index{KIO::DeleteJob@{KIO::Delete\-Job}!totalFiles@{totalFiles}}
\index{totalFiles@{totalFiles}!KIO::DeleteJob@{KIO::Delete\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::Delete\-Job::total\-Files ({\bf KIO::Job} $\ast$ {\em job}, unsigned long {\em files})\hspace{0.3cm}{\tt  [signal]}}\label{classKIO_1_1DeleteJob_l0}


Emitted when the total number of files is known. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em job}]the job that emitted this signal \item[{\em files}]the total number of files\end{description}
\end{Desc}


Referenced by Delete\-Job().\index{KIO::DeleteJob@{KIO::Delete\-Job}!totalDirs@{totalDirs}}
\index{totalDirs@{totalDirs}!KIO::DeleteJob@{KIO::Delete\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::Delete\-Job::total\-Dirs ({\bf KIO::Job} $\ast$ {\em job}, unsigned long {\em dirs})\hspace{0.3cm}{\tt  [signal]}}\label{classKIO_1_1DeleteJob_l1}


Emitted when the toal number of direcotries is known. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em job}]the job that emitted this signal \item[{\em dirs}]the total number of directories\end{description}
\end{Desc}


Referenced by Delete\-Job().\index{KIO::DeleteJob@{KIO::Delete\-Job}!processedFiles@{processedFiles}}
\index{processedFiles@{processedFiles}!KIO::DeleteJob@{KIO::Delete\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::Delete\-Job::processed\-Files ({\bf KIO::Job} $\ast$ {\em job}, unsigned long {\em files})\hspace{0.3cm}{\tt  [signal]}}\label{classKIO_1_1DeleteJob_l2}


Sends the number of processed files. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em job}]the job that emitted this signal \item[{\em files}]the number of processed files\end{description}
\end{Desc}
\index{KIO::DeleteJob@{KIO::Delete\-Job}!processedDirs@{processedDirs}}
\index{processedDirs@{processedDirs}!KIO::DeleteJob@{KIO::Delete\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::Delete\-Job::processed\-Dirs ({\bf KIO::Job} $\ast$ {\em job}, unsigned long {\em dirs})\hspace{0.3cm}{\tt  [signal]}}\label{classKIO_1_1DeleteJob_l3}


Sends the number of processed directories. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em job}]the job that emitted this signal \item[{\em dirs}]the number of processed dirs\end{description}
\end{Desc}
\index{KIO::DeleteJob@{KIO::Delete\-Job}!deleting@{deleting}}
\index{deleting@{deleting}!KIO::DeleteJob@{KIO::Delete\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::Delete\-Job::deleting ({\bf KIO::Job} $\ast$ {\em job}, const {\bf KURL} \& {\em file})\hspace{0.3cm}{\tt  [signal]}}\label{classKIO_1_1DeleteJob_l4}


Sends the URL of the file that is currently being deleted. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em job}]the job that emitted this signal \item[{\em file}]the URL of the file or directory that is being deleted\end{description}
\end{Desc}
\index{KIO::DeleteJob@{KIO::Delete\-Job}!slotResult@{slotResult}}
\index{slotResult@{slotResult}!KIO::DeleteJob@{KIO::Delete\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Delete\-Job::slot\-Result ({\bf KIO::Job} $\ast$ {\em job})\hspace{0.3cm}{\tt  [protected, virtual, slot]}}\label{classKIO_1_1DeleteJob_j2}


Called whenever a subjob finishes. 

Default implementation checks for errors and propagates to parent job, then calls remove\-Subjob. Override if you don't want subjobs errors to be propagated. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em job}]the subjob \end{description}
\end{Desc}
\begin{Desc}
\item[See also:]{\bf result()}{\rm (p.\,\pageref{classKIO_1_1Job_l0})} \end{Desc}


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

Definition at line 4077 of file job.cpp.

References KIO::Job::add\-Subjob(), QValue\-List::append(), QValue\-List::begin(), QObject::connect(), KURL::directory(), QValue\-List::end(), KIO::Job::error(), QPtr\-List::is\-Empty(), KURL::is\-Local\-File(), KIO::list\-Recursive(), KURL::path(), QPtr\-List::remove(), KIO::Scheduler::schedule\-Job(), KIO::List\-Job::set\-Unrestricted(), KIO::Job::slot\-Result(), KIO::UDS\_\-FILE\_\-TYPE, KIO::UDS\_\-LINK\_\-DEST, and KIO::UDS\_\-SIZE.\index{KIO::DeleteJob@{KIO::Delete\-Job}!slotProcessedSize@{slotProcessedSize}}
\index{slotProcessedSize@{slotProcessedSize}!KIO::DeleteJob@{KIO::Delete\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Delete\-Job::slot\-Processed\-Size ({\bf KIO::Job} $\ast$, {\bf KIO::filesize\_\-t} {\em data\_\-size})\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKIO_1_1DeleteJob_j3}


Forward signal from subjob. 



Definition at line 4048 of file job.cpp.

References KIO::Job::percent(), KIO::Job::processed\-Size(), and KIO::Job::set\-Processed\-Size().

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