kopete/libkopete
Kopete::Properties::Property< Parent, Type > Class Template Referenceabstract
#include <kopeteproperties.h>
Inheritance diagram for Kopete::Properties::Property< Parent, Type >:
Public Member Functions | |
virtual Type | get (const Parent *parent) const =0 |
virtual void | set (Parent *, const Type &) const =0 |
Public Member Functions inherited from Kopete::Properties::PropertyBase< Parent > | |
virtual const QByteArray & | name () const =0 |
Detailed Description
template<class Parent, typename Type>
class Kopete::Properties::Property< Parent, Type >
Property-type-dependent base class for properties.
This class represents a property of type Type
applicable to Parent
objects. Usage of this class is usually as simple as:
SomeParent *propertyContainer = ...
Property<SomeParent,QString> &myProperty = ...
QString value = propertyContainer->property(myProperty);
propertyContainer->setProperty(myProperty, "hello");
You should never need to call functions in this class directly.
Definition at line 88 of file kopeteproperties.h.
Member Function Documentation
template<class Parent, typename Type>
|
pure virtual |
Returns the value of this property in the object parent
.
Implemented in Kopete::Properties::SimpleDataProperty< Parent, Type >.
template<class Parent, typename Type>
|
pure virtual |
Sets the value of this property in the object parent
.
Implemented in Kopete::Properties::SimpleDataProperty< Parent, Type >.
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.