KFileMetaInfoGroup Class Reference
This is one group of meta information items about a file (see KFileMetaInfo). More...
#include <kfilemetainfo.h>
Public Member Functions | |
KFileMetaInfoGroup (const QString &name, const KFileMimeTypeInfo *info) | |
KFileMetaInfoGroup (const KFileMetaInfoGroup &original) | |
Copy onstructor. | |
const KFileMetaInfoGroup & | operator= (const KFileMetaInfoGroup &info) |
The assignment operator, so you can do:. | |
KFileMetaInfoGroup () | |
Default constructor. | |
bool | isValid () const |
bool | isEmpty () const |
bool | isModified () const |
Returns true if an item as added or removed from the group. | |
KFileMetaInfoItem | operator[] (const QString &key) const |
operator for convenience. | |
KFileMetaInfoItem | item (const QString &key) const |
This method searches for the specified item. | |
KFileMetaInfoItem | item (uint hint) const |
const QVariant | value (const QString &key) const |
Convenience function. | |
QStringList | supportedKeys () const |
Use this method to get a list of keys in the specified group that the plugin knows about. | |
bool | supportsVariableKeys () const |
bool | contains (const QString &key) const |
QStringList | keys () const |
QStringList | preferredKeys () const |
KFileMetaInfoItem | addItem (const QString &key) |
add an item to the info. | |
bool | removeItem (const QString &key) |
remove this item from the meta info of the file. | |
QStringList | removedItems () |
QString | name () const |
uint | attributes () const |
Protected Member Functions | |
void | setAdded () |
KFileMetaInfoItem | appendItem (const QString &key, const QVariant &value) |
void | ref () |
void | deref () |
Protected Attributes | |
Data * | d |
Friends | |
class | KFilePlugin |
class | KFileMetaInfo |
QDataStream & | operator>> (QDataStream &s, KFileMetaInfoGroup &) |
QDataStream & | operator<< (QDataStream &s, const KFileMetaInfoGroup &) |
Detailed Description
This is one group of meta information items about a file (see KFileMetaInfo).
Definition at line 662 of file kfilemetainfo.h.
Constructor & Destructor Documentation
|
Copy onstructor.
Definition at line 1037 of file kfilemetainfo.cpp. |
|
Default constructor. This creates an "invalid" item
Definition at line 1044 of file kfilemetainfo.cpp. |
Member Function Documentation
|
The assignment operator, so you can do:.
|
|
Definition at line 1067 of file kfilemetainfo.cpp. Referenced by removeItem(). |
|
Definition at line 1073 of file kfilemetainfo.cpp. |
|
Returns true if an item as added or removed from the group.
Definition at line 1177 of file kfilemetainfo.cpp. |
|
operator for convenience. It does the same as item(), but you cannot specify a group to search in Definition at line 729 of file kfilemetainfo.h. References item(), and KStdAccel::key(). |
|
This method searches for the specified item.
Definition at line 1142 of file kfilemetainfo.cpp. References QMapIterator::data(), and KStdAccel::key(). Referenced by addItem(), operator[](), preferredKeys(), and value(). |
|
Definition at line 1151 of file kfilemetainfo.cpp. References QMapIterator::data(). |
|
Convenience function. Returns the value of the specified key. It does the same as item(key).value() Definition at line 748 of file kfilemetainfo.h. References item(), KStdAccel::key(), and KFileMetaInfoItem::value(). |
|
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 1127 of file kfilemetainfo.cpp. |
|
Definition at line 1132 of file kfilemetainfo.cpp. |
|
Definition at line 1137 of file kfilemetainfo.cpp. References KStdAccel::key(). Referenced by KFileMetaInfo::contains(). |
|
Definition at line 1109 of file kfilemetainfo.cpp. References QMapConstIterator::data(). Referenced by preferredKeys(). |
|
Definition at line 1078 of file kfilemetainfo.cpp. References KStdAccel::end(), item(), keys(), and preferredKeys(). Referenced by preferredKeys(). |
|
add an item to the info. This is only possible if the specified key is in the supportedKeys list and not yet defined or if the group supports variable keys. Definition at line 1202 of file kfilemetainfo.cpp. References QMapIterator::data(), KFileMimeTypeInfo::ItemInfo::isVariableItem(), item(), KFileMimeTypeInfo::GroupInfo::itemInfo(), KStdAccel::key(), KFileMetaInfoItem::setAdded(), and KFileMimeTypeInfo::GroupInfo::variableItemInfo(). |
|
remove this item from the meta info of the file. You cannot query KFileMetaInfo for a removed object, but you can query for a list of removed items with removedItems() if you need to. If you re-add it, its value will be cleared Definition at line 1235 of file kfilemetainfo.cpp. References isValid(), and KStdAccel::key(). |
The documentation for this class was generated from the following files: