KFileMetaInfoItem Class Reference
This is one item of the meta information about a file (see KFileMetaInfo).A meta information item about a file. More...
#include <kfilemetainfo.h>
Detailed Description
This is one item of the meta information about a file (see KFileMetaInfo).A meta information item about a file.
Definition at line 488 of file kfilemetainfo.h.
Constructor & Destructor Documentation
|
Copy constructor.
Definition at line 102 of file kfilemetainfo.cpp. References d. |
|
Default constructor. This creates an "invalid" item Definition at line 109 of file kfilemetainfo.cpp. References d. |
Member Function Documentation
|
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 Definition at line 120 of file kfilemetainfo.cpp. |
|
Returns the key of the item.
Definition at line 165 of file kfilemetainfo.cpp. References d. Referenced by KFileMetaInfoWidget::makeWidget(), and setValue(). |
|
Returns a translation of the key for displaying to the user. If the plugin provides translation to the key, it's also in the user's language
Definition at line 170 of file kfilemetainfo.cpp. References d. Referenced by KFileItem::getToolTipText(). |
|
Returns the value of the item.
Definition at line 182 of file kfilemetainfo.cpp. References d. Referenced by KFileMetaInfoWidget::makeBoolWidget(), KFileMetaInfoWidget::makeDateTimeWidget(), KFileMetaInfoWidget::makeDateWidget(), KFileMetaInfoWidget::makeDoubleWidget(), KFileMetaInfoWidget::makeIntWidget(), KFileMetaInfoWidget::makeStringWidget(), KFileMetaInfoWidget::makeTimeWidget(), KFileMetaInfoWidget::makeWidget(), and KFileMetaInfoGroup::value(). |
|
Returns a string containing the value, if possible. If not, QString::null is returned.
Definition at line 187 of file kfilemetainfo.cpp. References d. Referenced by KFileItem::getToolTipText(). |
|
Changes the value of the item.
Definition at line 134 of file kfilemetainfo.cpp. References QVariant::canCast(), d, kdDebug(), key(), and KFileMimeTypeInfo::Modifiable. |
|
Return the type of the item.
Definition at line 192 of file kfilemetainfo.cpp. References d. Referenced by KFileMetaInfoWidget::makeIntWidget(). |
|
You can query if the application can edit the item and write it back to the file with this method.
Definition at line 227 of file kfilemetainfo.cpp. References d, and KFileMimeTypeInfo::Modifiable. |
|
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.
Definition at line 160 of file kfilemetainfo.cpp. References d. |
|
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.
Definition at line 202 of file kfilemetainfo.cpp. References d. |
|
This method returns a translated prefix to be displayed before the value. Think e.g. of the $ in $30
Definition at line 207 of file kfilemetainfo.cpp. References d. |
|
This method returns a translated suffix to be displayed after the value. Think of the kbps in 128kbps
Definition at line 212 of file kfilemetainfo.cpp. References d. |
|
Returns the hint for this item.
Definition at line 217 of file kfilemetainfo.cpp. References d. |
|
Returns the unit for this item.
Definition at line 197 of file kfilemetainfo.cpp. References d. |
|
Returns the attributes for this item. See KFileMimeTypeInfo::Attributes.
Definition at line 222 of file kfilemetainfo.cpp. References d. Referenced by KFileItem::getToolTipText(), and KFileMetaInfoWidget::makeStringWidget(). |
|
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).
Definition at line 232 of file kfilemetainfo.cpp. References d. Referenced by FileProps::availableKeys(), KFileItem::getToolTipText(), KFileMetaInfo::item(), and KFileMetaInfo::saveItem(). |
The documentation for this class was generated from the following files: