#include <flexoff.h>
Inherits DiscoHandler, and IqHandler.
Inheritance diagram for FlexibleOffline:
Public Member Functions | |
FlexibleOffline (ClientBase *parent, Disco *disco) | |
virtual | ~FlexibleOffline () |
void | checkSupport () |
void | getMsgCount () |
void | fetchHeaders () |
void | fetchMessages (const StringList &msgs) |
void | removeMessages (const StringList &msgs) |
void | registerFlexibleOfflineHandler (FlexibleOfflineHandler *foh) |
void | removeFlexibleOfflineHandler () |
virtual void | handleDiscoInfoResult (Stanza *stanza, int context) |
virtual void | handleDiscoItemsResult (Stanza *stanza, int contex) |
virtual void | handleDiscoError (Stanza *stanza, int context) |
virtual bool | handleIqID (Stanza *stanza, int context) |
virtual bool | handleIq (Stanza *) |
Use the FlexibleOfflineHandler to receive results.
Definition at line 33 of file flexoff.h.
|
Creates a new FlexibleOffline object that manages retrieval of offline messages.
Definition at line 20 of file flexoff.cpp. |
|
Virtual Destructor. Definition at line 25 of file flexoff.cpp. |
|
Initiates querying the server for Flexible Offline Message Retrieval-support. The result is announced through the FlexibleOfflineHandler. An application could cache the result on a per-server basis to eliminate the associated delay. Definition at line 29 of file flexoff.cpp. References Disco::getDiscoInfo(), ClientBase::jid(), and JID::server(). |
|
Initiates fetching the offline message headers. The result is announced through the FlexibleOfflineHandler. Definition at line 39 of file flexoff.cpp. References Disco::getDiscoItems(), ClientBase::jid(), and JID::server(). |
|
Initiates fetching of one or more specific messages, or all messages. The result is announced through the FlexibleOfflineHandler. If the list of message nodes contains one or more nodes, the corresponding messages are fetched. If the list is empty all messages are fetched (<fetch>).
Definition at line 44 of file flexoff.cpp. References Tag::addAttrib(), Tag::addChild(), and ClientBase::getID(). |
|
Asks the server for the number of stored offline messages. The result is announced through the FlexibleOfflineHandler. Definition at line 34 of file flexoff.cpp. References Disco::getDiscoInfo(), ClientBase::jid(), and JID::server(). |
|
Reimplement this function to receive disco error notifications.
Implements DiscoHandler. Definition at line 148 of file flexoff.cpp. |
|
Reimplement this function if you want to be notified about the result of an disco::info query.
Implements DiscoHandler. Definition at line 106 of file flexoff.cpp. References Tag::findChild(), FlexibleOfflineHandler::handleFlexibleOfflineMsgNum(), FlexibleOfflineHandler::handleFlexibleOfflineSupport(), and Tag::hasChild(). |
|
Reimplement this function if you want to be notified about the result of an disco::items query.
Implements DiscoHandler. Definition at line 129 of file flexoff.cpp. References Tag::children(), Tag::findChild(), FlexibleOfflineHandler::handleFlexibleOfflineMessageHeaders(), and Tag::hasAttribute(). |
|
Reimplement this function if you want to be notified about incoming IQs.
Implements IqHandler. |
|
Reimplement this function if you want to be notified about incoming IQs with a specific value of the
Implements IqHandler. Definition at line 152 of file flexoff.cpp. References Stanza::error(), FlexibleOfflineHandler::FOMR_FORBIDDEN, FlexibleOfflineHandler::FOMR_ITEM_NOT_FOUND, FlexibleOfflineHandler::FOMR_REQUEST_SUCCESS, FlexibleOfflineHandler::FOMR_UNKNOWN_ERROR, FlexibleOfflineHandler::handleFlexibleOfflineResult(), gloox::ST_ERROR_FORBIDDEN, gloox::ST_ERROR_ITEM_NOT_FOUND, gloox::STANZA_IQ_ERROR, gloox::STANZA_IQ_RESULT, and Stanza::subtype(). |
|
Registers a FlexibleOfflineHandler as object that receives results of JEP-0013 queries. Only one Handler at a time is possible.
Definition at line 96 of file flexoff.cpp. |
|
Removes the registered handler. Definition at line 101 of file flexoff.cpp. |
|
Initiates removing of one or more specific messages, or all messages. The result is announced through the FlexibleOfflineHandler. If the list of message nodes contains one or more nodes, the corresponding messages are removed. If the list is empty all messages are removed (<purge>). Definition at line 70 of file flexoff.cpp. References Tag::addAttrib(), Tag::addChild(), and ClientBase::getID(). |