• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KIO

  • KIO
  • MetaData
Public Member Functions | List of all members
KIO::MetaData Class Reference

#include <global.h>

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

Public Member Functions

 MetaData ()
 
 MetaData (const QMap< QString, QString > &metaData)
 
 MetaData (const QMap< QString, QVariant > &)
 
MetaData & operator+= (const QMap< QString, QString > &metaData)
 
MetaData & operator+= (const QMap< QString, QVariant > &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 396 of file global.h.

Constructor & Destructor Documentation

◆ MetaData() [1/3]

KIO::MetaData::MetaData ( )
inline

Creates an empty meta data map.

Definition at line 402 of file global.h.

◆ MetaData() [2/3]

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

Copy constructor.

Definition at line 406 of file global.h.

◆ MetaData() [3/3]

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

Creates a meta data map from a QVaraint map.

Since
4.3.1

Definition at line 1297 of file global.cpp.

Member Function Documentation

◆ operator+=() [1/2]

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

Adds the given meta data map to this map.

Parameters
metaDatathe map to add
Returns
this map

Definition at line 420 of file global.h.

◆ operator+=() [2/2]

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
metaDatathe map to add
Returns
this map
Since
4.3.1

Definition at line 1302 of file global.cpp.

◆ operator=()

KIO::MetaData & KIO::MetaData::operator= ( const QMap< QString, QVariant > &  metaData)

Sets the given meta data map to this map.

Parameters
metaDatathe map to add
Returns
this map
Since
4.3.1

Definition at line 1314 of file global.cpp.

◆ toVariant()

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 1320 of file global.cpp.


The documentation for this class was generated from the following files:
  • global.h
  • global.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal