\section{KMime\-Type\-Resolver$<$ Icon\-Item, Parent $>$ Class Template Reference}
\label{classKMimeTypeResolver}\index{KMimeTypeResolver@{KMimeTypeResolver}}
This class implements the \char`\"{}delayed-mimetype-determination\char`\"{} feature, for konqueror's directory views (and KFile\-Dialog's :).  


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

Inheritance diagram for KMime\-Type\-Resolver$<$ Icon\-Item, Parent $>$:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=363pt]{classKMimeTypeResolver__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KMime\-Type\-Resolver$<$ Icon\-Item, Parent $>$:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=132pt]{classKMimeTypeResolver__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KMime\-Type\-Resolver} (Parent $\ast$parent)
\item 
void {\bf start} (uint delay\-Non\-Visible\-Icons=10)
\item 
virtual void {\bf slot\-Viewport\-Adjusted} ()
\item 
virtual void {\bf slot\-Process\-Mime\-Icons} ()
\end{CompactItemize}
\subsection*{Public Attributes}
\begin{CompactItemize}
\item 
{\bf QPtr\-List}$<$ Icon\-Item $>$ {\bf m\_\-lst\-Pending\-Mime\-Icon\-Items}
\end{CompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$class Icon\-Item, class Parent$>$ class KMime\-Type\-Resolver$<$ Icon\-Item, Parent $>$}

This class implements the \char`\"{}delayed-mimetype-determination\char`\"{} feature, for konqueror's directory views (and KFile\-Dialog's :). 

It determines the mimetypes of the icons in the background, but giving preferrence to the visible icons.

It is implemented as a template, so that it can work with both QPtr\-List\-View\-Item and {\bf QIcon\-View\-Item}, without requiring hacks such as void $\ast$ or {\bf QPtr\-Dict} lookups.

Here's what the parent must implement : \begin{itemize}
\item void mime\-Type\-Determination\-Finished(); \item {\bf QScroll\-View} $\ast$ scroll\-Widget(); \item void determine\-Icon( Icon\-Item $\ast$ item ), which should call \item {\bf KFile\-Item::determine\-Mime\-Type}{\rm (p.\,\pageref{classKFileItem_a30})} on the file\-Item, and update the icon, etc. \end{itemize}




Definition at line 118 of file kmimetyperesolver.h.

\subsection{Constructor \& Destructor Documentation}
\index{KMimeTypeResolver@{KMime\-Type\-Resolver}!KMimeTypeResolver@{KMimeTypeResolver}}
\index{KMimeTypeResolver@{KMimeTypeResolver}!KMimeTypeResolver@{KMime\-Type\-Resolver}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class Icon\-Item, class Parent$>$ {\bf KMime\-Type\-Resolver}$<$ Icon\-Item, Parent $>$::{\bf KMime\-Type\-Resolver} (Parent $\ast$ {\em parent})\hspace{0.3cm}{\tt  [inline]}}\label{classKMimeTypeResolver_a0}


Creates a new KMime\-Type\-Resolver with the given parent. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em parent}]the parent's resolver \end{description}
\end{Desc}


Definition at line 125 of file kmimetyperesolver.h.

\subsection{Member Function Documentation}
\index{KMimeTypeResolver@{KMime\-Type\-Resolver}!start@{start}}
\index{start@{start}!KMimeTypeResolver@{KMime\-Type\-Resolver}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class Icon\-Item, class Parent$>$ void {\bf KMime\-Type\-Resolver}$<$ Icon\-Item, Parent $>$::start (uint {\em delay\-Non\-Visible\-Icons} = {\tt 10})\hspace{0.3cm}{\tt  [inline]}}\label{classKMimeTypeResolver_a2}


Start the mimetype-determination. 

Call this when the listing is completed. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em delay\-Non\-Visible\-Icons}]the delay to use between icons not on screen. Usually 10, but should be set to 0 when the image preview feature is activated, because image preview can only start once we know the mimetypes \end{description}
\end{Desc}


Definition at line 141 of file kmimetyperesolver.h.

Referenced by KFile\-Icon\-View::listing\-Completed(), and KFile\-Detail\-View::listing\-Completed().\index{KMimeTypeResolver@{KMime\-Type\-Resolver}!slotViewportAdjusted@{slotViewportAdjusted}}
\index{slotViewportAdjusted@{slotViewportAdjusted}!KMimeTypeResolver@{KMime\-Type\-Resolver}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class Icon\-Item, class Parent$>$ void {\bf KMime\-Type\-Resolver}$<$ Icon\-Item, Parent $>$::slot\-Viewport\-Adjusted ()\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classKMimeTypeResolver_a3}


\char`\"{}Connected\char`\"{} to the viewport\-Adjusted signal of the scrollview 



Definition at line 217 of file kmimetyperesolver.h.

References QPtr\-List::is\-Empty(), KMime\-Type\-Resolver$<$ Icon\-Item, Parent $>$::m\_\-lst\-Pending\-Mime\-Icon\-Items, and QPtr\-List::remove().\index{KMimeTypeResolver@{KMime\-Type\-Resolver}!slotProcessMimeIcons@{slotProcessMimeIcons}}
\index{slotProcessMimeIcons@{slotProcessMimeIcons}!KMimeTypeResolver@{KMime\-Type\-Resolver}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class Icon\-Item, class Parent$>$ void {\bf KMime\-Type\-Resolver}$<$ Icon\-Item, Parent $>$::slot\-Process\-Mime\-Icons ()\hspace{0.3cm}{\tt  [inline, virtual]}}\label{classKMimeTypeResolver_a4}


\char`\"{}Connected\char`\"{} to the timer 



Definition at line 180 of file kmimetyperesolver.h.

References QPtr\-List::count(), QPtr\-List::first(), KMime\-Type\-Resolver$<$ Icon\-Item, Parent $>$::m\_\-lst\-Pending\-Mime\-Icon\-Items, and QPtr\-List::remove().

\subsection{Member Data Documentation}
\index{KMimeTypeResolver@{KMime\-Type\-Resolver}!m_lstPendingMimeIconItems@{m\_\-lstPendingMimeIconItems}}
\index{m_lstPendingMimeIconItems@{m\_\-lstPendingMimeIconItems}!KMimeTypeResolver@{KMime\-Type\-Resolver}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}template$<$class Icon\-Item, class Parent$>$ {\bf QPtr\-List}$<$Icon\-Item$>$ {\bf KMime\-Type\-Resolver}$<$ Icon\-Item, Parent $>$::{\bf m\_\-lst\-Pending\-Mime\-Icon\-Items}}\label{classKMimeTypeResolver_o0}


The list of items to process. 

The view is free to clear it, insert new items into it, remove items, etc. \begin{Desc}
\item[Returns:]the list of items to process \end{Desc}


Definition at line 152 of file kmimetyperesolver.h.

Referenced by KFile\-Icon\-View::clear\-View(), KFile\-Detail\-View::clear\-View(), KFile\-Icon\-View::insert\-Item(), KFile\-Detail\-View::insert\-Item(), KFile\-Icon\-View::remove\-Item(), KFile\-Detail\-View::remove\-Item(), KMime\-Type\-Resolver$<$ Icon\-Item, Parent $>$::slot\-Process\-Mime\-Icons(), and KMime\-Type\-Resolver$<$ Icon\-Item, Parent $>$::slot\-Viewport\-Adjusted().

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