Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KFileMimeTypeInfo::ItemInfo Class Reference

#include <kfilemetainfo.h>

List of all members.

Public Methods

const QString & prefix () const
const QString & suffix () const
QVariant::Type type () const
const QString & key () const
QString string (const QVariant &value, bool mangle=true) const
bool isVariableItem () const
const QString & translatedKey () const
uint attributes () const
uint hint () const
uint unit () const


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 273 of file kfilemetainfo.h.


Member Function Documentation

uint KFileMimeTypeInfo::ItemInfo::attributes   const [inline]
 

Return the attributes of the item. See KFileMimeTypeInfo::Attributes

Definition at line 359 of file kfilemetainfo.h.

uint KFileMimeTypeInfo::ItemInfo::hint   const [inline]
 

Return the hints for the item. See KFileMimeTypeInfo::Hint

Definition at line 368 of file kfilemetainfo.h.

bool KFileMimeTypeInfo::ItemInfo::isVariableItem   const [inline]
 

Is this item the variable item?

Returns:
true if it is, false if not

Definition at line 339 of file kfilemetainfo.h.

References key().

const QString& KFileMimeTypeInfo::ItemInfo::key   const [inline]
 

Returns:
The name of the item

Definition at line 318 of file kfilemetainfo.h.

Referenced by isVariableItem().

const QString& KFileMimeTypeInfo::ItemInfo::prefix   const [inline]
 

This method returns a translated prefix to be displayed before the value. Think e.g. of the $ in $30

Returns:
the prefix

Definition at line 288 of file kfilemetainfo.h.

QString KFileMimeTypeInfo::ItemInfo::string const QVariant &    value,
bool    mangle = true
const
 

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.
if mangle is true, the string will already contain prefix and suffix
Since:
3.1

const QString& KFileMimeTypeInfo::ItemInfo::suffix   const [inline]
 

This method returns a translated suffix to be displayed after the value. Think of the kbps in 128kbps

Returns:
the prefix

Definition at line 299 of file kfilemetainfo.h.

const QString& KFileMimeTypeInfo::ItemInfo::translatedKey   const [inline]
 

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.

Definition at line 350 of file kfilemetainfo.h.

QVariant::Type KFileMimeTypeInfo::ItemInfo::type   const [inline]
 

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

Returns:
the QVariant type

Definition at line 310 of file kfilemetainfo.h.

uint KFileMimeTypeInfo::ItemInfo::unit   const [inline]
 

Return the unit of the item. See KFileMimeTypeInfo::Unit

Definition at line 377 of file kfilemetainfo.h.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:13 2003 for kdelibs by doxygen1.2.18