\section{KIO::Meta\-Info\-Job Class Reference}
\label{classKIO_1_1MetaInfoJob}\index{KIO::MetaInfoJob@{KIO::MetaInfoJob}}
{\bf Meta\-Info\-Job}{\rm (p.\,\pageref{classKIO_1_1MetaInfoJob})} is a {\bf KIO}{\rm (p.\,\pageref{namespaceKIO})} {\bf Job}{\rm (p.\,\pageref{classKIO_1_1Job})} to retrieve meta information from files. {\bf KIO}{\rm (p.\,\pageref{namespaceKIO})} {\bf Job}{\rm (p.\,\pageref{classKIO_1_1Job})} to retrieve meta information from files. \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=65pt]{classKIO_1_1MetaInfoJob__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KIO::Meta\-Info\-Job:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=305pt]{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)
\item 
void {\bf failed} (const {\bf KFile\-Item} $\ast$item)
\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Meta\-Info\-Job} (const {\bf KFile\-Item\-List} \&items, bool delete\-Items=false)
\item 
void {\bf remove\-Item} (const {\bf KFile\-Item} $\ast$item)
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static {\bf QString\-List} {\bf available\-Plugins} ()
\item 
static {\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)
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf get\-Meta\-Info} ()\label{classKIO_1_1MetaInfoJob_b0}

\end{CompactItemize}


\subsection{Detailed Description}
{\bf Meta\-Info\-Job}{\rm (p.\,\pageref{classKIO_1_1MetaInfoJob})} is a {\bf KIO}{\rm (p.\,\pageref{namespaceKIO})} {\bf Job}{\rm (p.\,\pageref{classKIO_1_1Job})} to retrieve meta information from files. {\bf KIO}{\rm (p.\,\pageref{namespaceKIO})} {\bf Job}{\rm (p.\,\pageref{classKIO_1_1Job})} to retrieve meta information from files. \begin{Desc}
\item[Since:]3.1. \end{Desc}




Definition at line 35 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} = {\tt false})}\label{classKIO_1_1MetaInfoJob_a0}


Creates a new {\bf Meta\-Info\-Job}{\rm (p.\,\pageref{classKIO_1_1MetaInfoJob})}. 

\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(), kd\-Debug(), 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::first(), QPtr\-List::remove(), and QPtr\-List::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}


Returns a list of all available metainfo plugins. 

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


Definition at line 154 of file metainfojob.cpp.

References QValue\-List::begin(), QValue\-List::end(), KTrader::query(), 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}


Returns a list of all supported MIME types. 

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


Definition at line 163 of file metainfojob.cpp.

References QValue\-List::begin(), QValue\-List::end(), KTrader::query(), 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. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em item}]the {\bf KFile\-Item}{\rm (p.\,\pageref{classKFileItem})} describing the fetched item \end{description}
\end{Desc}
\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. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em item}]the {\bf KFile\-Item}{\rm (p.\,\pageref{classKFileItem})} of the file that failed \end{description}
\end{Desc}
\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 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 116 of file metainfojob.cpp.

References QPtr\-List::is\-Empty(), and QPtr\-List::remove().

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