#include <kfilemetainfo.h>
Public Methods | |
| KFileMetaInfoGroup (const KFileMetaInfoGroup &original) | |
| const KFileMetaInfoGroup & | operator= (const KFileMetaInfoGroup &info) |
| KFileMetaInfoGroup () | |
| bool | isValid () const |
| bool | isEmpty () const |
| bool | isModified () const |
| KFileMetaInfoItem | operator[] (const QString &key) const |
| KFileMetaInfoItem | item (const QString &key) const |
| KFileMetaInfoItem | item (uint hint) const |
| const QVariant | value (const QString &key) const |
| QStringList | supportedKeys () const |
| bool | supportsVariableKeys () const |
| bool | contains (const QString &key) const |
| QStringList | keys () const |
| QStringList | preferredKeys () const |
| KFileMetaInfoItem | addItem (const QString &key) |
| bool | removeItem (const QString &key) |
Definition at line 662 of file kfilemetainfo.h.
|
|
Copy onstructor |
|
|
Default constructor. This creates an "invalid" item
|
|
|
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. |
|
|
|
|
|
|
|
|
Returns true if an item as added or removed from the group.
|
|
|
|
|
|
|
|
|
This method searches for the specified item.
Referenced by operator[](), and value(). |
|
|
|
|
|
The assignment operator, so you can do:
KFileMetaInfoGroup group = info.group("Technical");
This will create a shared copy of the object. The actual data is automatically deleted if all copies go out of scope |
|
|
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(). |
|
|
|
|
|
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 |
|
|
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
|
|
|
|
|
|
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(). |
1.2.18