Public Types
- enum Attributes { Addable = 1,
Removable = 2,
Modifiable = 4,
Cummulative = 8,
Averaged = 16
}
- enum Hint { NoHint = 0,
Name = 1,
Author = 2,
Description = 3,
Width = 4,
Height = 5,
Size = 6,
Bitrate = 7,
Length = 8,
Hidden = 9,
Thumbnail = 10
}
- enum Unit { NoUnit = 0,
Seconds = 1,
MilliSeconds = 2,
BitsPerSecond = 3,
Pixels = 4,
Inches = 5,
Centimeters = 6,
Bytes = 7,
FramesPerSecond = 8
}
- class ItemInfo
- class GroupInfo
Public Methods
Public Members
Protected Methods
Protected Members
KFileMimeTypeInfo ()
| KFileMimeTypeInfo |
enum Attributes { Addable = 1,
Removable = 2,
Modifiable = 4,
Cummulative = 8,
Averaged = 16
}
| Attributes |
This enum is used to specify some attributes that an item can have,
which fit neither in the Hint nor in the Unit enum.
Addable
The item or group can be added by a user
Removable
It can be removed
Modifiable
Its value can be edited (no meaning for a group)
Cummulative
If an application wants to display information for
more than one file, it may add up the values for this
item (e.g. play time of an mp3 file)
Averaged
Similar to Cummulative, but the average should be
calculated instead of the sum
enum Hint { NoHint = 0,
Name = 1,
Author = 2,
Description = 3,
Width = 4,
Height = 5,
Size = 6,
Bitrate = 7,
Length = 8,
Hidden = 9,
Thumbnail = 10
}
| Hint |
This enum is mainly for items that have a special meaning for some
applications.
NoHint
No hint
Name
The name or title of the document
Author
The one who created the contents of it
Description
Some information about the document
Width
A width in pixels
Height
A height in pixels
Bitrate
For media files
Length
The length of the file, also for media files
Hidden
The item is usually not shown to the user
Thumbnail
The item is a thumbnail of the file
enum Unit { NoUnit = 0,
Seconds = 1,
MilliSeconds = 2,
BitsPerSecond = 3,
Pixels = 4,
Inches = 5,
Centimeters = 6,
Bytes = 7,
FramesPerSecond = 8
}
| Unit |
This enum exists so that you can specify units for items, which you
can usually use for integer items, so an application knows how to
display it (e.g. a time in seconds in a hh:mm:ss form). You can either
use one of those units, or if you don't find one that fits, you can
add it yourself using a prefix and/or suffix.
NoUnit
None of the listed units
Seconds
The item represents a time in seconds
MilliSeconds
The item represents a time in milliseconds
BitsPerSecond
A bit rate
Pixels
For resolutions
Inches
Sizes
Centimeters
Sizes
Bytes
Some data/file size in bytes
FramesPerSecond
A frame rate
GroupInfo (class) | GroupInfo |
~KFileMimeTypeInfo ()
| ~KFileMimeTypeInfo |
[const]
Creates a validator for this item. Make sure to supply a proper
parent argument or delete the validator yourself.
[const]
[const]
[const]
[const]
const GroupInfo * groupInfo ( const QString& group )
| groupInfo |
[const]
[const]
[const]
GroupInfo * addGroupInfo ( const QString& name,
const QString& translatedName)
| addGroupInfo |
QString m_translatedName
| m_translatedName |
QDict m_itemDict
| m_itemDict |
KFileMimeTypeInfo ( const QString& mimeType )
| KFileMimeTypeInfo |
[protected]
[protected]
[protected]
[protected]
[protected]
Generated by: dfaure on faure on Tue Apr 16 08:49:48 2002, using kdoc 2.0a53. |