\section{KFolder\-Type Class Reference}
\label{classKFolderType}\index{KFolderType@{KFolderType}}
Folder mime type. Mimetype for a folder (inode/directory).  


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

Inheritance diagram for KFolder\-Type:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=57pt]{classKFolderType__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KFolder\-Type:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=191pt]{classKFolderType__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KFolder\-Type} ({\bf KDesktop\-File} $\ast$config)
\item 
{\bf KFolder\-Type} ({\bf QData\-Stream} \&\_\-str, int {\bf offset})\label{classKFolderType_a1}

\item 
virtual {\bf QString} {\bf icon} (const {\bf QString} \&\_\-url, bool \_\-is\_\-local) const 
\item 
virtual {\bf QString} {\bf icon} (const {\bf KURL} \&\_\-url, bool \_\-is\_\-local) const 
\item 
virtual {\bf QString} {\bf comment} (const {\bf QString} \&\_\-url, bool \_\-is\_\-local) const 
\item 
virtual {\bf QString} {\bf comment} (const {\bf KURL} \&\_\-url, bool \_\-is\_\-local) const 
\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
virtual void {\bf virtual\_\-hook} (int id, void $\ast$data)\label{classKFolderType_b0}

\end{CompactItemize}


\subsection{Detailed Description}
Folder mime type. Mimetype for a folder (inode/directory). 

Handles locked folders, for instance. 



Definition at line 477 of file kmimetype.h.

\subsection{Constructor \& Destructor Documentation}
\index{KFolderType@{KFolder\-Type}!KFolderType@{KFolderType}}
\index{KFolderType@{KFolderType}!KFolderType@{KFolder\-Type}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KFolder\-Type::KFolder\-Type ({\bf KDesktop\-File} $\ast$ {\em config})\hspace{0.3cm}{\tt  [inline]}}\label{classKFolderType_a0}


Construct a folder mimetype and take all information from a desktop file. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em config}]the desktop configuration file that describes the mime type \end{description}
\end{Desc}


Definition at line 489 of file kmimetype.h.

\subsection{Member Function Documentation}
\index{KFolderType@{KFolder\-Type}!icon@{icon}}
\index{icon@{icon}!KFolderType@{KFolder\-Type}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KFolder\-Type::icon (const {\bf QString} \& {\em \_\-url}, bool {\em \_\-is\_\-local}) const\hspace{0.3cm}{\tt  [virtual]}}\label{classKFolderType_a2}


Return the filename of the icon associated with the mimetype. 

The arguments are unused, but provided so that KMime\-Type-derived classes can use them (e.g. KFolder\-Type uses the URL to return one out of 2 icons)

\begin{Desc}
\item[Returns:]The path to the icon associated with this MIME type. \end{Desc}


Reimplemented from {\bf KMime\-Type} {\rm (p.\,\pageref{classKMimeType_a5})}.

Definition at line 592 of file kmimetype.cpp.

References KService\-Type::icon().

Referenced by icon().\index{KFolderType@{KFolder\-Type}!icon@{icon}}
\index{icon@{icon}!KFolderType@{KFolder\-Type}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KFolder\-Type::icon (const {\bf KURL} \& {\em \_\-url}, bool {\em \_\-is\_\-local}) const\hspace{0.3cm}{\tt  [virtual]}}\label{classKFolderType_a3}


Return the filename of the icon associated with the mimetype. 

The arguments are unused, but provided so that KMime\-Type-derived classes can use them (e.g. KFolder\-Type uses the URL to return one out of 2 icons)

\begin{Desc}
\item[Returns:]The path to the icon associated with this MIME type. \end{Desc}


Reimplemented from {\bf KMime\-Type} {\rm (p.\,\pageref{classKMimeType_a6})}.

Definition at line 600 of file kmimetype.cpp.

References KURL::add\-Path(), QValue\-List::append(), QValue\-List::end(), QValue\-List::find(), icon(), KService\-Type::icon(), QString::is\-Empty(), QString::mid(), KURL::path(), and QString::starts\-With().\index{KFolderType@{KFolder\-Type}!comment@{comment}}
\index{comment@{comment}!KFolderType@{KFolder\-Type}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KFolder\-Type::comment (const {\bf QString} \& {\em \_\-url}, bool {\em \_\-is\_\-local}) const\hspace{0.3cm}{\tt  [virtual]}}\label{classKFolderType_a4}


Returns the descriptive comment associated with the MIME type. 

The arguments are unused, but provided so that {\bf KMime\-Type}{\rm (p.\,\pageref{classKMimeType})} derived classes can use them.

\begin{Desc}
\item[Returns:]The descriptive comment associated with the MIME type, if any. \end{Desc}


Reimplemented from {\bf KMime\-Type} {\rm (p.\,\pageref{classKMimeType_a10})}.

Definition at line 665 of file kmimetype.cpp.

References KMime\-Type::comment().

Referenced by comment().\index{KFolderType@{KFolder\-Type}!comment@{comment}}
\index{comment@{comment}!KFolderType@{KFolder\-Type}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KFolder\-Type::comment (const {\bf KURL} \& {\em \_\-url}, bool {\em \_\-is\_\-local}) const\hspace{0.3cm}{\tt  [virtual]}}\label{classKFolderType_a5}


Returns the descriptive comment associated with the MIME type. 

The arguments are unused, but provided so that {\bf KMime\-Type}{\rm (p.\,\pageref{classKMimeType})} derived classes can use them.

\begin{Desc}
\item[Returns:]The descriptive comment associated with the MIME type, if any. \end{Desc}


Reimplemented from {\bf KMime\-Type} {\rm (p.\,\pageref{classKMimeType_a11})}.

Definition at line 673 of file kmimetype.cpp.

References KURL::add\-Path(), comment(), KMime\-Type::comment(), QString::is\-Empty(), and KURL::path().

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