Search for usage in LXR

KDbUtils::PropertySet Class Reference

#include <KDbUtils.h>

Inheritance diagram for KDbUtils::PropertySet:

Public Member Functions

 PropertySet (const PropertySet &other)
void insert (const QByteArray &name, const QVariant &value, const QString &caption=QString())
QList< QByteArraynames () const
bool operator!= (const PropertySet &other) const
PropertySetoperator= (const PropertySet &other)
bool operator== (const PropertySet &other) const
Property property (const QByteArray &name) const
void remove (const QByteArray &name)
void setCaption (const QByteArray &name, const QString &caption)
void setValue (const QByteArray &name, const QVariant &value)

Detailed Description

A set of properties.

These properties are general-purpose and not related to Qt Properties.
See also

Definition at line 479 of file KDbUtils.h.

Constructor & Destructor Documentation

◆ PropertySet() [1/2]

PropertySet::PropertySet ( )

Definition at line 631 of file KDbUtils.cpp.

◆ PropertySet() [2/2]

PropertySet::PropertySet ( const PropertySet & other)

Definition at line 636 of file KDbUtils.cpp.

◆ ~PropertySet()

PropertySet::~PropertySet ( )

Definition at line 641 of file KDbUtils.cpp.

Member Function Documentation

◆ insert()

void PropertySet::insert ( const QByteArray & name,
const QVariant & value,
const QString & caption = QString() )

Inserts property with a given name, value and caption.

If caption is empty, caption from existing property is reused. name must be a valid identifier (see KDb::isIdentifier()).

Definition at line 660 of file KDbUtils.cpp.

◆ names()

QList< QByteArray > PropertySet::names ( ) const
a list of property names.

Definition at line 705 of file KDbUtils.cpp.

◆ operator!=()

bool KDbUtils::PropertySet::operator!= ( const PropertySet & other) const
true if this property differs in at least one property from other

Definition at line 497 of file KDbUtils.h.

◆ operator=()

PropertySet & PropertySet::operator= ( const PropertySet & other)

Assigns other to this property set and returns a reference to this property set.

Definition at line 646 of file KDbUtils.cpp.

◆ operator==()

bool PropertySet::operator== ( const PropertySet & other) const
true if this property set has exactly the same properties as other

Definition at line 655 of file KDbUtils.cpp.

◆ property()

Property PropertySet::property ( const QByteArray & name) const
property with a given name. If not found, a null Property is returned (Property::isNull).

Definition at line 699 of file KDbUtils.cpp.

◆ remove()

void PropertySet::remove ( const QByteArray & name)

Removes property with a given name.

Definition at line 694 of file KDbUtils.cpp.

◆ setCaption()

void PropertySet::setCaption ( const QByteArray & name,
const QString & caption )

Sets caption for property name to caption.

If such property does not exist, does nothing.


Definition at line 678 of file KDbUtils.cpp.

◆ setValue()

void PropertySet::setValue ( const QByteArray & name,
const QVariant & value )

Sets value for property name to value.

If such property does not exist, does nothing.


Definition at line 686 of file KDbUtils.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 12 2024 12:05:30 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.