KFileMimeTypeInfo Class Reference
This class provides information about the capabilities that a KFilePlugin for a given mimetype has. More...
#include <kfilemetainfo.h>
Public Types | |
enum | Attributes { , MultiLine = 32, SqueezeText = 64 } |
This enum is used to specify some attributes that an item can have, which fit neither in the Hint nor in the Unit enum. More... | |
enum | Hint |
This enum is mainly for items that have a special meaning for some applications. More... | |
enum | Unit { , FramesPerSecond = 8, DotsPerInch = 9, BitsPerPixel = 10, Hertz = 11, KiloBytes = 12 } |
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. More... | |
Public Methods | |
QValidator * | createValidator (const QString &group, const QString &key, QObject *parent=0, const char *name=0) const |
Creates a validator for this item. | |
QStringList | supportedGroups () const |
Returns the list of all groups that the plugin for this mimetype supports. | |
QStringList | translatedGroups () const |
Same as the above function, but returns the strings to display to the user. | |
QStringList | preferredGroups () const |
This returns the list of groups in the preferred order that's specified in the .desktop file. | |
QString | mimeType () const |
Returns the mimetype to which this info belongs. | |
const GroupInfo * | groupInfo (const QString &group) const |
Get the group info for a specific group. | |
QStringList | supportedKeys () const |
Return a list of all supported keys without looking for a specific group. | |
QStringList | preferredKeys () const |
Return a list of all supported keys in preference order. |
Detailed Description
This class provides information about the capabilities that a KFilePlugin for a given mimetype has.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.
Definition at line 41 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 71 of file kfilemetainfo.h. |
|
This enum is mainly for items that have a special meaning for some applications.
Definition at line 98 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 133 of file kfilemetainfo.h. |
Member Function Documentation
|
Creates a validator for this item. Make sure to supply a proper parent argument or delete the validator yourself. Definition at line 1373 of file kfilemetainfo.cpp. References KFilePlugin::createValidator(), KStdAccel::key(), and mimeType(). |
|
Returns the list of all groups that the plugin for this mimetype supports.
Definition at line 1335 of file kfilemetainfo.cpp. References QDictIterator::current(). |
|
Same as the above function, but returns the strings to display to the user.
Definition at line 1345 of file kfilemetainfo.cpp. References QDictIterator::current(). |
|
This returns the list of groups in the preferred order that's specified in the .desktop file.
Definition at line 428 of file kfilemetainfo.h. |
|
Returns the mimetype to which this info belongs.
Definition at line 436 of file kfilemetainfo.h. Referenced by createValidator(). |
|
Get the group info for a specific group.
Definition at line 1322 of file kfilemetainfo.cpp. References QDict< GroupInfo >::find(). |
|
Return a list of all supported keys without looking for a specific group.
Definition at line 1355 of file kfilemetainfo.cpp. References QDictIterator::current(). |
|
Return a list of all supported keys in preference order.
Definition at line 462 of file kfilemetainfo.h. |
The documentation for this class was generated from the following files: