\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=106pt]{classKFileMimeTypeInfo_1_1ItemInfo__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
const  {\bf QString} \& {\bf prefix} () const 
\begin{CompactList}\small\item\em This method returns a translated prefix to be displayed before the value. \item\end{CompactList}\item 
const  {\bf QString} \& {\bf suffix} () const 
\begin{CompactList}\small\item\em This method returns a translated suffix to be displayed after the value. \item\end{CompactList}\item 
QVariant::Type {\bf type} () const 
\begin{CompactList}\small\item\em 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. \item\end{CompactList}\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 
\begin{CompactList}\small\item\em Is this item the variable item? \item\end{CompactList}\item 
const  {\bf QString} \& {\bf translated\-Key} () const 
\item 
uint {\bf attributes} () const 
\begin{CompactList}\small\item\em Return the attributes of the item. \item\end{CompactList}\item 
uint {\bf hint} () const 
\begin{CompactList}\small\item\em Return the hints for the item. \item\end{CompactList}\item 
uint {\bf unit} () const 
\begin{CompactList}\small\item\em Return the unit of the item. \item\end{CompactList}\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 273 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 288 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 299 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 310 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}


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


Definition at line 318 of file kfilemetainfo.h.

Referenced by KFile\-Meta\-Info::add\-Group(), and is\-Variable\-Item().\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} = true) const}\label{classKFileMimeTypeInfo_1_1ItemInfo_a5}


\begin{Desc}
\item[Returns:]a string for the specified 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.\end{Desc}
if {\tt mangle} is true, the string will already contain prefix and suffix \begin{Desc}
\item[Since:]3.1 \end{Desc}


Definition at line 1441 of file kfilemetainfo.cpp.

References QString::append(), QString::arg(), 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(), QString::sprintf(), suffix(), QVariant::to\-Bool(), QVariant::to\-Date(), QVariant::to\-Date\-Time(), QVariant::to\-Double(), QVariant::to\-Int(), QVariant::to\-Size(), QVariant::to\-String(), QVariant::to\-Time(), QVariant::to\-UInt(), 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 339 of file kfilemetainfo.h.

References QString::is\-Null(), and key().

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}


\begin{Desc}
\item[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. \end{Desc}


Definition at line 350 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_w31})} 

Definition at line 359 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_w32})} 

Definition at line 368 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_w33})} 

Definition at line 377 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}
