#include <privatexml.h>
Inherits IqHandler.
Inherited by Annotations, and BookmarkStorage.
Inheritance diagram for PrivateXML:


Public Member Functions | |
| PrivateXML (ClientBase *parent) | |
| virtual | ~PrivateXML () |
| std::string | requestXML (const std::string &tag, const std::string &xmlns, PrivateXMLHandler *pxh) |
| std::string | storeXML (Tag *tag, PrivateXMLHandler *pxh) |
| virtual bool | handleIq (Stanza *stanza) |
| virtual bool | handleIqID (Stanza *stanza, int context) |
Protected Attributes | |
| ClientBase * | m_parent |
Definition at line 37 of file privatexml.h.
| PrivateXML | ( | ClientBase * | parent | ) |
Constructor. Creates a new PrivateXML client that registers as IqHandler with ClientBase.
| parent | The ClientBase used for XMPP communication |
Definition at line 21 of file privatexml.cpp.
| ~PrivateXML | ( | ) | [virtual] |
Virtual destructor.
Definition at line 28 of file privatexml.cpp.
| bool handleIq | ( | Stanza * | stanza | ) | [virtual] |
Reimplement this function if you want to be notified about incoming IQs.
| stanza | The complete Stanza. |
Implements IqHandler.
Definition at line 135 of file privatexml.cpp.
| bool handleIqID | ( | Stanza * | stanza, | |
| int | context | |||
| ) | [virtual] |
Reimplement this function if you want to be notified about incoming IQs with a specific value of the id attribute. You have to enable tracking of those IDs using Client::trackID(). This is usually useful for IDs that generate a positive reply, i.e. <iq type='result' id='reg'/> where a namespace filter wouldn't work.
| stanza | The complete Stanza. | |
| context | A value to restore context, stored with ClientBase::trackID(). |
Implements IqHandler.
Definition at line 73 of file privatexml.cpp.
| std::string requestXML | ( | const std::string & | tag, | |
| const std::string & | xmlns, | |||
| PrivateXMLHandler * | pxh | |||
| ) |
Use this function to request the private XML stored in the given namespace.
| tag | Child element of the query element used to identify the requested XML fragment. | |
| xmlns | The namespace which qualifies the tag. | |
| pxh | The handler to receive the result. |
Definition at line 35 of file privatexml.cpp.
Referenced by RosterManager::fill(), Annotations::requestAnnotations(), and BookmarkStorage::requestBookmarks().
| std::string storeXML | ( | Tag * | tag, | |
| PrivateXMLHandler * | pxh | |||
| ) |
Use this function to store private XML stored in the given namespace.
| tag | The XML to store. This is the complete tag including the unique namespace. It is deleted automatically after sending it. | |
| pxh | The handler to receive the result. |
Definition at line 55 of file privatexml.cpp.
Referenced by RosterManager::setDelimiter(), Annotations::storeAnnotations(), and BookmarkStorage::storeBookmarks().
1.4.7