\section{KMime\-Source\-Factory Class Reference}
\label{classKMimeSourceFactory}\index{KMimeSourceFactory@{KMimeSourceFactory}}
An extension to {\bf QMime\-Source\-Factory} that uses {\bf KIcon\-Loader}{\rm (p.\,\pageref{classKIconLoader})} to find images.  


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

Inheritance diagram for KMime\-Source\-Factory:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=74pt]{classKMimeSourceFactory__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KMime\-Source\-Factory:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=74pt]{classKMimeSourceFactory__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KMime\-Source\-Factory} ({\bf KIcon\-Loader} $\ast$loader=KGlobal::icon\-Loader())
\item 
virtual {\bf $\sim$KMime\-Source\-Factory} ()
\item 
virtual {\bf QString} {\bf make\-Absolute} (const {\bf QString} \&abs\_\-or\_\-rel\_\-name, const {\bf QString} \&context) const 
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast${\bf data})\label{classKMimeSourceFactory_b0}

\end{CompactItemize}


\subsection{Detailed Description}
An extension to {\bf QMime\-Source\-Factory} that uses {\bf KIcon\-Loader}{\rm (p.\,\pageref{classKIconLoader})} to find images. 

Normally you don't have to instantiate this class at all, {\bf KApplication}{\rm (p.\,\pageref{classKApplication})} does that for you automagically and sets {\bf QMime\-Source\-Factory::set\-Default\-Factory}.

\begin{Desc}
\item[Author:]Peter Putzer $<${\tt putzer@kde.org}$>$ \end{Desc}




Definition at line 38 of file kmimesourcefactory.h.

\subsection{Constructor \& Destructor Documentation}
\index{KMimeSourceFactory@{KMime\-Source\-Factory}!KMimeSourceFactory@{KMimeSourceFactory}}
\index{KMimeSourceFactory@{KMimeSourceFactory}!KMimeSourceFactory@{KMime\-Source\-Factory}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KMime\-Source\-Factory::KMime\-Source\-Factory ({\bf KIcon\-Loader} $\ast$ {\em loader} = {\tt KGlobal::iconLoader()})}\label{classKMimeSourceFactory_a0}


Constructor. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em loader}]is the iconloader used to find images. \end{description}
\end{Desc}


Definition at line 37 of file kmimesourcefactory.cpp.\index{KMimeSourceFactory@{KMime\-Source\-Factory}!~KMimeSourceFactory@{$\sim$KMimeSourceFactory}}
\index{~KMimeSourceFactory@{$\sim$KMimeSourceFactory}!KMimeSourceFactory@{KMime\-Source\-Factory}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KMime\-Source\-Factory::$\sim${\bf KMime\-Source\-Factory} ()\hspace{0.3cm}{\tt  [virtual]}}\label{classKMimeSourceFactory_a1}


Destructor. 



Definition at line 43 of file kmimesourcefactory.cpp.

\subsection{Member Function Documentation}
\index{KMimeSourceFactory@{KMime\-Source\-Factory}!makeAbsolute@{makeAbsolute}}
\index{makeAbsolute@{makeAbsolute}!KMimeSourceFactory@{KMime\-Source\-Factory}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KMime\-Source\-Factory::make\-Absolute (const {\bf QString} \& {\em abs\_\-or\_\-rel\_\-name}, const {\bf QString} \& {\em context}) const\hspace{0.3cm}{\tt  [virtual]}}\label{classKMimeSourceFactory_a2}


This function is maps an absolute or relative name for a resource to the absolute one. 

To load an icon, prepend the {\tt category} name before the {\tt icon} name, in the style of $<$category$>$$|$$<$icon$>$.

Example: 

\footnotesize\begin{verbatim} "<img src=\"user|ksysv_start\"/>", "<img src="\desktop|trash\">", ...
\end{verbatim}
\normalsize


\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em abs\_\-or\_\-rel\_\-name}]is the absolute or relative pathname. \item[{\em context}]is the path of the context object for the queried resource. Almost always empty. \end{description}
\end{Desc}


Reimplemented from {\bf QMime\-Source\-Factory}.

Definition at line 48 of file kmimesourcefactory.cpp.

References QString::find(), QString::is\-Empty(), QString::left(), QString::length(), QMime\-Source\-Factory::make\-Absolute(), and QString::right().

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