gloox  0.9.9.12
Public Member Functions | List of all members
SIHandler Class Reference

#include <sihandler.h>

Inheritance diagram for SIHandler:
Inheritance graph
[legend]

Public Member Functions

virtual ~SIHandler ()
virtual void handleSIRequestResult (const JID &from, const std::string &sid, Tag *si, Tag *ptag, Tag *fneg)=0
virtual void handleSIRequestError (Stanza *stanza, const std::string &sid)=0

Detailed Description

An abstract base class to handle results of outgoing SI requests, i.e. you requested a stream (using SIManager::requestSI()) to send a file to a remote entity.

You should usually not need to use this class directly, unless your profile is not supported by gloox.

Author
Jakob Schroeter js@ca.nosp@m.maya.nosp@m..net
Since
0.9

Definition at line 36 of file sihandler.h.

Constructor & Destructor Documentation

virtual ~SIHandler ( )
inlinevirtual

Virtual destructor.

Definition at line 43 of file sihandler.h.

Member Function Documentation

virtual void handleSIRequestError ( Stanza stanza,
const std::string &  sid 
)
pure virtual

This function is called to handle a request error or decline.

Parameters
stanzaThe complete error stanza.
sidThe request's SID.

Implemented in SIProfileFT.

virtual void handleSIRequestResult ( const JID from,
const std::string &  sid,
Tag si,
Tag ptag,
Tag fneg 
)
pure virtual

This function is called to handle results of outgoing SI requests, i.e. you requested a stream (using SIManager::requestSI()) to send a file to a remote entity.

Parameters
fromThe SI receiver.
sidThe stream ID.
siThe request's complete <si/> Tag.
ptagThe profile-specific child of the SI request. May be 0.
fnegThe <feature/> child of the SI request. May be 0 (but should not be).

Implemented in SIProfileFT.


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