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

Detailed Description
template<class Parent, typename Type>
class Kopete::Properties::SimpleDataProperty< Parent, Type >
Convenience implementation of a Property which stores a single datum as PropertyData.
This convenience class implements the Property interface by simply storing and retrieving the datum from PropertyData. This class does not provide any serialization of the data.
- Note:
- You will need to derive from this class to use it; the name function is still pure virtual.
Definition at line 291 of file kopeteproperties.h.
Public Member Functions | |
| Type | get (const Parent *p) const |
| void | set (Parent *p, const Type &v) const |
Member Function Documentation
template<class Parent, typename Type>
| Type Kopete::Properties::SimpleDataProperty< Parent, Type >::get | ( | const Parent * | parent | ) | const [inline, virtual] |
Returns the value of this property in the object parent.
Implements Kopete::Properties::Property< Parent, Type >.
Definition at line 294 of file kopeteproperties.h.
template<class Parent, typename Type>
| void Kopete::Properties::SimpleDataProperty< Parent, Type >::set | ( | Parent * | , | |
| const Type & | ||||
| ) | const [inline, virtual] |
Sets the value of this property in the object parent.
Implements Kopete::Properties::Property< Parent, Type >.
Definition at line 295 of file kopeteproperties.h.
The documentation for this class was generated from the following file:
KDE 4.2 API Reference