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

kopete/libkopete

  • Kopete
  • Properties
  • XMLProperty
Public Member Functions | List of all members
Kopete::Properties::XMLProperty< Derived, Parent, Type > Class Template Reference

#include <kopeteproperties.h>

Inheritance diagram for Kopete::Properties::XMLProperty< Derived, Parent, Type >:
Inheritance graph
[legend]

Public Member Functions

void fromXML (Parent *t, const QDomElement &e)
 
void toXML (const Parent *t, QDomElement &e)
 

Detailed Description

template<class Derived, class Parent, typename Type>
class Kopete::Properties::XMLProperty< Derived, Parent, Type >

Convenience implementation of XMLSerializable in terms of QVariants.

This class provides XML serialization for data that can be stored in a QVariant. You will need to multiply-inherit from this class and (usually indirectly) from Property.

You can combine this class with other convenience classes such as SimpleDataProperty like this:

class ContactNickNameProperty
: public SimpleDataProperty<Contact,QString>
, XMLProperty<ContactNickNameProperty,Contact,QString>
{
public:
const char *name() const { return "nickName"; }
};

Definition at line 335 of file kopeteproperties.h.

Member Function Documentation

template<class Derived , class Parent , typename Type >
void Kopete::Properties::XMLProperty< Derived, Parent, Type >::fromXML ( Parent *  t,
const QDomElement &  e 
)
inlinevirtual

Implements Kopete::Properties::XMLSerializable< Parent >.

Definition at line 338 of file kopeteproperties.h.

template<class Derived , class Parent , typename Type >
void Kopete::Properties::XMLProperty< Derived, Parent, Type >::toXML ( const Parent *  t,
QDomElement &  e 
)
inlinevirtual

Implements Kopete::Properties::XMLSerializable< Parent >.

Definition at line 342 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