#include <kfilemetainfo.h>
Public Methods | |
| KFileMetaInfoItem (const KFileMetaInfoItem &item) | |
| const KFileMetaInfoItem & | operator= (const KFileMetaInfoItem &item) |
| KFileMetaInfoItem () | |
| QString | key () const |
| QString | translatedKey () const |
| const QVariant & | value () const |
| QString | string (bool mangle=true) const |
| bool | setValue (const QVariant &value) |
| QVariant::Type | type () const |
| bool | isEditable () const |
| bool | isRemoved () const |
| bool | isModified () const |
| QString | prefix () const |
| QString | suffix () const |
| uint | hint () const |
| uint | unit () const |
| uint | attributes () const |
| bool | isValid () const |
Definition at line 499 of file kfilemetainfo.h.
|
|
Copy onstructor |
|
|
Default constructor. This creates an "invalid" item |
|
|
|
|
|
|
|
|
You can query if the application can edit the item and write it back to the file with this method. Note that this doesn't ensure that you have write access to the file and that enough space is available.
|
|
|
If you change an item, it is marked as "dirty". On the next KFileMetaInfo::applyChanges() , the change will be written to the file. With this method, you can ask if this item is dirty.
|
|
|
If you remove an item, it is only marked for removal for the file. On the next KFileMetaInfo::applyChanges() , it will be removed from the file. With this method, you can ask if the item is marked for removal.
|
|
|
|
|
|
|
|
|
The assignment operator, so you can do:
KFileMetaInfoItem item = info.item("Title");
This will create a shared copy of the object. The actual data is automatically deleted if all copies go out of scope |
|
|
This method returns a translated prefix to be displayed before the value. Think e.g. of the $ in $30
|
|
|
changes the value of the item |
|
|
|
|
|
This method returns a translated suffix to be displayed after the value. Think of the kbps in 128kbps *
|
|
|
|
|
|
convenience method. It does the same as value()->type()
|
|
|
|
|
|
Referenced by KFileMetaInfoGroup::value(). |
1.2.18