\section{KIO::Mimetype\-Job Class Reference}
\label{classKIO_1_1MimetypeJob}\index{KIO::MimetypeJob@{KIO::MimetypeJob}}
A {\bf Mimetype\-Job}{\rm (p.\,\pageref{classKIO_1_1MimetypeJob})} is a {\bf Transfer\-Job}{\rm (p.\,\pageref{classKIO_1_1TransferJob})} that allows you to get the mime type of an URL.  


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

Inheritance diagram for KIO::Mimetype\-Job:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=67pt]{classKIO_1_1MimetypeJob__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KIO::Mimetype\-Job:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=272pt]{classKIO_1_1MimetypeJob__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Mimetype\-Job} (const {\bf KURL} \&url, int command, const {\bf QByte\-Array} \&packed\-Args, bool show\-Progress\-Info)
\item 
{\bf QString} {\bf mimetype} () const 
\item 
virtual void {\bf start} (Slave $\ast$slave)\label{classKIO_1_1MimetypeJob_a2}

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

\end{CompactItemize}


\subsection{Detailed Description}
A {\bf Mimetype\-Job}{\rm (p.\,\pageref{classKIO_1_1MimetypeJob})} is a {\bf Transfer\-Job}{\rm (p.\,\pageref{classKIO_1_1TransferJob})} that allows you to get the mime type of an URL. 

Don't create directly, but use {\bf KIO::mimetype()}{\rm (p.\,\pageref{namespaceKIO_a223})} instead. \begin{Desc}
\item[See also:]{\bf KIO::mimetype()}{\rm (p.\,\pageref{namespaceKIO_a223})} \end{Desc}




Definition at line 1167 of file jobclasses.h.

\subsection{Constructor \& Destructor Documentation}
\index{KIO::MimetypeJob@{KIO::Mimetype\-Job}!MimetypeJob@{MimetypeJob}}
\index{MimetypeJob@{MimetypeJob}!KIO::MimetypeJob@{KIO::Mimetype\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Mimetype\-Job::Mimetype\-Job (const {\bf KURL} \& {\em url}, int {\em command}, const {\bf QByte\-Array} \& {\em packed\-Args}, bool {\em show\-Progress\-Info})}\label{classKIO_1_1MimetypeJob_a0}


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

Use {\bf KIO::mimetype()}{\rm (p.\,\pageref{namespaceKIO_a223})} instead. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the url to get \item[{\em command}]the command to issue \item[{\em packed\-Args}]the arguments \item[{\em show\-Progress\-Info}]true to show progress information to the user\end{description}
\end{Desc}


Definition at line 1403 of file job.cpp.

\subsection{Member Function Documentation}
\index{KIO::MimetypeJob@{KIO::Mimetype\-Job}!mimetype@{mimetype}}
\index{mimetype@{mimetype}!KIO::MimetypeJob@{KIO::Mimetype\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KIO::Mimetype\-Job::mimetype () const\hspace{0.3cm}{\tt  [inline]}}\label{classKIO_1_1MimetypeJob_a1}


Call this in the slot connected to result, and only after making sure no error happened. 

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


Definition at line 1186 of file jobclasses.h.\index{KIO::MimetypeJob@{KIO::Mimetype\-Job}!slotFinished@{slotFinished}}
\index{slotFinished@{slotFinished}!KIO::MimetypeJob@{KIO::Mimetype\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Mimetype\-Job::slot\-Finished ()\hspace{0.3cm}{\tt  [protected, virtual, slot]}}\label{classKIO_1_1MimetypeJob_j0}


Called when the slave marks the job as finished. 



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

Definition at line 1415 of file job.cpp.

References KIO::Scheduler::do\-Job(), endl(), QString::from\-Latin1(), KURL::is\-Empty(), KURL::is\-Valid(), kd\-Debug(), KIO::Transfer\-Job::mimetype(), KIO::Transfer\-Job::permanent\-Redirection(), KIO::Job::query\-Meta\-Data(), and KIO::Transfer\-Job::slot\-Finished().

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