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

kopete/libkopete

Kopete::Properties::Property

Kopete::Properties::Property< Parent, Type > Class Template Reference

#include <kopeteproperties.h>

Inheritance diagram for Kopete::Properties::Property< Parent, Type >:

Inheritance graph
[legend]

List of all members.


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:
  • kopeteproperties.h

kopete/libkopete

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

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal