KFileMimeTypeInfo::GroupInfo Class Reference
This is the class for one group of items of a KFileMimeTypeInfo. More...
#include <kfilemetainfo.h>
Public Member Functions | |
QStringList | supportedKeys () const |
Use this method to get a list of keys in the specified group that the plugin knows about. | |
const QString & | name () const |
Use this method to get the name of the group. | |
const QString & | translatedName () const |
Use this method to get the string to display to the user as group name. | |
const ItemInfo * | itemInfo (const QString &key) const |
A group object can contain sevaral item objects (of which you can get the names with supportedKeys() . | |
uint | attributes () const |
Get the attributes of this group (see Attributes). | |
bool | supportsVariableKeys () const |
const ItemInfo * | variableItemInfo () const |
If the group supports variable keys, you can query their item info with this method. | |
Friends | |
class | KFilePlugin |
class | KFileMimeTypeInfo |
Detailed Description
This is the class for one group of items of a KFileMimeTypeInfo.It contains, among other things, the information about the group's name and a list of supported items.
Definition at line 163 of file kfilemetainfo.h.
Member Function Documentation
|
Use this method to get a list of keys in the specified group that the plugin knows about. No variable keys. For a group that doesn't support variable keys, all keys that this group may have are returned. For a group that does support them, the non-variable ones are returned. See KFileMetaInfo about variable keys
Definition at line 179 of file kfilemetainfo.h. Referenced by KFileMetaInfo::addGroup(). |
|
Use this method to get the name of the group. This string doesn't depend on the user's locale settings
Definition at line 190 of file kfilemetainfo.h. |
|
Use this method to get the string to display to the user as group name. This may be different to name() and it returns the name in the user's language
Definition at line 202 of file kfilemetainfo.h. |
|
A group object can contain sevaral item objects (of which you can get the names with supportedKeys() . With this method, you can get one of those item objects. See ItemInfo
Definition at line 1403 of file kfilemetainfo.cpp. References QDict< ItemInfo >::find(), and KStdAccel::key(). Referenced by KFileMetaInfo::addGroup(), and KFileMetaInfoGroup::addItem(). |
|
Get the attributes of this group (see Attributes).
Definition at line 221 of file kfilemetainfo.h. Referenced by KFileMetaInfo::editableGroups(). |
|
Definition at line 230 of file kfilemetainfo.h. |
|
If the group supports variable keys, you can query their item info with this method. The main reason for this is that you can get the type and attributes of variable keys.
Definition at line 242 of file kfilemetainfo.h. Referenced by KFileMetaInfoGroup::addItem(). |
The documentation for this class was generated from the following files: