class ItemInfo

# class ItemInfo | This is the class for one item of a KFileMimeTypeInfo. More...
Full name | `KFileMimeTypeInfo::ItemInfo`
Definition | `#include <kfilemetainfo.h>`
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- ItemInfo ()
- 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.

ItemInfo () | ### ItemInfo

const QString& prefix () | ### prefix

[const]

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

Returns: the prefix

const QString& suffix () | ### suffix

[const]

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

Returns: the prefix

QVariant::Type 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.

Returns: the QVariant type

const QString& key () | ### key

[const]

Returns: The name of the item

QString string ( const QVariant& value, bool mangle = true ) | ### string

[const]

if `mangle` is true, the string will already contain prefix and suffix

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.

bool isVariableItem () | ### isVariableItem

[const]

Is this item the variable item?

Returns: true if it is, false if not

const QString& translatedKey () | ### translatedKey

[const]

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.

uint attributes () | ### attributes

[const]

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

uint hint () | ### hint

[const]

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

uint unit () | ### unit

[const]

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

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:57 2003, using kdoc 2.0a54.