kopete/libkopete
#include <kopeteproperties.h>
Public Member Functions | |
template<typename T > | |
T | property (Property< Parent, T > const &prop) |
template<typename T > | |
void | setProperty (Property< Parent, T > const &prop, const T &value) |
Public Member Functions inherited from Kopete::Properties::PropertyStorage | |
PropertyStorage () | |
~PropertyStorage () | |
PropertyData * | getCustomPropertyData (const QByteArray &name) const |
void | setCustomPropertyData (const QByteArray &name, PropertyData *data) const |
Static Public Member Functions | |
static void | propertyCreated (const PropertyBase< Parent > &property) |
Detailed Description
template<class Parent>
class Kopete::Properties::WithProperties< Parent >
Base class for classes to which properties can be applied.
This class provides support for properties to another class. If you want your class to support properties, derive from this passing your class as the Parent parameter:
You will also need to explicitly specify the propertyCreated() member function to load property data upon creation of a new property object.
Definition at line 167 of file kopeteproperties.h.
Member Function Documentation
|
inline |
Get the value of property prop
in this object.
- Parameters
-
prop the Property object representing the property to get
Definition at line 175 of file kopeteproperties.h.
|
static |
Called when a property is created; loads the Parent object's data into the property.
- Note
- Derived classes must explicitly specialize this to load the property's data into every object of this type.
|
inline |
Set the value of property prop
in this object.
- Parameters
-
prop the Property object representing the property to get value the value to set the property to
Definition at line 182 of file kopeteproperties.h.
The documentation for this class was generated from the following file:
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.