Public Types | Public Member Functions | List of all members
PrivateXMLHandler Class Reference

#include <privatexmlhandler.h>

Inheritance diagram for PrivateXMLHandler:
Inheritance graph

Public Types

enum  PrivateXMLResult { PxmlStoreOk, PxmlStoreError, PxmlRequestError }

Public Member Functions

virtual ~PrivateXMLHandler ()
virtual void handlePrivateXML (const std::string &tag, Tag *xml)=0
virtual void handlePrivateXMLResult (const std::string &uid, PrivateXMLResult pxResult)=0

Detailed Description

A virtual interface which can be reimplemented to store and receive private XML data.

Derived classes can be registered as PrivateXMLHandlers with the PrivateXML object. Upon an incoming PrivateXML packet handlePrivateXML() will be called.

Jakob Schroeter

Definition at line 31 of file privatexmlhandler.h.

Member Enumeration Documentation

Describes the possible results of a 'store' or 'request' operation.


Storing was successful.


An error occurred while storing data in Private XML.


An error occurred while requesting Private XML.

Definition at line 37 of file privatexmlhandler.h.

Constructor & Destructor Documentation

virtual ~PrivateXMLHandler ( )

Virtual Destructor.

Definition at line 47 of file privatexmlhandler.h.

Member Function Documentation

virtual void handlePrivateXML ( const std::string &  tag,
Tag xml 
pure virtual

Reimplement this function to receive the private XML that was requested earlier using PrivateXML::requestXML().

tagThe tag of the storage packet.
xmlThe private xml, i.e. the first child of the <query> tag.

Implemented in RosterManager, BookmarkStorage, and Annotations.

virtual void handlePrivateXMLResult ( const std::string &  uid,
PrivateXMLResult  pxResult 
pure virtual

This function is called to notify about the result of a 'store' or 'request' operation (successful requests are announced by means of handlePrivateXML()).

uidThe ID of the query.
pxResultThe result of the operation.

Implemented in RosterManager, BookmarkStorage, and Annotations.

The documentation for this class was generated from the following file: