\section{KURLPixmap\-Provider Class Reference}
\label{classKURLPixmapProvider}\index{KURLPixmapProvider@{KURLPixmapProvider}}
Implementation of {\bf KPixmap\-Provider}. Resolves pixmaps for URLs.  


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

Inheritance diagram for KURLPixmap\-Provider:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=74pt]{classKURLPixmapProvider__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KURLPixmap\-Provider:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=74pt]{classKURLPixmapProvider__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
virtual {\bf QPixmap} {\bf pixmap\-For} (const {\bf QString} \&url, int size=0)
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKURLPixmapProvider_b0}

\end{CompactItemize}


\subsection{Detailed Description}
Implementation of {\bf KPixmap\-Provider}. Resolves pixmaps for URLs. 

Uses {\bf KMime\-Type::pixmap\-For\-URL()}{\rm (p.\,\pageref{classKMimeType_e0})} to resolve icons.

Instatiate this class and supply it to the desired class, e.g. 

\footnotesize\begin{verbatim} KHistoryCombo *combo = new KHistoryCombo( this );
 combo->setPixmapProvider( new KURLPixmapProvider );
 [...]
\end{verbatim}
\normalsize


\begin{Desc}
\item[Author:]Carsten Pfeiffer $<${\tt pfeiffer@kde.org}$>$ \end{Desc}




Definition at line 42 of file kurlpixmapprovider.h.

\subsection{Member Function Documentation}
\index{KURLPixmapProvider@{KURLPixmap\-Provider}!pixmapFor@{pixmapFor}}
\index{pixmapFor@{pixmapFor}!KURLPixmapProvider@{KURLPixmap\-Provider}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QPixmap} KURLPixmap\-Provider::pixmap\-For (const {\bf QString} \& {\em url}, int {\em size} = {\tt 0})\hspace{0.3cm}{\tt  [virtual]}}\label{classKURLPixmapProvider_a0}


Returns a pixmap for {\tt url} with size {\tt size}. 

Uses {\bf KMime\-Type::pixmap\-For\-URL()}{\rm (p.\,\pageref{classKMimeType_e0})}. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]the URL to fetch a pixmap for \item[{\em size}]the size of the pixmap in pixels, or 0 for default. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the resulting pixmap \end{Desc}
\begin{Desc}
\item[See also:]{\bf KIcon::Std\-Sizes} \end{Desc}


Implements {\bf KPixmap\-Provider}.

Definition at line 23 of file kurlpixmapprovider.cpp.

References KMime\-Type::pixmap\-For\-URL(), and KURL::set\-Path().

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