org.kde.koala
public class KFileMetaInfoItem extends Object implements QtSupport
UNKNOWN: A meta information item about a file This is one item of the meta information about a file (see KFileMetaInfo). @brief A meta information item about a file
Constructor Summary | |
---|---|
protected | KFileMetaInfoItem(Class dummy) |
KFileMetaInfoItem(KFileMetaInfoItem item)
Copy constructor | |
KFileMetaInfoItem()
Default constructor. |
Method Summary | |
---|---|
int | attributes()
Returns the attributes for this item. |
protected void | deref() |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected void | finalize() Deletes the wrapped C++ instance |
int | hint()
Returns the hint for this item. |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
boolean | isEditable()
You can query if the application can edit the item and write it back to
the file with this method. |
boolean | isModified()
If you change an item, it is marked as "dirty". |
boolean | isRemoved()
If you remove an item, it is only marked for removal for the file. |
boolean | isValid()
Return 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). |
String | key()
Returns the key of the item. |
String | prefix()
This method returns a translated prefix to be displayed before the
value. |
protected void | ref() |
protected void | setAdded() |
protected void | setRemoved() |
boolean | setValue(QVariant value)
Changes the value of the item. |
String | string(boolean mangle)
Returns a string containing the value, if possible. |
String | string() |
String | suffix()
This method returns a translated suffix to be displayed after the
value. |
String | translatedKey()
Returns a translation of the key for displaying to the user. |
int | type()
Return the type of the item. |
QVariant | value()
Returns the value of the item. |
UNKNOWN: Copy constructor
UNKNOWN: Default constructor.
Returns: the attributes
UNKNOWN: Returns the attributes for this item.
Returns: the hint
UNKNOWN: Returns the hint for this item.
Returns: true if the item's value can be changed, false if not
UNKNOWN: This doesn't ensure that you have write access to the file and that enough space is available. You can query if the application can edit the item and write it back to the file with this method.
Returns: true if the item contains changes that have not yet been written back into the file. Removing or adding an item counts as such a change
UNKNOWN: If you change an item, it is marked as "dirty".
Returns: true if the item was removed, false if not
UNKNOWN: If you remove an item, it is only marked for removal for the file.
Returns: true if valid, false if invalid
UNKNOWN: Return true if the item is valid, i.
Returns: the key of this item
UNKNOWN: Returns the key of the item.
Returns: the prefix
UNKNOWN: This method returns a translated prefix to be displayed before the value.
Parameters: value the new value
Returns: true if successful, false otherwise
UNKNOWN: Changes the value of the item.
Parameters: mangle if true, the string will already contain prefix and suffix
Returns: the value string, or null if not possible
UNKNOWN: Returns a string containing the value, if possible.
Returns: the suffix
UNKNOWN: This method returns a translated suffix to be displayed after the value.
Returns: the translated key
UNKNOWN: Returns a translation of the key for displaying to the user.
Returns: the type of the item
UNKNOWN: Return the type of the item.
Returns: the value of the item.
UNKNOWN: Returns the value of the item.