\section{KFile\-Mime\-Type\-Info::Item\-Info Class Reference}
\label{classKFileMimeTypeInfo_1_1ItemInfo}\index{KFileMimeTypeInfo::ItemInfo@{KFileMimeTypeInfo::ItemInfo}}
This is the class for one item of a {\bf KFile\-Mime\-Type\-Info}{\rm (p.\,\pageref{classKFileMimeTypeInfo})}.  


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

Collaboration diagram for KFile\-Mime\-Type\-Info::Item\-Info:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=92pt]{classKFileMimeTypeInfo_1_1ItemInfo__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
const {\bf QString} \& {\bf prefix} () const 
\item 
const {\bf QString} \& {\bf suffix} () const 
\item 
QVariant::Type {\bf type} () const 
\item 
const {\bf QString} \& {\bf key} () const 
\item 
{\bf QString} {\bf string} (const {\bf QVariant} \&value, bool mangle=true) const 
\item 
bool {\bf is\-Variable\-Item} () const 
\item 
const {\bf QString} \& {\bf translated\-Key} () const 
\item 
uint {\bf attributes} () const 
\item 
uint {\bf hint} () const 
\item 
uint {\bf unit} () const 
\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf KFile\-Plugin}\label{classKFileMimeTypeInfo_1_1ItemInfo_n0}

\item 
class {\bf Group\-Info}\label{classKFileMimeTypeInfo_1_1ItemInfo_n1}

\end{CompactItemize}


\subsection{Detailed Description}
This is the class for one item of a {\bf KFile\-Mime\-Type\-Info}{\rm (p.\,\pageref{classKFileMimeTypeInfo})}. 

It contains every information about a {\bf KFile\-Meta\-Info\-Item}{\rm (p.\,\pageref{classKFileMetaInfoItem})} that this item has in common for each file of a specific mimetype. 



Definition at line 245 of file kfilemetainfo.h.

\subsection{Member Function Documentation}
\index{KFileMimeTypeInfo::ItemInfo@{KFile\-Mime\-Type\-Info::Item\-Info}!prefix@{prefix}}
\index{prefix@{prefix}!KFileMimeTypeInfo::ItemInfo@{KFile\-Mime\-Type\-Info::Item\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf QString}\& KFile\-Mime\-Type\-Info::Item\-Info::prefix () const\hspace{0.3cm}{\tt  [inline]}}\label{classKFileMimeTypeInfo_1_1ItemInfo_a1}


This method returns a translated prefix to be displayed before the value. 

Think e.g. of the \$ in \$30

\begin{Desc}
\item[Returns:]the prefix \end{Desc}


Definition at line 260 of file kfilemetainfo.h.

Referenced by string().\index{KFileMimeTypeInfo::ItemInfo@{KFile\-Mime\-Type\-Info::Item\-Info}!suffix@{suffix}}
\index{suffix@{suffix}!KFileMimeTypeInfo::ItemInfo@{KFile\-Mime\-Type\-Info::Item\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf QString}\& KFile\-Mime\-Type\-Info::Item\-Info::suffix () const\hspace{0.3cm}{\tt  [inline]}}\label{classKFileMimeTypeInfo_1_1ItemInfo_a2}


This method returns a translated suffix to be displayed after the value. 

Think of the kbps in 128kbps

\begin{Desc}
\item[Returns:]the prefix \end{Desc}


Definition at line 271 of file kfilemetainfo.h.

Referenced by string().\index{KFileMimeTypeInfo::ItemInfo@{KFile\-Mime\-Type\-Info::Item\-Info}!type@{type}}
\index{type@{type}!KFileMimeTypeInfo::ItemInfo@{KFile\-Mime\-Type\-Info::Item\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}QVariant::Type KFile\-Mime\-Type\-Info::Item\-Info::type () const\hspace{0.3cm}{\tt  [inline]}}\label{classKFileMimeTypeInfo_1_1ItemInfo_a3}


The items for a file are stored as a {\bf QVariant} and this method can be used to get the data type of this item. 

\begin{Desc}
\item[Returns:]the {\bf QVariant} type \end{Desc}


Definition at line 282 of file kfilemetainfo.h.\index{KFileMimeTypeInfo::ItemInfo@{KFile\-Mime\-Type\-Info::Item\-Info}!key@{key}}
\index{key@{key}!KFileMimeTypeInfo::ItemInfo@{KFile\-Mime\-Type\-Info::Item\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf QString}\& KFile\-Mime\-Type\-Info::Item\-Info::key () const\hspace{0.3cm}{\tt  [inline]}}\label{classKFileMimeTypeInfo_1_1ItemInfo_a4}


Returns the name of the item. 

\begin{Desc}
\item[Returns:]the name of the item \end{Desc}


Definition at line 291 of file kfilemetainfo.h.

Referenced by KFile\-Meta\-Info::add\-Group().\index{KFileMimeTypeInfo::ItemInfo@{KFile\-Mime\-Type\-Info::Item\-Info}!string@{string}}
\index{string@{string}!KFileMimeTypeInfo::ItemInfo@{KFile\-Mime\-Type\-Info::Item\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QString} KFile\-Mime\-Type\-Info::Item\-Info::string (const {\bf QVariant} \& {\em value}, bool {\em mangle} = {\tt true}) const}\label{classKFileMimeTypeInfo_1_1ItemInfo_a5}


Returns a string for the specified {\tt value}, if possible. 

If not, QString::null is returned. This can be used by programs if they want to display a sum or an average of some item for a list of files.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em value}]the value to convert \item[{\em mangle}]if true, the string will already contain prefix and suffix \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the converted string, or QString::null if not possible \end{Desc}
\begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 1582 of file kfilemetainfo.cpp.

References QString::append(), QString::arg(), KFile\-Mime\-Type\-Info::Bytes, KIO::convert\-Size(), KIO::convert\-Size\-From\-KB(), KLocale::format\-Date(), KLocale::format\-Date\-Time(), KLocale::format\-Number(), KLocale::format\-Time(), QString::is\-Null(), KFile\-Mime\-Type\-Info::Kilo\-Bytes, KGlobal::locale(), prefix(), QString::prepend(), KFile\-Mime\-Type\-Info::Seconds, QString::sprintf(), suffix(), QVariant::to\-Bool(), QVariant::to\-Date(), QVariant::to\-Date\-Time(), QVariant::to\-Double(), QVariant::to\-Int(), QVariant::to\-Long\-Long(), QVariant::to\-Size(), QVariant::to\-String(), QVariant::to\-Time(), QVariant::to\-UInt(), QVariant::to\-ULong\-Long(), QVariant::type(), and unit().\index{KFileMimeTypeInfo::ItemInfo@{KFile\-Mime\-Type\-Info::Item\-Info}!isVariableItem@{isVariableItem}}
\index{isVariableItem@{isVariableItem}!KFileMimeTypeInfo::ItemInfo@{KFile\-Mime\-Type\-Info::Item\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KFile\-Mime\-Type\-Info::Item\-Info::is\-Variable\-Item () const\hspace{0.3cm}{\tt  [inline]}}\label{classKFileMimeTypeInfo_1_1ItemInfo_a6}


Is this item the variable item? 

\begin{Desc}
\item[Returns:]true if it is, false if not \end{Desc}


Definition at line 314 of file kfilemetainfo.h.

Referenced by KFile\-Meta\-Info\-Group::add\-Item().\index{KFileMimeTypeInfo::ItemInfo@{KFile\-Mime\-Type\-Info::Item\-Info}!translatedKey@{translatedKey}}
\index{translatedKey@{translatedKey}!KFileMimeTypeInfo::ItemInfo@{KFile\-Mime\-Type\-Info::Item\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const {\bf QString}\& KFile\-Mime\-Type\-Info::Item\-Info::translated\-Key () const\hspace{0.3cm}{\tt  [inline]}}\label{classKFileMimeTypeInfo_1_1ItemInfo_a7}


Returns a translation of the key for displaying to the user. 

If the plugin provides translation to the key, it's also in the user's language. \begin{Desc}
\item[Returns:]the translated key \end{Desc}


Definition at line 326 of file kfilemetainfo.h.\index{KFileMimeTypeInfo::ItemInfo@{KFile\-Mime\-Type\-Info::Item\-Info}!attributes@{attributes}}
\index{attributes@{attributes}!KFileMimeTypeInfo::ItemInfo@{KFile\-Mime\-Type\-Info::Item\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}uint KFile\-Mime\-Type\-Info::Item\-Info::attributes () const\hspace{0.3cm}{\tt  [inline]}}\label{classKFileMimeTypeInfo_1_1ItemInfo_a8}


Return the attributes of the item. 

See {\bf KFile\-Mime\-Type\-Info::Attributes}{\rm (p.\,\pageref{classKFileMimeTypeInfo_w33})}. \begin{Desc}
\item[Returns:]the attributes \end{Desc}


Definition at line 336 of file kfilemetainfo.h.

Referenced by KFile\-Meta\-Info::add\-Group().\index{KFileMimeTypeInfo::ItemInfo@{KFile\-Mime\-Type\-Info::Item\-Info}!hint@{hint}}
\index{hint@{hint}!KFileMimeTypeInfo::ItemInfo@{KFile\-Mime\-Type\-Info::Item\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}uint KFile\-Mime\-Type\-Info::Item\-Info::hint () const\hspace{0.3cm}{\tt  [inline]}}\label{classKFileMimeTypeInfo_1_1ItemInfo_a9}


Return the hints for the item. 

See {\bf KFile\-Mime\-Type\-Info::Hint}{\rm (p.\,\pageref{classKFileMimeTypeInfo_w34})} \begin{Desc}
\item[Returns:]the hint \end{Desc}


Definition at line 346 of file kfilemetainfo.h.\index{KFileMimeTypeInfo::ItemInfo@{KFile\-Mime\-Type\-Info::Item\-Info}!unit@{unit}}
\index{unit@{unit}!KFileMimeTypeInfo::ItemInfo@{KFile\-Mime\-Type\-Info::Item\-Info}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}uint KFile\-Mime\-Type\-Info::Item\-Info::unit () const\hspace{0.3cm}{\tt  [inline]}}\label{classKFileMimeTypeInfo_1_1ItemInfo_a10}


Return the unit of the item. 

See {\bf KFile\-Mime\-Type\-Info::Unit}{\rm (p.\,\pageref{classKFileMimeTypeInfo_w35})} \begin{Desc}
\item[Returns:]the unit \end{Desc}


Definition at line 356 of file kfilemetainfo.h.

Referenced by string().

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