KIO::MetaData

Search for usage in LXR

KIO::MetaData Class Reference

#include <KIO/MetaData>

Inheritance diagram for KIO::MetaData:

Public Member Functions

 MetaData ()
 
 MetaData (const QMap< QString, QString > &metaData)
 
 MetaData (const QMap< QString, QVariant > &)
 
MetaDataoperator+= (const QMap< QString, QString > &metaData)
 
MetaDataoperator+= (const QMap< QString, QVariant > &metaData)
 
MetaDataoperator= (const QMap< QString, QVariant > &metaData)
 
QVariant toVariant () const
 
- Public Member Functions inherited from QMap< QString, QString >
 QMap (std::initializer_list< std::pair< Key, T > > list)
 
 QMap (QMap< Key, T > &&other)
 
 QMap (const typename std::map< Key, T > &other)
 
 QMap (const QMap< Key, T > &other)
 
QMap::iterator begin ()
 
QMap::const_iterator begin () const const
 
QMap::const_iterator cbegin () const const
 
QMap::const_iterator cend () const const
 
void clear ()
 
QMap::const_iterator constBegin () const const
 
QMap::const_iterator constEnd () const const
 
QMap::const_iterator constFind (const Key &key) const const
 
QMap::const_key_value_iterator constKeyValueBegin () const const
 
QMap::const_key_value_iterator constKeyValueEnd () const const
 
bool contains (const Key &key) const const
 
int count (const Key &key) const const
 
int count () const const
 
bool empty () const const
 
QMap::const_iterator end () const const
 
QMap::iterator end ()
 
QPair< QMap::iterator, QMap::iteratorequal_range (const Key &key)
 
QPair< QMap::const_iterator, QMap::const_iteratorequal_range (const Key &key) const const
 
QMap::iterator erase (QMap::iterator pos)
 
QMap::iterator find (const Key &key)
 
QMap::const_iterator find (const Key &key) const const
 
T & first ()
 
const T & first () const const
 
const Key & firstKey () const const
 
QMap::iterator insert (QMap::const_iterator pos, const Key &key, const T &value)
 
QMap::iterator insert (const Key &key, const T &value)
 
void insert (const QMap< Key, T > &map)
 
QMap::iterator insertMulti (QMap::const_iterator pos, const Key &key, const T &value)
 
QMap::iterator insertMulti (const Key &key, const T &value)
 
bool isEmpty () const const
 
const Key key (const T &value, const Key &defaultKey) const const
 
QMap::key_iterator keyBegin () const const
 
QMap::key_iterator keyEnd () const const
 
QList< Key > keys (const T &value) const const
 
QList< Key > keys () const const
 
QMap::key_value_iterator keyValueBegin ()
 
QMap::const_key_value_iterator keyValueBegin () const const
 
QMap::const_key_value_iterator keyValueEnd () const const
 
QMap::key_value_iterator keyValueEnd ()
 
T & last ()
 
const T & last () const const
 
const Key & lastKey () const const
 
QMap::const_iterator lowerBound (const Key &key) const const
 
QMap::iterator lowerBound (const Key &key)
 
bool operator!= (const QMap< Key, T > &other) const const
 
QDataStreamoperator<< (QDataStream &out, const QMap< Key, T > &map)
 
QMap< Key, T > & operator= (QMap< Key, T > &&other)
 
QMap< Key, T > & operator= (const QMap< Key, T > &other)
 
bool operator== (const QMap< Key, T > &other) const const
 
QDataStreamoperator>> (QDataStream &in, QMap< Key, T > &map)
 
T & operator[] (const Key &key)
 
const T operator[] (const Key &key) const const
 
int remove (const Key &key)
 
int size () const const
 
void swap (QMap< Key, T > &other)
 
take (const Key &key)
 
std::map< Key, T > toStdMap () const const
 
QList< Key > uniqueKeys () const const
 
QMap< Key, T > & unite (const QMap< Key, T > &other)
 
QMap::const_iterator upperBound (const Key &key) const const
 
QMap::iterator upperBound (const Key &key)
 
const T value (const Key &key, const T &defaultValue) const const
 
QList< T > values (const Key &key) const const
 
QList< T > values () const const
 

Additional Inherited Members

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

Detailed Description

MetaData is a simple map of key/value strings.

Definition at line 22 of file metadata.h.

Constructor & Destructor Documentation

KIO::MetaData::MetaData ( )
inline

Creates an empty meta data map.

Definition at line 28 of file metadata.h.

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

Copy constructor.

Definition at line 35 of file metadata.h.

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

Creates a meta data map from a QVaraint map.

Since
4.3.1

Definition at line 89 of file metadata.h.

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 51 of file metadata.h.

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

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 94 of file metadata.h.

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

Sets the given meta data map to this map.

Parameters
metaDatathe map to add
Returns
this map
Since
4.3.1

Definition at line 106 of file metadata.h.

QVariant KIO::MetaData::toVariant ( ) const
inline

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 112 of file metadata.h.


The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Nov 30 2021 22:53:41 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.