KFileMimeTypeInfo Class Reference
This class provides information about the capabilities that a KFilePlugin for a given mimetype has. Represents the capabilities of a KFilePlugin for a given mimetype. More...
#include <kfilemetainfo.h>
Public Types | |
enum | Attributes { Addable = 1, Removable = 2, Modifiable = 4, Cumulative = 8, Cummulative = Cumulative, Averaged = 16, MultiLine = 32, SqueezeText = 64 } |
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, DotsPerInch = 9, BitsPerPixel = 10, Hertz = 11, KiloBytes = 12, Millimeters = 13 } |
Public Member Functions | |
QValidator * | createValidator (const QString &group, const QString &key, QObject *parent=0, const char *name=0) const |
QStringList | supportedGroups () const |
QStringList | translatedGroups () const |
QStringList | preferredGroups () const |
QString | mimeType () const |
const GroupInfo * | groupInfo (const QString &group) const |
QStringList | supportedKeys () const |
QStringList | preferredKeys () const |
GroupInfo * | addGroupInfo (const QString &name, const QString &translatedName) |
Public Attributes | |
QString | m_translatedName |
QStringList | m_supportedKeys |
uint | m_attr |
QDict< ItemInfo > | m_itemDict |
Protected Member Functions | |
KFileMimeTypeInfo (const QString &mimeType) | |
Protected Attributes | |
QDict< GroupInfo > | m_groups |
QString | m_mimeType |
QStringList | m_preferredKeys |
QStringList | m_preferredGroups |
Detailed Description
This class provides information about the capabilities that a KFilePlugin for a given mimetype has. Represents the capabilities of a KFilePlugin for a given mimetype.It includes a list of metainfo groups and items together with their type, a prefix, suffix and some other information about how to use, display or edit the items.
- Author:
- Rolf Magnus
Carsten Pfeiffer
- Id
- kfilemetainfo.h,v 1.65 2004/05/03 06:00:00 pletourn Exp
Definition at line 51 of file kfilemetainfo.h.
Member Enumeration Documentation
|
This enum is used to specify some attributes that an item can have, which fit neither in the Hint nor in the Unit enum.
|
|
This enum is mainly for items that have a special meaning for some applications.
|
|
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.
|
Member Function Documentation
|
Creates a validator for this item.
Make sure to supply a proper
References KFilePlugin::createValidator(), and mimeType(). |
|
Returns the list of all groups that the plugin for this mimetype supports.
|
|
Same as the above function, but returns the strings to display to the user.
|
|
This returns the list of groups in the preferred order that's specified in the .desktop file.
|
|
Returns the mimetype to which this info belongs.
Referenced by createValidator(). |
|
Get the group info for a specific group.
|
|
Return a list of all supported keys without looking for a specific group.
|
|
Return a list of all supported keys in preference order.
|
The documentation for this class was generated from the following files: