KIO
KIO::MetaData Class Reference
MetaData is a simple map of key/value strings. More...
#include <global.h>
Inheritance diagram for KIO::MetaData:

Public Member Functions | |
MetaData (const QMap< QString, QVariant > &) | |
MetaData (const QMap< QString, QString > &metaData) | |
MetaData () | |
MetaData & | operator+= (const QMap< QString, QVariant > &metaData) |
MetaData & | operator+= (const QMap< QString, QString > &metaData) |
MetaData & | operator= (const QMap< QString, QVariant > &metaData) |
QVariant | toVariant () const |
Detailed Description
MetaData is a simple map of key/value strings.
Definition at line 379 of file global.h.
Constructor & Destructor Documentation
KIO::MetaData::MetaData | ( | ) | [inline] |
Creates a meta data map from a QVaraint map.
- Since:
- 4.3.1
Definition at line 1252 of file global.cpp.
Member Function Documentation
KIO::MetaData & KIO::MetaData::operator+= | ( | const QMap< QString, QVariant > & | metaData | ) |
Same as above except the value in the map is a QVariant.
This convenience function allows you to easily assign the values of a QVariant to this meta data class.
- Parameters:
-
metaData the map to add
- Returns:
- this map
- Since:
- 4.3.1
Definition at line 1257 of file global.cpp.
KIO::MetaData & KIO::MetaData::operator= | ( | const QMap< QString, QVariant > & | metaData | ) |
Sets the given meta data map to this map.
- Parameters:
-
metaData the map to add
- Returns:
- this map
- Since:
- 4.3.1
Definition at line 1267 of file global.cpp.
QVariant KIO::MetaData::toVariant | ( | ) | const |
Returns the contents of the map as a QVariant.
- Returns:
- a QVariant representation of the meta data map.
- Since:
- 4.3.1
Definition at line 1278 of file global.cpp.
The documentation for this class was generated from the following files: