• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/libkopete

  • Kopete
  • Properties
  • WithProperties
Public Member Functions | Static Public Member Functions | List of all members
Kopete::Properties::WithProperties< Parent > Class Template Reference

#include <kopeteproperties.h>

Inheritance diagram for Kopete::Properties::WithProperties< Parent >:
Inheritance graph
[legend]

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:

class YourClass : public WithProperties<YourClass> { ... };

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

template<class Parent >
template<typename T >
T Kopete::Properties::WithProperties< Parent >::property ( Property< Parent, T > const &  prop)
inline

Get the value of property prop in this object.

Parameters
propthe Property object representing the property to get

Definition at line 175 of file kopeteproperties.h.

template<class Parent >
static void Kopete::Properties::WithProperties< Parent >::propertyCreated ( const PropertyBase< Parent > &  property)
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.
template<class Parent >
template<typename T >
void Kopete::Properties::WithProperties< Parent >::setProperty ( Property< Parent, T > const &  prop,
const T &  value 
)
inline

Set the value of property prop in this object.

Parameters
propthe Property object representing the property to get
valuethe 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:
  • kopeteproperties.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/libkopete

Skip menu "kopete/libkopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal