\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=420pt]{classKMimeTypeResolver__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KMime\-Type\-Resolver$<$ Icon\-Item, Parent $>$:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=151pt]{classKMimeTypeResolver__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KMime\-Type\-Resolver} (Parent $\ast$parent)\label{classKMimeTypeResolver_a0}

\item 
void {\bf start} (uint delay\-Non\-Visible\-Icons=10)
\begin{CompactList}\small\item\em Start the mimetype-determination. \item\end{CompactList}\item 
virtual void {\bf slot\-Viewport\-Adjusted} ()
\begin{CompactList}\small\item\em \char`\"{}Connected\char`\"{} to the viewport\-Adjusted signal of the scrollview \item\end{CompactList}\item 
virtual void {\bf slot\-Process\-Mime\-Icons} ()
\begin{CompactList}\small\item\em \char`\"{}Connected\char`\"{} to the timer \item\end{CompactList}\end{CompactItemize}
\subsection*{Public Attributes}
\begin{CompactItemize}
\item 
{\bf QPtr\-List}$<$ Icon\-Item $>$ {\bf m\_\-lst\-Pending\-Mime\-Icon\-Items}
\begin{CompactList}\small\item\em The list of items to process. \item\end{CompactList}\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 {\bf KFile\-Item::determine\-Mime\-Type}{\rm (p.\,\pageref{classKFileItem_a26})} on the file\-Item, and update the icon, etc. \end{itemize}




Definition at line 118 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} = 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 137 of file kmimetyperesolver.h.\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 212 of file kmimetyperesolver.h.

References QPtr\-List$<$ Icon\-Item $>$::is\-Empty(), KMime\-Type\-Resolver$<$ Icon\-Item, Parent $>$::m\_\-lst\-Pending\-Mime\-Icon\-Items, and QPtr\-List$<$ Icon\-Item $>$::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 175 of file kmimetyperesolver.h.

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

Definition at line 147 of file kmimetyperesolver.h.

Referenced by 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}
