• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KIO

KIO::MetaData

KIO::MetaData Class Reference

MetaData is a simple map of key/value strings. More...

#include <global.h>

Inheritance diagram for KIO::MetaData:
QMap< QString, QString >

List of all members.

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 an empty meta data map.

Definition at line 385 of file global.h.

KIO::MetaData::MetaData ( const QMap< QString, QString > &  metaData  )  [inline]

Copy constructor.

Definition at line 389 of file global.h.

KIO::MetaData::MetaData ( const QMap< QString, QVariant > &  map  ) 

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.

MetaData& KIO::MetaData::operator+= ( const QMap< QString, QString > &  metaData  )  [inline]

Adds the given meta data map to this map.

Parameters:
metaData the map to add
Returns:
this map

Definition at line 403 of file global.h.

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:
  • global.h
  • global.cpp

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal