\section{KIO::File\-Copy\-Job Class Reference}
\label{classKIO_1_1FileCopyJob}\index{KIO::FileCopyJob@{KIO::FileCopyJob}}
The {\bf File\-Copy\-Job}{\rm (p.\,\pageref{classKIO_1_1FileCopyJob})} copies data from one place to another.  


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

Inheritance diagram for KIO::File\-Copy\-Job:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=65pt]{classKIO_1_1FileCopyJob__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KIO::File\-Copy\-Job:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=259pt]{classKIO_1_1FileCopyJob__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{CompactItemize}
\item 
void {\bf slot\-Start} ()\label{classKIO_1_1FileCopyJob_i0}

\item 
void {\bf slot\-Data} ({\bf KIO::Job} $\ast$, const {\bf QByte\-Array} \&data)\label{classKIO_1_1FileCopyJob_i1}

\item 
void {\bf slot\-Data\-Req} ({\bf KIO::Job} $\ast$, {\bf QByte\-Array} \&data)\label{classKIO_1_1FileCopyJob_i2}

\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf File\-Copy\-Job} (const {\bf KURL} \&src, const {\bf KURL} \&dest, int permissions, bool move, bool overwrite, bool resume, bool show\-Progress\-Info)
\item 
void {\bf set\-Source\-Size64} ({\bf KIO::filesize\_\-t} size)
\item 
void {\bf set\-Source\-Size} (off\_\-t size) KDE\_\-DEPRECATED
\item 
{\bf KURL} {\bf src\-URL} () const 
\item 
{\bf KURL} {\bf dest\-URL} () const 
\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
virtual void {\bf slot\-Result} ({\bf KIO::Job} $\ast$job)
\item 
void {\bf slot\-Processed\-Size} ({\bf KIO::Job} $\ast$job, {\bf KIO::filesize\_\-t} size)
\item 
void {\bf slot\-Total\-Size} ({\bf KIO::Job} $\ast$job, {\bf KIO::filesize\_\-t} size)
\item 
void {\bf slot\-Percent} ({\bf KIO::Job} $\ast$job, unsigned long pct)
\item 
void {\bf slot\-Can\-Resume} ({\bf KIO::Job} $\ast$job, {\bf KIO::filesize\_\-t} offset)
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf start\-Copy\-Job} ()\label{classKIO_1_1FileCopyJob_b0}

\item 
void {\bf start\-Copy\-Job} (const {\bf KURL} \&slave\_\-url)\label{classKIO_1_1FileCopyJob_b1}

\item 
void {\bf start\-Rename\-Job} (const {\bf KURL} \&slave\_\-url)\label{classKIO_1_1FileCopyJob_b2}

\item 
void {\bf start\-Data\-Pump} ()\label{classKIO_1_1FileCopyJob_b3}

\item 
void {\bf connect\-Subjob} ({\bf Simple\-Job} $\ast$job)\label{classKIO_1_1FileCopyJob_b4}

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

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
{\bf KURL} {\bf m\_\-src}\label{classKIO_1_1FileCopyJob_p0}

\item 
{\bf KURL} {\bf m\_\-dest}\label{classKIO_1_1FileCopyJob_p1}

\item 
int {\bf m\_\-permissions}\label{classKIO_1_1FileCopyJob_p2}

\item 
bool {\bf m\_\-move}:1\label{classKIO_1_1FileCopyJob_p3}

\item 
bool {\bf m\_\-overwrite}:1\label{classKIO_1_1FileCopyJob_p4}

\item 
bool {\bf m\_\-resume}:1\label{classKIO_1_1FileCopyJob_p5}

\item 
bool {\bf m\_\-can\-Resume}:1\label{classKIO_1_1FileCopyJob_p6}

\item 
bool {\bf m\_\-resume\-Answer\-Sent}:1\label{classKIO_1_1FileCopyJob_p7}

\item 
{\bf QByte\-Array} {\bf m\_\-buffer}\label{classKIO_1_1FileCopyJob_p8}

\item 
{\bf Simple\-Job} $\ast$ {\bf m\_\-move\-Job}\label{classKIO_1_1FileCopyJob_p9}

\item 
{\bf Simple\-Job} $\ast$ {\bf m\_\-copy\-Job}\label{classKIO_1_1FileCopyJob_p10}

\item 
{\bf Transfer\-Job} $\ast$ {\bf m\_\-get\-Job}\label{classKIO_1_1FileCopyJob_p11}

\item 
{\bf Transfer\-Job} $\ast$ {\bf m\_\-put\-Job}\label{classKIO_1_1FileCopyJob_p12}

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

\end{CompactItemize}


\subsection{Detailed Description}
The {\bf File\-Copy\-Job}{\rm (p.\,\pageref{classKIO_1_1FileCopyJob})} copies data from one place to another. 

\begin{Desc}
\item[See also:]{\bf KIO::file\_\-copy()}{\rm (p.\,\pageref{namespaceKIO_a224})} 

{\bf KIO::file\_\-move()}{\rm (p.\,\pageref{namespaceKIO_a225})} \end{Desc}




Definition at line 1209 of file jobclasses.h.

\subsection{Constructor \& Destructor Documentation}
\index{KIO::FileCopyJob@{KIO::File\-Copy\-Job}!FileCopyJob@{FileCopyJob}}
\index{FileCopyJob@{FileCopyJob}!KIO::FileCopyJob@{KIO::File\-Copy\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KIO::File\-Copy\-Job::File\-Copy\-Job (const {\bf KURL} \& {\em src}, const {\bf KURL} \& {\em dest}, int {\em permissions}, bool {\em move}, bool {\em overwrite}, bool {\em resume}, bool {\em show\-Progress\-Info})}\label{classKIO_1_1FileCopyJob_a0}


Do not create a {\bf File\-Copy\-Job}{\rm (p.\,\pageref{classKIO_1_1FileCopyJob})} directly. 

Use {\bf KIO::file\_\-move()}{\rm (p.\,\pageref{namespaceKIO_a225})} or {\bf KIO::file\_\-copy()}{\rm (p.\,\pageref{namespaceKIO_a224})} instead. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em src}]the source URL \item[{\em dest}]the destination URL \item[{\em permissions}]the permissions of the resulting resource \item[{\em move}]true to move, false to copy \item[{\em overwrite}]true to allow overwriting, false otherwise \item[{\em resume}]true to resume an operation, false otherwise \item[{\em show\-Progress\-Info}]true to show progress information to the user\end{description}
\end{Desc}


\subsection{Member Function Documentation}
\index{KIO::FileCopyJob@{KIO::File\-Copy\-Job}!setSourceSize64@{setSourceSize64}}
\index{setSourceSize64@{setSourceSize64}!KIO::FileCopyJob@{KIO::File\-Copy\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::File\-Copy\-Job::set\-Source\-Size64 ({\bf KIO::filesize\_\-t} {\em size})}\label{classKIO_1_1FileCopyJob_a2}


If you know the size of the source file, call this method to inform this job. 

It will be displayed in the \char`\"{}resume\char`\"{} dialog. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em size}]the size of the source file \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}
\index{KIO::FileCopyJob@{KIO::File\-Copy\-Job}!setSourceSize@{setSourceSize}}
\index{setSourceSize@{setSourceSize}!KIO::FileCopyJob@{KIO::File\-Copy\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::File\-Copy\-Job::set\-Source\-Size (off\_\-t {\em size})}\label{classKIO_1_1FileCopyJob_a3}


\begin{Desc}
\item[{\bf Deprecated}]\end{Desc}
\index{KIO::FileCopyJob@{KIO::File\-Copy\-Job}!srcURL@{srcURL}}
\index{srcURL@{srcURL}!KIO::FileCopyJob@{KIO::File\-Copy\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KURL} KIO::File\-Copy\-Job::src\-URL () const\hspace{0.3cm}{\tt  [inline]}}\label{classKIO_1_1FileCopyJob_a4}


Returns the source URL. 

\begin{Desc}
\item[Returns:]the source URL\end{Desc}


Definition at line 1245 of file jobclasses.h.\index{KIO::FileCopyJob@{KIO::File\-Copy\-Job}!destURL@{destURL}}
\index{destURL@{destURL}!KIO::FileCopyJob@{KIO::File\-Copy\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KURL} KIO::File\-Copy\-Job::dest\-URL () const\hspace{0.3cm}{\tt  [inline]}}\label{classKIO_1_1FileCopyJob_a5}


Returns the destination URL. 

\begin{Desc}
\item[Returns:]the destination URL\end{Desc}


Definition at line 1251 of file jobclasses.h.\index{KIO::FileCopyJob@{KIO::File\-Copy\-Job}!slotResult@{slotResult}}
\index{slotResult@{slotResult}!KIO::FileCopyJob@{KIO::File\-Copy\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void KIO::File\-Copy\-Job::slot\-Result ({\bf KIO::Job} $\ast$ {\em job})\hspace{0.3cm}{\tt  [protected, virtual, slot]}}\label{classKIO_1_1FileCopyJob_j0}


Called whenever a subjob finishes. 

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


Reimplemented from {\bf KIO::Job} {\rm (p.\,\pageref{classKIO_1_1Job_j0})}.\index{KIO::FileCopyJob@{KIO::File\-Copy\-Job}!slotProcessedSize@{slotProcessedSize}}
\index{slotProcessedSize@{slotProcessedSize}!KIO::FileCopyJob@{KIO::File\-Copy\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::File\-Copy\-Job::slot\-Processed\-Size ({\bf KIO::Job} $\ast$ {\em job}, {\bf KIO::filesize\_\-t} {\em size})\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKIO_1_1FileCopyJob_j1}


Forward signal from subjob. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em job}]the job that emitted this signal \item[{\em size}]the processed size in bytes \end{description}
\end{Desc}
\index{KIO::FileCopyJob@{KIO::File\-Copy\-Job}!slotTotalSize@{slotTotalSize}}
\index{slotTotalSize@{slotTotalSize}!KIO::FileCopyJob@{KIO::File\-Copy\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::File\-Copy\-Job::slot\-Total\-Size ({\bf KIO::Job} $\ast$ {\em job}, {\bf KIO::filesize\_\-t} {\em size})\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKIO_1_1FileCopyJob_j2}


Forward signal from subjob. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em job}]the job that emitted this signal \item[{\em size}]the total size \end{description}
\end{Desc}
\index{KIO::FileCopyJob@{KIO::File\-Copy\-Job}!slotPercent@{slotPercent}}
\index{slotPercent@{slotPercent}!KIO::FileCopyJob@{KIO::File\-Copy\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::File\-Copy\-Job::slot\-Percent ({\bf KIO::Job} $\ast$ {\em job}, unsigned long {\em pct})\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKIO_1_1FileCopyJob_j3}


Forward signal from subjob. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em job}]the job that emitted this signal \item[{\em pct}]the percentage \end{description}
\end{Desc}
\index{KIO::FileCopyJob@{KIO::File\-Copy\-Job}!slotCanResume@{slotCanResume}}
\index{slotCanResume@{slotCanResume}!KIO::FileCopyJob@{KIO::File\-Copy\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::File\-Copy\-Job::slot\-Can\-Resume ({\bf KIO::Job} $\ast$ {\em job}, {\bf KIO::filesize\_\-t} {\em offset})\hspace{0.3cm}{\tt  [protected, slot]}}\label{classKIO_1_1FileCopyJob_j4}


Forward signal from subjob. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em job}]the job that emitted this signal \item[{\em offset}]the offset to resume from \end{description}
\end{Desc}


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