org.kde.koala
public class KFileMetaInfoGroup extends Object implements QtSupport
UNKNOWN: A group of meta information items about a file This is one group of meta information items about a file (see KFileMetaInfo). @brief A group of meta information items about a file
Constructor Summary | |
---|---|
protected | KFileMetaInfoGroup(Class dummy) |
KFileMetaInfoGroup(KFileMetaInfoGroup original)
Copy constructor | |
KFileMetaInfoGroup()
Default constructor. |
Method Summary | |
---|---|
KFileMetaInfoItem | addItem(String key)
Add an item to the info. |
protected KFileMetaInfoItem | appendItem(String key, QVariant value) |
int | attributes()
Returns the attributes of this item. |
boolean | contains(String key)
Checks whether an item with the given key exists. |
protected void | deref() |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected void | finalize() Deletes the wrapped C++ instance |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
boolean | isEmpty()
Returns false if the object contains data, true if it's empty. |
boolean | isModified()
Returns true if an item as added or removed from the group. |
boolean | isValid()
Returns true if the item is valid, i.e. if it contains data, false
if it's invalid (created with the default constructor and not been
assigned anything), or if KFileMetaInfoGroup.item() didn't find
your requested item). |
KFileMetaInfoItem | item(String key)
This method searches for the specified item. |
KFileMetaInfoItem | item(int hint)
Returns the item with the given hint. |
ArrayList | keys()
Returns a list of all keys. |
String | name()
The name of this group. |
KFileMetaInfoItem | op_at(String key)
Operator for convenience. |
ArrayList | preferredKeys()
Returns a list of all keys in preference order. |
protected void | ref() |
ArrayList | removedItems()
Returns a list of all removed items. |
boolean | removeItem(String key)
Remove this item from the meta info of the file. |
protected void | setAdded() |
ArrayList | supportedKeys()
Use this method to get a list of keys in the specified group that
the plugin knows about. |
boolean | supportsVariableKeys()
Returns true if this group supports adding or removing arbitrary
keys, false if not. |
String | translatedName()
The translated name of this group. |
QVariant | value(String key)
Convenience function. |
UNKNOWN: Copy constructor
UNKNOWN: Default constructor.
key
is in the supportedKeys list and not yet defined or if
the group supports variable keys.Parameters: key the key of the item
Returns: the KFileMetaInfoItem for the given key
UNKNOWN: Add an item to the info.
Returns: the attributes
UNKNOWN: Returns the attributes of this item.
key
exists.Returns: true if an item for this key
exists.
UNKNOWN: Checks whether an item with the given key
exists.
Returns: true if empty, false otherwise
UNKNOWN: Returns false if the object contains data, true if it's empty.
Returns: true if an item was added or removed from the group, otherwise false.
UNKNOWN: Returns true if an item as added or removed from the group.
Returns: true if valid, false if invalid
UNKNOWN: Returns true if the item is valid, i.
Parameters: key the key of the item to search
Returns: the specified item if found, an invalid item, if not
UNKNOWN: This method searches for the specified item.
hint.
Parameters: hint the hint of the item
Returns: the item with the specified hint
UNKNOWN: Returns the item with the given hint.
Returns: a list of all keys in the order they were inserted.
UNKNOWN: Returns a list of all keys.
Returns: the name of this group
UNKNOWN: The name of this group.
UNKNOWN: Operator for convenience.
Returns: a list of all keys in preference order.
UNKNOWN: Returns a list of all keys in preference order.
Returns: a list of all removed items
UNKNOWN: Returns a list of all removed items.
Parameters: key the key of the removed item
Returns: true if successful, false otherwise
UNKNOWN: Remove this item from the meta info of the file.
Returns: the list of keys supported for this mimetype
UNKNOWN: Use this method to get a list of keys in the specified group that the plugin knows about.
Returns: true is variable keys are supported, false otherwise
UNKNOWN: Returns true if this group supports adding or removing arbitrary keys, false if not.
Returns: the translated name of this group
UNKNOWN: The translated name of this group.
Parameters: key the key of the item to search
Returns: the value with the given key
UNKNOWN: Convenience function.