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, Cummulative = 8, 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 } |
Public Methods | |
KFileMimeTypeInfo () | |
~KFileMimeTypeInfo () | |
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 Methods | |
KFileMimeTypeInfo (const QString &mimeType) | |
Protected Attributes | |
QDict< GroupInfo > | m_groups |
QString | m_mimeType |
QStringList | m_preferredKeys |
QStringList | m_preferredGroups |
Friends | |
class | KFilePlugin |
class | KFileMetaInfoProvider |
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.61 2003/10/01 07:17:39 staikos 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.
Definition at line 65 of file kfilemetainfo.h. |
|
This enum is mainly for items that have a special meaning for some applications.
Definition at line 89 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 111 of file kfilemetainfo.h. |
Member Function Documentation
|
Creates a validator for this item.
Make sure to supply a proper
Definition at line 1406 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 1368 of file kfilemetainfo.cpp. References QDictIterator::current(). |
|
Same as the above function, but returns the strings to display to the user.
Definition at line 1378 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 420 of file kfilemetainfo.h. |
|
Returns the mimetype to which this info belongs.
Definition at line 429 of file kfilemetainfo.h. Referenced by createValidator(). |
|
Get the group info for a specific group.
Definition at line 1355 of file kfilemetainfo.cpp. References QDict< GroupInfo >::find(). |
|
Return a list of all supported keys without looking for a specific group.
Definition at line 1388 of file kfilemetainfo.cpp. References QDictIterator::current(). |
|
Return a list of all supported keys in preference order.
Definition at line 457 of file kfilemetainfo.h. |
The documentation for this class was generated from the following files: