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>
Collaboration diagram for KFileMimeTypeInfo:

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
Definition at line 48 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.
Definition at line 62 of file kfilemetainfo.h. |
|
This enum is mainly for items that have a special meaning for some applications.
Definition at line 87 of file kfilemetainfo.h. |
|
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.
Definition at line 109 of file kfilemetainfo.h. |
Member Function Documentation
|
Creates a validator for this item.
Make sure to supply a proper
Definition at line 1518 of file kfilemetainfo.cpp. References KFilePlugin::createValidator(), createValidator(), and mimeType(). Referenced by createValidator(). |
|
Returns the list of all groups that the plugin for this mimetype supports.
Definition at line 1480 of file kfilemetainfo.cpp. |
|
Same as the above function, but returns the strings to display to the user.
Definition at line 1490 of file kfilemetainfo.cpp. |
|
This returns the list of groups in the preferred order that's specified in the .desktop file.
Definition at line 419 of file kfilemetainfo.h. |
|
Returns the mimetype to which this info belongs.
Definition at line 428 of file kfilemetainfo.h. Referenced by createValidator(). |
|
Get the group info for a specific group.
Definition at line 1467 of file kfilemetainfo.cpp. References groupInfo(). Referenced by groupInfo(). |
|
Return a list of all supported keys without looking for a specific group.
Definition at line 1500 of file kfilemetainfo.cpp. |
|
Return a list of all supported keys in preference order.
Definition at line 456 of file kfilemetainfo.h. |
The documentation for this class was generated from the following files: