#include <privatexmlhandler.h>
Inherited by Annotations [private]
, BookmarkStorage [private]
, and RosterManager [private]
.
Inheritance diagram for PrivateXMLHandler:
Public Types | |
enum | PrivateXMLResult { PXML_STORE_OK, PXML_STORE_ERROR, PXML_REQUEST_ERROR } |
Public Member Functions | |
virtual | ~PrivateXMLHandler () |
virtual void | handlePrivateXML (const std::string &tag, Tag *xml)=0 |
virtual void | handlePrivateXMLResult (const std::string &uid, PrivateXMLResult result)=0 |
Derived classes can be registered as PrivateXMLHandlers with the PrivateXML object. Upon an incoming PrivateXML packet handlePrivateXML() will be called.
Definition at line 31 of file privatexmlhandler.h.
enum PrivateXMLResult |
Describes the possible results of a 'store' or 'request' operation.
PXML_STORE_OK | Storing was successful. |
PXML_STORE_ERROR | An error occurred while storing data in Private XML. |
PXML_REQUEST_ERROR | An error occurred while requesting Private XML. |
Definition at line 37 of file privatexmlhandler.h.
virtual ~PrivateXMLHandler | ( | ) | [inline, virtual] |
Virtual Destructor.
Definition at line 47 of file privatexmlhandler.h.
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()
.
tag | The tag of the storage packet. | |
xml | The private xml, i.e. the first child of the <query> tag. |
Implemented in Annotations, BookmarkStorage, and RosterManager.
virtual void handlePrivateXMLResult | ( | const std::string & | uid, | |
PrivateXMLResult | result | |||
) | [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()).
uid | The ID of the query. | |
result | The result of the operation. |
Implemented in Annotations, BookmarkStorage, and RosterManager.