KFileMimeTypeInfo::ItemInfo Class Reference
This is the class for one item of a KFileMimeTypeInfo. More...
#include <kfilemetainfo.h>
Public Methods | |
const QString & | prefix () const |
This method returns a translated prefix to be displayed before the value. | |
const QString & | suffix () const |
This method returns a translated suffix to be displayed after the value. | |
QVariant::Type | type () const |
The items for a file are stored as a QVariant and this method can be used to get the data type of this item. | |
const QString & | key () const |
QString | string (const QVariant &value, bool mangle=true) const |
bool | isVariableItem () const |
Is this item the variable item? | |
const QString & | translatedKey () const |
uint | attributes () const |
Return the attributes of the item. | |
uint | hint () const |
Return the hints for the item. | |
uint | unit () const |
Return the unit of the item. |
Detailed Description
This is the class for one item of a KFileMimeTypeInfo.It contains every information about a KFileMetaInfoItem that this item has in common for each file of a specific mimetype.
Definition at line 267 of file kfilemetainfo.h.
Member Function Documentation
|
This method returns a translated prefix to be displayed before the value. Think e.g. of the $ in $30
Definition at line 282 of file kfilemetainfo.h. Referenced by string(). |
|
This method returns a translated suffix to be displayed after the value. Think of the kbps in 128kbps
Definition at line 293 of file kfilemetainfo.h. Referenced by string(). |
|
The items for a file are stored as a QVariant and this method can be used to get the data type of this item.
Definition at line 304 of file kfilemetainfo.h. |
|
Definition at line 312 of file kfilemetainfo.h. Referenced by KFileMetaInfo::addGroup(), and isVariableItem(). |
|
mangle is true, the string will already contain prefix and suffix
Definition at line 1437 of file kfilemetainfo.cpp. 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(). |
|
Is this item the variable item?
Definition at line 333 of file kfilemetainfo.h. References QString::isNull(), and key(). Referenced by KFileMetaInfoGroup::addItem(). |
|
Definition at line 344 of file kfilemetainfo.h. |
|
Return the attributes of the item. See KFileMimeTypeInfo::Attributes Definition at line 353 of file kfilemetainfo.h. Referenced by KFileMetaInfo::addGroup(). |
|
Return the hints for the item. Definition at line 362 of file kfilemetainfo.h. |
|
Return the unit of the item. Definition at line 371 of file kfilemetainfo.h. Referenced by string(). |
The documentation for this class was generated from the following files: