KEntryMap

#include <kconfigdata.h>

Inheritance diagram for KEntryMap:

Public Types

enum  EntryOption {
  EntryDirty = 1, EntryGlobal = 2, EntryImmutable = 4, EntryDeleted = 8,
  EntryExpansion = 16, EntryRawKey = 32, EntryLocalizedCountry = 64, EntryNotify = 128,
  EntryDefault = (SearchDefaults << 16), EntryLocalized = (SearchLocalized << 16)
}
 
typedef QFlags< EntryOption > EntryOptions
 
enum  SearchFlag { SearchDefaults = 1, SearchLocalized = 2 }
 
typedef QFlags< SearchFlag > SearchFlags
 

Public Member Functions

Iterator findEntry (const QByteArray &group, const QByteArray &key=QByteArray(), SearchFlags flags=SearchFlags())
 
ConstIterator findEntry (const QByteArray &group, const QByteArray &key=QByteArray(), SearchFlags flags=SearchFlags()) const
 
Iterator findExactEntry (const QByteArray &group, const QByteArray &key=QByteArray(), SearchFlags flags=SearchFlags())
 
QString getEntry (const QByteArray &group, const QByteArray &key, const QString &defaultValue=QString(), SearchFlags flags=SearchFlags(), bool *expand=nullptr) const
 
bool getEntryOption (const ConstIterator &it, EntryOption option) const
 
bool getEntryOption (const QByteArray &group, const QByteArray &key, SearchFlags flags, EntryOption option) const
 
bool hasEntry (const QByteArray &group, const QByteArray &key=QByteArray(), SearchFlags flags=SearchFlags()) const
 
bool revertEntry (const QByteArray &group, const QByteArray &key, EntryOptions options, SearchFlags flags=SearchFlags())
 
bool setEntry (const QByteArray &group, const QByteArray &key, const QByteArray &value, EntryOptions options)
 
void setEntry (const QByteArray &group, const QByteArray &key, const QString &value, EntryOptions options)
 
void setEntryOption (Iterator it, EntryOption option, bool bf)
 
void setEntryOption (const QByteArray &group, const QByteArray &key, SearchFlags flags, EntryOption option, bool bf)
 
- Public Member Functions inherited from QMap< KEntryKey, KEntry >
 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< KEntryKey, KEntry >
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

type specifying a map of entries (key,value pairs). The keys are actually a key in a particular config file group together with the group name.

Definition at line 152 of file kconfigdata.h.

Member Function Documentation

bool KEntryMap::setEntry ( const QByteArray group,
const QByteArray key,
const QByteArray value,
KEntryMap::EntryOptions  options 
)

Returns true if the entry gets dirtied or false in other case.

Definition at line 71 of file kconfigdata.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Jul 11 2020 22:47:25 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.