kopete/libkopete
Kopete::Properties::Property< Parent, Type > Class Template Reference
#include <kopeteproperties.h>
Inheritance diagram for Kopete::Properties::Property< Parent, Type >:

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.
Public Member Functions | |
| virtual Type | get (const Parent *parent) const =0 |
| virtual void | set (Parent *, const Type &) const =0 |
Member Function Documentation
template<class Parent, typename Type>
| virtual Type Kopete::Properties::Property< Parent, Type >::get | ( | const Parent * | parent | ) | const [pure virtual] |
Returns the value of this property in the object parent.
Implemented in Kopete::Properties::SimpleDataProperty< Parent, Type >.
template<class Parent, typename Type>
| virtual void Kopete::Properties::Property< Parent, Type >::set | ( | Parent * | , | |
| const Type & | ||||
| ) | const [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:
KDE 4.2 API Reference