kopete/libkopete
kopeteproperties.h
Go to the documentation of this file.
144 void setCustomPropertyData( const QByteArray &name, PropertyData *data ) const { _storage.replace( name, data ); }
150 PropertyData *getCustomPropertyData( const QByteArray &name ) const { return _storage.value(name); }
182 void setProperty( Property<Parent,T> const &prop, const T &value ) { prop.set( static_cast<Parent*>(this), value ); }
238 void customPropertyDataIncorrectType( const char *name, const std::type_info &found, const std::type_info &expected );
virtual void set(Parent *, const Type &) const =0
Sets the value of this property in the object parent.
void setProperty(Property< Parent, T > const &prop, const T &value)
Set the value of property prop in this object.
Definition: kopeteproperties.h:182
virtual void toXML(const Parent *, QDomElement &)=0
void setCustomPropertyData(const QByteArray &name, PropertyData *data) const
Sets the stored property data with name name to be data.
Definition: kopeteproperties.h:144
QVariant variantFromXML(const QDomElement &)
Definition: kopeteproperties.cpp:40
static void propertyCreated(const PropertyBase< Parent > &property)
Called when a property is created; loads the Parent object's data into the property.
Storage object for PropertyData objects.
Definition: kopeteproperties.h:122
Convenience implementation of a Property that stores PropertyData.
Definition: kopeteproperties.h:247
virtual QString toString(const Parent *)=0
virtual QString label()=0
PropertyData * getCustomPropertyData(const QByteArray &name) const
Gets the stored property data with name name.
Definition: kopeteproperties.h:150
void variantToXML(QVariant v, QDomElement &)
Definition: kopeteproperties.cpp:45
Property-type-dependent base class for properties.
Definition: kopeteproperties.h:88
An interface for properties which can be serialized as strings.
Definition: kopeteproperties.h:225
virtual Type get(const Parent *parent) const =0
Returns the value of this property in the object parent.
Convenience implementation of a PropertyData subclass which stores a single datum.
Definition: kopeteproperties.h:274
virtual ~PropertyData()
Definition: kopeteproperties.h:112
T property(Property< Parent, T > const &prop)
Get the value of property prop in this object.
Definition: kopeteproperties.h:175
Convenience implementation of a Property which stores a single datum as PropertyData.
Definition: kopeteproperties.h:291
virtual void fromString(Parent *, const QString &)=0
Base class for classes to which properties can be applied.
Definition: kopeteproperties.h:167
Property-type-independent base class for properties.
Definition: kopeteproperties.h:55
virtual QString icon()=0
void customPropertyDataIncorrectType(const char *name, const std::type_info &found, const std::type_info &expected)
Definition: kopeteproperties.cpp:30
Data * data(const Parent *c) const
Definition: kopeteproperties.h:250
Base class for property data objects.
Definition: kopeteproperties.h:110
void toXML(const Parent *t, QDomElement &e)
Definition: kopeteproperties.h:342
virtual QString userText(Parent *)=0
An interface for user-visible properties.
Definition: kopeteproperties.h:202
SimplePropertyData()
Definition: kopeteproperties.h:276
Convenience implementation of XMLSerializable in terms of QVariants.
Definition: kopeteproperties.h:335
void set(Parent *p, const Type &v) const
Sets the value of this property in the object parent.
Definition: kopeteproperties.h:295
An interface for properties which can be serialized as XML.
Definition: kopeteproperties.h:214
void fromXML(Parent *t, const QDomElement &e)
Definition: kopeteproperties.h:338
~PropertyStorage()
Definition: kopeteproperties.h:131
virtual const QByteArray & name() const =0
Returns the name of the property.
PropertyStorage()
Definition: kopeteproperties.h:130
virtual void fromXML(Parent *, const QDomElement &)=0
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:53:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.