\section{KIO::Meta\-Info\-Job Class Reference}
\label{classKIO_1_1MetaInfoJob}\index{KIO::MetaInfoJob@{KIO::MetaInfoJob}}
\begin{Desc}
\item[Since:]3.1 \end{Desc}
 


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

Inheritance diagram for KIO::Meta\-Info\-Job:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=67pt]{classKIO_1_1MetaInfoJob__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KIO::Meta\-Info\-Job:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=277pt]{classKIO_1_1MetaInfoJob__coll__graph}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{CompactItemize}
\item 
void {\bf got\-Meta\-Info} (const  {\bf KFile\-Item} $\ast$item)
\begin{CompactList}\small\item\em Emitted when the meta info for {\tt item} has been successfully retrieved. \item\end{CompactList}\item 
void {\bf failed} (const  {\bf KFile\-Item} $\ast$item)
\begin{CompactList}\small\item\em Emitted when metainfo for {\tt item} could not be extracted, either because a plugin for its MIME type does not exist, or because something went wrong. \item\end{CompactList}\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Meta\-Info\-Job} (const  {\bf KFile\-Item\-List} \&items, bool delete\-Items=false)
\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item 
void {\bf remove\-Item} (const  {\bf KFile\-Item} $\ast$item)
\begin{CompactList}\small\item\em Removes an item from metainfo extraction. \item\end{CompactList}\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
{\bf QString\-List} {\bf available\-Plugins} ()
\item 
{\bf QString\-List} {\bf supported\-Mime\-Types} ()
\end{CompactItemize}
\subsection*{Protected Slots}
\begin{CompactItemize}
\item 
virtual void {\bf slot\-Result} ({\bf KIO::Job} $\ast$job)
\begin{CompactList}\small\item\em Called whenever a subjob finishes. \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf get\-Meta\-Info} ()\label{classKIO_1_1MetaInfoJob_b0}

\end{CompactItemize}


\subsection{Detailed Description}
\begin{Desc}
\item[Since:]3.1 \end{Desc}




Definition at line 33 of file metainfojob.h.

\subsection{Constructor \& Destructor Documentation}
\index{KIO::MetaInfoJob@{KIO::Meta\-Info\-Job}!MetaInfoJob@{MetaInfoJob}}
\index{MetaInfoJob@{MetaInfoJob}!KIO::MetaInfoJob@{KIO::Meta\-Info\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}Meta\-Info\-Job::Meta\-Info\-Job (const {\bf KFile\-Item\-List} \& {\em items}, bool {\em delete\-Items} = false)}\label{classKIO_1_1MetaInfoJob_a0}


Constructor. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em items}]A list of KFile\-Items to get the metainfo for \item[{\em delete\-Items}]If true, the finished KFile\-Items are deleted \end{description}
\end{Desc}


Definition at line 44 of file metainfojob.cpp.

References KIO::Job::emit\-Result(), and QTimer::single\-Shot().

\subsection{Member Function Documentation}
\index{KIO::MetaInfoJob@{KIO::Meta\-Info\-Job}!removeItem@{removeItem}}
\index{removeItem@{removeItem}!KIO::MetaInfoJob@{KIO::Meta\-Info\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Meta\-Info\-Job::remove\-Item (const {\bf KFile\-Item} $\ast$ {\em item})}\label{classKIO_1_1MetaInfoJob_a2}


Removes an item from metainfo extraction. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em item}]the item that should be removed from the queue \end{description}
\end{Desc}


Definition at line 80 of file metainfojob.cpp.

References QPtr\-List$<$ Job $>$::first(), and QPtr\-List$<$ Job $>$::remove\-First().\index{KIO::MetaInfoJob@{KIO::Meta\-Info\-Job}!availablePlugins@{availablePlugins}}
\index{availablePlugins@{availablePlugins}!KIO::MetaInfoJob@{KIO::Meta\-Info\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString\-List} Meta\-Info\-Job::available\-Plugins ()\hspace{0.3cm}{\tt  [static]}}\label{classKIO_1_1MetaInfoJob_e0}


\begin{Desc}
\item[Returns:]a list of all available metainfo plugins. The list contains the basenames of the plugins' .desktop files (no path, no .desktop). \end{Desc}


Definition at line 157 of file metainfojob.cpp.

References QValue\-List::begin(), QValue\-List::end(), KTrader::Offer\-List, KTrader::query(), KIO::Job::result(), and KTrader::self().\index{KIO::MetaInfoJob@{KIO::Meta\-Info\-Job}!supportedMimeTypes@{supportedMimeTypes}}
\index{supportedMimeTypes@{supportedMimeTypes}!KIO::MetaInfoJob@{KIO::Meta\-Info\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString\-List} Meta\-Info\-Job::supported\-Mime\-Types ()\hspace{0.3cm}{\tt  [static]}}\label{classKIO_1_1MetaInfoJob_e1}


\begin{Desc}
\item[Returns:]a list of all supported MIME types. The list can contain entries like text/ $\ast$ (without the space). \end{Desc}


Definition at line 166 of file metainfojob.cpp.

References QValue\-List::begin(), QValue\-List::end(), KTrader::Offer\-List, KTrader::query(), KIO::Job::result(), and KTrader::self().\index{KIO::MetaInfoJob@{KIO::Meta\-Info\-Job}!gotMetaInfo@{gotMetaInfo}}
\index{gotMetaInfo@{gotMetaInfo}!KIO::MetaInfoJob@{KIO::Meta\-Info\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::Meta\-Info\-Job::got\-Meta\-Info (const {\bf KFile\-Item} $\ast$ {\em item})\hspace{0.3cm}{\tt  [signal]}}\label{classKIO_1_1MetaInfoJob_l0}


Emitted when the meta info for {\tt item} has been successfully retrieved. 

\index{KIO::MetaInfoJob@{KIO::Meta\-Info\-Job}!failed@{failed}}
\index{failed@{failed}!KIO::MetaInfoJob@{KIO::Meta\-Info\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KIO::Meta\-Info\-Job::failed (const {\bf KFile\-Item} $\ast$ {\em item})\hspace{0.3cm}{\tt  [signal]}}\label{classKIO_1_1MetaInfoJob_l1}


Emitted when metainfo for {\tt item} could not be extracted, either because a plugin for its MIME type does not exist, or because something went wrong. 

\index{KIO::MetaInfoJob@{KIO::Meta\-Info\-Job}!slotResult@{slotResult}}
\index{slotResult@{slotResult}!KIO::MetaInfoJob@{KIO::Meta\-Info\-Job}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void Meta\-Info\-Job::slot\-Result ({\bf KIO::Job} $\ast$ {\em job})\hspace{0.3cm}{\tt  [protected, virtual, slot]}}\label{classKIO_1_1MetaInfoJob_j0}


Called whenever a subjob finishes. 

Default implementation checks for errors and propagates to parent job, then calls {\bf remove\-Subjob}{\rm (p.\,\pageref{classKIO_1_1Job_b2})}. Override if you don't want subjobs errors to be propagated. 

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

Definition at line 116 of file metainfojob.cpp.

References QPtr\-List$<$ Job $>$::is\-Empty(), and QPtr\-List$<$ Job $>$::remove().

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