• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs 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:
Inheritance graph
[legend]

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
 
- Public Member Functions inherited from QMap< QString, QString >
 QMap ()
 
 QMap (const QMap< Key, QString > &other)
 
 QMap (const std::map< Key, QString > &other)
 
 ~QMap ()
 
iterator begin ()
 
const_iterator begin () const
 
void clear ()
 
const_iterator constBegin () const
 
const_iterator constEnd () const
 
const_iterator constFind (const Key &key) const
 
bool contains (const Key &key) const
 
int count () const
 
int count (const Key &key) const
 
bool empty () const
 
iterator end ()
 
const_iterator end () const
 
iterator erase (iterator pos)
 
void erase (const Key &key)
 
iterator find (const Key &key)
 
const_iterator find (const Key &key) const
 
iterator insert (const Key &key, const QString &value)
 
iterator insert (const Key &key, const QString &value, bool overwrite)
 
iterator insertMulti (const Key &key, const QString &value)
 
bool isEmpty () const
 
const Key key (const QString &value) const
 
const Key key (const QString &value, const Key &defaultKey) const
 
QList< Key > keys (const QString &value) const
 
QList< Key > keys () const
 
iterator lowerBound (const Key &key)
 
const_iterator lowerBound (const Key &key) const
 
bool operator!= (const QMap< Key, QString > &other) const
 
QMap< Key, QString > & operator= (const QMap< Key, QString > &other)
 
bool operator== (const QMap< Key, QString > &other) const
 
QString & operator[] (const Key &key)
 
const QString operator[] (const Key &key) const
 
int remove (const Key &key)
 
iterator remove (iterator it)
 
iterator replace (const Key &key, const QString &value)
 
int size () const
 
void swap (QMap< Key, QString > &other)
 
QString take (const Key &key)
 
std::map< Key, QString > toStdMap () const
 
QList< Key > uniqueKeys () const
 
QMap< Key, QString > & unite (const QMap< Key, QString > &other)
 
const_iterator upperBound (const Key &key) const
 
iterator upperBound (const Key &key)
 
const QString value (const Key &key, const QString &defaultValue) const
 
const QString value (const Key &key) const
 
QList< QString > values () const
 
QList< QString > values (const Key &key) const
 

Additional Inherited Members

- Public Attributes inherited from QMap< QString, QString >
typedef ConstIterator
 
typedef difference_type
 
typedef Iterator
 
typedef key_type
 
typedef mapped_type
 
typedef size_type
 

Detailed Description

MetaData is a simple map of key/value strings.

Definition at line 396 of file global.h.

Constructor & Destructor Documentation

KIO::MetaData::MetaData ( )
inline

Creates an empty meta data map.

Definition at line 402 of file global.h.

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

Copy constructor.

Definition at line 406 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 1297 of file global.cpp.

Member Function Documentation

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.

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.

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.

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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:55 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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

Search



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