\section{KMime\-Magic\-Result Class Reference}
\label{classKMimeMagicResult}\index{KMimeMagicResult@{KMimeMagicResult}}
{\bf This class or method is obsolete, it is provided for compatibility only.} Use {\bf KMime\-Type::find\-By\-Content()}{\rm (p.\,\pageref{classKMimeType_e6})} instead May be removed in {\bf KDE} 4.0 Returned by {\bf KMime\-Magic}{\rm (p.\,\pageref{classKMimeMagic})} {\tt find}...Type methods.  


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

Collaboration diagram for KMime\-Magic\-Result:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=93pt]{classKMimeMagicResult__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf QString} {\bf mime\-Type} () const 
\begin{CompactList}\small\item\em Retrieve the mimetype (e.g. \item\end{CompactList}\item 
int {\bf accuracy} () const 
\begin{CompactList}\small\item\em Retrieve the accuracy of the matching. \item\end{CompactList}\item 
bool {\bf is\-Valid} () const 
\begin{CompactList}\small\item\em Returns whether the result is valid (i.e. \item\end{CompactList}\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}
{\bf This class or method is obsolete, it is provided for compatibility only.} Use {\bf KMime\-Type::find\-By\-Content()}{\rm (p.\,\pageref{classKMimeType_e6})} instead May be removed in {\bf KDE} 4.0 Returned by {\bf KMime\-Magic}{\rm (p.\,\pageref{classKMimeMagic})} {\tt find}...Type methods. 

It contains the mimetype and the encoding of the file or buffer read. 



Definition at line 45 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 54 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 58 of file kmimemagic.h.

Referenced by KMime\-Type::find\-By\-Content(), and KMime\-Type::find\-By\-File\-Content().\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 62 of file kmimemagic.h.

References QString::is\-Empty().

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}
