.TH "KFileMimeTypeInfo::ItemInfo" kde3 "11 Jun 2005" "Version Version 3.4.1" "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
.ti -1c
.RI "const \fBQString\fP & \fBsuffix\fP () const "
.br
.ti -1c
.RI "QVariant::Type \fBtype\fP () const "
.br
.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
.ti -1c
.RI "const \fBQString\fP & \fBtranslatedKey\fP () const "
.br
.ti -1c
.RI "uint \fBattributes\fP () const "
.br
.ti -1c
.RI "uint \fBhint\fP () const "
.br
.ti -1c
.RI "uint \fBunit\fP () const "
.br
.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 245 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. 
.PP
Think e.g. of the $ in $30
.PP
\fBReturns:\fP
.RS 4
the prefix 
.RE
.PP

.PP
Definition at line 260 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. 
.PP
Think of the kbps in 128kbps
.PP
\fBReturns:\fP
.RS 4
the prefix 
.RE
.PP

.PP
Definition at line 271 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. 
.PP
\fBReturns:\fP
.RS 4
the \fBQVariant\fP type 
.RE
.PP

.PP
Definition at line 282 of file kfilemetainfo.h.
.SS "const \fBQString\fP& KFileMimeTypeInfo::ItemInfo::key () const\fC [inline]\fP"
.PP
Returns the name of the item. 
.PP
\fBReturns:\fP
.RS 4
the name of the item 
.RE
.PP

.PP
Definition at line 291 of file kfilemetainfo.h.
.PP
Referenced by KFileMetaInfo::addGroup().
.SS "\fBQString\fP KFileMimeTypeInfo::ItemInfo::string (const \fBQVariant\fP & value, bool mangle = \fCtrue\fP) const"
.PP
Returns a string for the specified \fCvalue\fP, if possible. 
.PP
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.
.PP
\fBParameters:\fP
.RS 4
\fIvalue\fP the value to convert 
.br
\fImangle\fP if true, the string will already contain prefix and suffix 
.RE
.PP
\fBReturns:\fP
.RS 4
the converted string, or QString::null if not possible 
.RE
.PP
\fBSince:\fP
.RS 4
3.1 
.RE
.PP

.PP
Definition at line 1582 of file kfilemetainfo.cpp.
.PP
References QString::append(), QString::arg(), KFileMimeTypeInfo::Bytes, KIO::convertSize(), KIO::convertSizeFromKB(), KLocale::formatDate(), KLocale::formatDateTime(), KLocale::formatNumber(), KLocale::formatTime(), QString::isNull(), KFileMimeTypeInfo::KiloBytes, KGlobal::locale(), prefix(), QString::prepend(), KFileMimeTypeInfo::Seconds, QString::sprintf(), suffix(), QVariant::toBool(), QVariant::toDate(), QVariant::toDateTime(), QVariant::toDouble(), QVariant::toInt(), QVariant::toLongLong(), QVariant::toSize(), QVariant::toString(), QVariant::toTime(), QVariant::toUInt(), QVariant::toULongLong(), QVariant::type(), and unit().
.SS "bool KFileMimeTypeInfo::ItemInfo::isVariableItem () const\fC [inline]\fP"
.PP
Is this item the variable item? 
.PP
\fBReturns:\fP
.RS 4
true if it is, false if not 
.RE
.PP

.PP
Definition at line 314 of file kfilemetainfo.h.
.PP
Referenced by KFileMetaInfoGroup::addItem().
.SS "const \fBQString\fP& KFileMimeTypeInfo::ItemInfo::translatedKey () const\fC [inline]\fP"
.PP
Returns a translation of the key for displaying to the user. 
.PP
If the plugin provides translation to the key, it's also in the user's language. 
.PP
\fBReturns:\fP
.RS 4
the translated key 
.RE
.PP

.PP
Definition at line 326 of file kfilemetainfo.h.
.SS "uint KFileMimeTypeInfo::ItemInfo::attributes () const\fC [inline]\fP"
.PP
Return the attributes of the item. 
.PP
See \fBKFileMimeTypeInfo::Attributes\fP. 
.PP
\fBReturns:\fP
.RS 4
the attributes 
.RE
.PP

.PP
Definition at line 336 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. 
.PP
See \fBKFileMimeTypeInfo::Hint\fP 
.PP
\fBReturns:\fP
.RS 4
the hint 
.RE
.PP

.PP
Definition at line 346 of file kfilemetainfo.h.
.SS "uint KFileMimeTypeInfo::ItemInfo::unit () const\fC [inline]\fP"
.PP
Return the unit of the item. 
.PP
See \fBKFileMimeTypeInfo::Unit\fP 
.PP
\fBReturns:\fP
.RS 4
the unit 
.RE
.PP

.PP
Definition at line 356 of file kfilemetainfo.h.
.PP
Referenced by string().

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