.TH "KFileMimeTypeInfo::ItemInfo" 3 "28 Jan 2004" "kio Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KFileMimeTypeInfo::ItemInfo \- This is the class for one item of a \fBKFileMimeTypeInfo\fP.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kfilemetainfo.h>\fP
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "const  \fBQString\fP & \fBprefix\fP () const "
.br
.RI "\fIThis method returns a translated prefix to be displayed before the value. \fP"
.ti -1c
.RI "const  \fBQString\fP & \fBsuffix\fP () const "
.br
.RI "\fIThis method returns a translated suffix to be displayed after the value. \fP"
.ti -1c
.RI "QVariant::Type \fBtype\fP () const "
.br
.RI "\fIThe items for a file are stored as a \fBQVariant\fP and this method can be used to get the data type of this item. \fP"
.ti -1c
.RI "const  \fBQString\fP & \fBkey\fP () const "
.br
.ti -1c
.RI "\fBQString\fP \fBstring\fP (const  \fBQVariant\fP &value, bool mangle=true) const "
.br
.ti -1c
.RI "bool \fBisVariableItem\fP () const "
.br
.RI "\fIIs this item the variable item? \fP"
.ti -1c
.RI "const  \fBQString\fP & \fBtranslatedKey\fP () const "
.br
.ti -1c
.RI "uint \fBattributes\fP () const "
.br
.RI "\fIReturn the attributes of the item. \fP"
.ti -1c
.RI "uint \fBhint\fP () const "
.br
.RI "\fIReturn the hints for the item. \fP"
.ti -1c
.RI "uint \fBunit\fP () const "
.br
.RI "\fIReturn the unit of the item. \fP"
.in -1c
.SS "Friends"

.in +1c
.ti -1c
.RI "class \fBKFilePlugin\fP"
.br
.ti -1c
.RI "class \fBGroupInfo\fP"
.br
.in -1c
.SH "Detailed Description"
.PP 
This is the class for one item of a \fBKFileMimeTypeInfo\fP. 

It contains every information about a \fBKFileMetaInfoItem\fP that this item has in common for each file of a specific mimetype. 
.PP
Definition at line 273 of file kfilemetainfo.h.
.SH "Member Function Documentation"
.PP 
.SS "const \fBQString\fP& KFileMimeTypeInfo::ItemInfo::prefix () const\fC [inline]\fP"
.PP
This method returns a translated prefix to be displayed before the value. Think e.g. of the $ in $30
.PP
\fBReturns:\fP
.RS 4
the prefix 
.RE
.PP
Definition at line 288 of file kfilemetainfo.h.
.PP
Referenced by string().
.SS "const \fBQString\fP& KFileMimeTypeInfo::ItemInfo::suffix () const\fC [inline]\fP"
.PP
This method returns a translated suffix to be displayed after the value. Think of the kbps in 128kbps
.PP
\fBReturns:\fP
.RS 4
the prefix 
.RE
.PP
Definition at line 299 of file kfilemetainfo.h.
.PP
Referenced by string().
.SS "QVariant::Type KFileMimeTypeInfo::ItemInfo::type () const\fC [inline]\fP"
.PP
The items for a file are stored as a \fBQVariant\fP and this method can be used to get the data type of this item. \fBReturns:\fP
.RS 4
the \fBQVariant\fP type 
.RE
.PP
Definition at line 310 of file kfilemetainfo.h.
.SS "const \fBQString\fP& KFileMimeTypeInfo::ItemInfo::key () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
The name of the item 
.RE
.PP
Definition at line 318 of file kfilemetainfo.h.
.PP
Referenced by KFileMetaInfo::addGroup(), and isVariableItem().
.SS "\fBQString\fP KFileMimeTypeInfo::ItemInfo::string (const \fBQVariant\fP & value, bool mangle = true) const"
.PP
\fBReturns:\fP
.RS 4
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.
.RE
.PP
if \fCmangle\fP is true, the string will already contain prefix and suffix 
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP
Definition at line 1441 of file kfilemetainfo.cpp.
.PP
References QString::append(), QString::arg(), KIO::convertSize(), KIO::convertSizeFromKB(), KLocale::formatDate(), KLocale::formatDateTime(), KLocale::formatNumber(), KLocale::formatTime(), QString::isNull(), KFileMimeTypeInfo::KiloBytes, KGlobal::locale(), prefix(), QString::prepend(), QString::sprintf(), suffix(), QVariant::toBool(), QVariant::toDate(), QVariant::toDateTime(), QVariant::toDouble(), QVariant::toInt(), QVariant::toSize(), QVariant::toString(), QVariant::toTime(), QVariant::toUInt(), QVariant::type(), and unit().
.SS "bool KFileMimeTypeInfo::ItemInfo::isVariableItem () const\fC [inline]\fP"
.PP
Is this item the variable item? \fBReturns:\fP
.RS 4
true if it is, false if not 
.RE
.PP
Definition at line 339 of file kfilemetainfo.h.
.PP
References QString::isNull(), and key().
.PP
Referenced by KFileMetaInfoGroup::addItem().
.SS "const \fBQString\fP& KFileMimeTypeInfo::ItemInfo::translatedKey () const\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
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. 
.RE
.PP
Definition at line 350 of file kfilemetainfo.h.
.SS "uint KFileMimeTypeInfo::ItemInfo::attributes () const\fC [inline]\fP"
.PP
Return the attributes of the item. See \fBKFileMimeTypeInfo::Attributes\fP Definition at line 359 of file kfilemetainfo.h.
.PP
Referenced by KFileMetaInfo::addGroup().
.SS "uint KFileMimeTypeInfo::ItemInfo::hint () const\fC [inline]\fP"
.PP
Return the hints for the item. See \fBKFileMimeTypeInfo::Hint\fP Definition at line 368 of file kfilemetainfo.h.
.SS "uint KFileMimeTypeInfo::ItemInfo::unit () const\fC [inline]\fP"
.PP
Return the unit of the item. See \fBKFileMimeTypeInfo::Unit\fP Definition at line 377 of file kfilemetainfo.h.
.PP
Referenced by string().

.SH "Author"
.PP 
Generated automatically by Doxygen for kio Library from the source code.
