\section{KMime\-Magic\-Result Class Reference}
\label{classKMimeMagicResult}\index{KMimeMagicResult@{KMimeMagicResult}}
{\tt \#include $<$kmimemagic.h$>$}

Collaboration diagram for KMime\-Magic\-Result:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=79pt]{classKMimeMagicResult__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf QString} {\bf mime\-Type} () const 
\item 
int {\bf accuracy} () const 
\item 
bool {\bf is\-Valid} () const 
\item 
void {\bf set\-Mime\-Type} (const {\bf QString} \&\_\-mime)\label{classKMimeMagicResult_a5}

\item 
void {\bf set\-Accuracy} (int \_\-accuracy)\label{classKMimeMagicResult_a6}

\item 
void {\bf set\-Invalid} ()\label{classKMimeMagicResult_a7}

\end{CompactItemize}
\subsection*{Protected Attributes}
\begin{CompactItemize}
\item 
{\bf QString} {\bf m\_\-str\-Mime\-Type}\label{classKMimeMagicResult_p0}

\item 
int {\bf m\_\-i\-Accuracy}\label{classKMimeMagicResult_p1}

\end{CompactItemize}


\subsection{Detailed Description}
\begin{Desc}
\item[{\bf Deprecated}]Use {\bf KMime\-Type::find\-By\-Content()}{\rm (p.\,\pageref{classKMimeType_e7})} instead May be removed in {\bf KDE} 4.0. Returned by {\bf KMime\-Magic}{\rm (p.\,\pageref{classKMimeMagic})} {\tt find}...Type methods. \end{Desc}
It contains the mimetype and the encoding of the file or buffer read. 



Definition at line 46 of file kmimemagic.h.

\subsection{Member Function Documentation}
\index{KMimeMagicResult@{KMime\-Magic\-Result}!mimeType@{mimeType}}
\index{mimeType@{mimeType}!KMimeMagicResult@{KMime\-Magic\-Result}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KMime\-Magic\-Result::mime\-Type () const\hspace{0.3cm}{\tt  [inline]}}\label{classKMimeMagicResult_a2}


Retrieve the mimetype (e.g. 

\char`\"{}text/html\char`\"{}) of the file or buffer parsed. 

Definition at line 55 of file kmimemagic.h.

Referenced by KMime\-Type::find\-By\-Content(), KMime\-Type::find\-By\-File\-Content(), and KMime\-Type::find\-By\-URL().\index{KMimeMagicResult@{KMime\-Magic\-Result}!accuracy@{accuracy}}
\index{accuracy@{accuracy}!KMimeMagicResult@{KMime\-Magic\-Result}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int KMime\-Magic\-Result::accuracy () const\hspace{0.3cm}{\tt  [inline]}}\label{classKMimeMagicResult_a3}


Retrieve the accuracy of the matching. 



Definition at line 59 of file kmimemagic.h.

Referenced by KMime\-Magic::find\-Buffer\-Type(), KMime\-Type::find\-By\-Content(), KMime\-Type::find\-By\-File\-Content(), and KMime\-Magic::find\-File\-Type().\index{KMimeMagicResult@{KMime\-Magic\-Result}!isValid@{isValid}}
\index{isValid@{isValid}!KMimeMagicResult@{KMime\-Magic\-Result}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KMime\-Magic\-Result::is\-Valid () const\hspace{0.3cm}{\tt  [inline]}}\label{classKMimeMagicResult_a4}


Returns whether the result is valid (i.e. 

mimetype not empty). 

Definition at line 63 of file kmimemagic.h.

Referenced by KMime\-Type::find\-By\-Content(), KMime\-Type::find\-By\-File\-Content(), and KMime\-Type::find\-By\-URL().

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