KFileMetaInfoItem Class Reference
This is one item of the meta information about a file (see KFileMetaInfo). More...
#include <kfilemetainfo.h>
Public Types | |
typedef KFileMimeTypeInfo::Hint | Hint |
typedef KFileMimeTypeInfo::Unit | Unit |
typedef KFileMimeTypeInfo::Attributes | Attributes |
Public Member Functions | |
KFileMetaInfoItem (const KFileMimeTypeInfo::ItemInfo *mti, const QString &key, const QVariant &value) | |
KFileMetaInfoItem (const KFileMetaInfoItem &item) | |
Copy onstructor. | |
const KFileMetaInfoItem & | operator= (const KFileMetaInfoItem &item) |
The assignment operator, so you can do:. | |
KFileMetaInfoItem () | |
Default constructor. | |
QString | key () const |
QString | translatedKey () const |
const QVariant & | value () const |
QString | string (bool mangle=true) const |
bool | setValue (const QVariant &value) |
changes the value of the item | |
QVariant::Type | type () const |
convenience method. | |
bool | isEditable () const |
You can query if the application can edit the item and write it back to the file with this method. | |
bool | isRemoved () const |
If you remove an item, it is only marked for removal for the file. | |
bool | isModified () const |
If you change an item, it is marked as "dirty". | |
QString | prefix () const |
This method returns a translated prefix to be displayed before the value. | |
QString | suffix () const |
This method returns a translated suffix to be displayed after the value. | |
uint | hint () const |
uint | unit () const |
uint | attributes () const |
bool | isValid () const |
Protected Member Functions | |
void | setAdded () |
void | setRemoved () |
void | ref () |
void | deref () |
Protected Attributes | |
Data * | d |
Friends | |
class | KFileMetaInfoGroup |
QDataStream & | operator>> (QDataStream &s, KFileMetaInfoItem &) |
QDataStream & | operator>> (QDataStream &s, KFileMetaInfoGroup &) |
QDataStream & | operator<< (QDataStream &s, const KFileMetaInfoItem &) |
Detailed Description
This is one item of the meta information about a file (see KFileMetaInfo).
Definition at line 493 of file kfilemetainfo.h.
Constructor & Destructor Documentation
|
Copy onstructor.
Definition at line 96 of file kfilemetainfo.cpp. |
|
Default constructor. This creates an "invalid" item Definition at line 103 of file kfilemetainfo.cpp. |
Member Function Documentation
|
The assignment operator, so you can do:.
|
|
Definition at line 159 of file kfilemetainfo.cpp. Referenced by setValue(). |
|
Definition at line 164 of file kfilemetainfo.cpp. Referenced by KFileItem::getToolTipText(). |
|
Definition at line 176 of file kfilemetainfo.cpp. Referenced by KFileMetaInfoGroup::value(). |
|
Definition at line 181 of file kfilemetainfo.cpp. Referenced by KFileItem::getToolTipText(). |
|
changes the value of the item
Definition at line 128 of file kfilemetainfo.cpp. References QVariant::canCast(), and key(). |
|
convenience method. It does the same as value()->type()
Definition at line 186 of file kfilemetainfo.cpp. |
|
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.
Definition at line 216 of file kfilemetainfo.cpp. |
|
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 154 of file kfilemetainfo.cpp. |
|
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 191 of file kfilemetainfo.cpp. |
|
This method returns a translated prefix to be displayed before the value. Think e.g. of the $ in $30
Definition at line 196 of file kfilemetainfo.cpp. |
|
This method returns a translated suffix to be displayed after the value. Think of the kbps in 128kbps *
Definition at line 201 of file kfilemetainfo.cpp. |
|
Definition at line 206 of file kfilemetainfo.cpp. |
|
|
|
Definition at line 211 of file kfilemetainfo.cpp. |
|
Definition at line 221 of file kfilemetainfo.cpp. Referenced by KFileItem::getToolTipText(). |
The documentation for this class was generated from the following files: