Public Member Functions | List of all members
FlexibleOfflineHandler Class Reference

#include <flexoffhandler.h>

Public Member Functions

virtual ~FlexibleOfflineHandler ()
virtual void handleFlexibleOfflineSupport (bool support)=0
virtual void handleFlexibleOfflineMsgNum (int num)=0
virtual void handleFlexibleOfflineMessageHeaders (StringMap &headers)=0
virtual void handleFlexibleOfflineResult (FlexibleOfflineResult foResult)=0

Detailed Description

Implementation of this virtual interface allows for retrieval of offline messages following XEP-0030.

Jakob Schroeter

Definition at line 42 of file flexoffhandler.h.

Constructor & Destructor Documentation

virtual ~FlexibleOfflineHandler ( )

Virtual Destructor.

Definition at line 48 of file flexoffhandler.h.

Member Function Documentation

virtual void handleFlexibleOfflineMessageHeaders ( StringMap headers)
pure virtual

This function is called when the offline message headers arrive. Call FlexibleOffline::fetchHeaders() to trigger the check.

headersA map of ID/sender pairs describing the offline messages.
virtual void handleFlexibleOfflineMsgNum ( int  num)
pure virtual

This function is called to announce the number of available offline messages. Call FlexibleOffline::getMsgCount() to trigger the check.

numThe number of stored offline messages.
virtual void handleFlexibleOfflineResult ( FlexibleOfflineResult  foResult)
pure virtual

This function is called to indicate the result of a fetch or delete instruction.

foResultThe result of the operation.
virtual void handleFlexibleOfflineSupport ( bool  support)
pure virtual

This function is called to indicate whether the server supports XEP-0013 or not. Call FlexibleOffline::checkSupport() to trigger the check.

supportWhether the server support XEP-0013 or not.

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