• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kio/kio
 

kio/kio

  • KFileMimeTypeInfo
  • ItemInfo
Public Member Functions | Friends | List of all members
KFileMimeTypeInfo::ItemInfo Class Reference

#include <kfilemetainfo.h>

Public Member Functions

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

Friends

class KFilePlugin
 
class GroupInfo
 

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

Member Function Documentation

uint KFileMimeTypeInfo::ItemInfo::attributes ( ) const
inline

Return the attributes of the item.

See KFileMimeTypeInfo::Attributes.

Returns
the attributes

Definition at line 341 of file kfilemetainfo.h.

uint KFileMimeTypeInfo::ItemInfo::hint ( ) const
inline

Return the hints for the item.

See KFileMimeTypeInfo::Hint

Returns
the hint

Definition at line 351 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 319 of file kfilemetainfo.h.

const TQString& KFileMimeTypeInfo::ItemInfo::key ( ) const
inline

Returns the name of the item.

Returns
the name of the item

Definition at line 296 of file kfilemetainfo.h.

const TQString& 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 265 of file kfilemetainfo.h.

TQString KFileMimeTypeInfo::ItemInfo::string ( const TQVariant &  value,
bool  mangle = true 
) const

Returns a string for the specified value, if possible.

If not, TQString::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.

Parameters
valuethe value to convert
mangleif true, the string will already contain prefix and suffix
Returns
the converted string, or TQString::null if not possible
Since
3.1

Definition at line 1603 of file kfilemetainfo.cpp.

const TQString& 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 276 of file kfilemetainfo.h.

const TQString& 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.

Returns
the translated key

Definition at line 331 of file kfilemetainfo.h.

TQVariant::Type KFileMimeTypeInfo::ItemInfo::type ( ) const
inline

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

Returns
the TQVariant type

Definition at line 287 of file kfilemetainfo.h.

uint KFileMimeTypeInfo::ItemInfo::unit ( ) const
inline

Return the unit of the item.

See KFileMimeTypeInfo::Unit

Returns
the unit

Definition at line 361 of file kfilemetainfo.h.


The documentation for this class was generated from the following files:
  • kfilemetainfo.h
  • kfilemetainfo.cpp

kio/kio

Skip menu "kio/kio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kio/kio

Skip menu "kio/kio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kio/kio by doxygen 1.8.8
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |