#include <simanager.h>
Inherits IqHandler.
Inheritance diagram for SIManager:


Public Types | |
| enum | SIError { NoValidStreams, BadProfile, RequestRejected } |
Public Member Functions | |
| SIManager (ClientBase *parent, bool advertise=true) | |
| virtual | ~SIManager () |
| const std::string | requestSI (SIHandler *sih, const JID &to, const std::string &profile, Tag *child1, Tag *child2=0, const std::string &mimetype="binary/octet-stream") |
| void | acceptSI (const JID &to, const std::string &id, Tag *child1, Tag *child2=0) |
| void | declineSI (const JID &to, const std::string &id, SIError reason, const std::string &text="") |
| void | registerProfile (const std::string &profile, SIProfileHandler *sih) |
| void | removeProfile (const std::string &profile) |
| virtual bool | handleIq (Stanza *stanza) |
| virtual bool | handleIqID (Stanza *stanza, int context) |
You need only one SIManager object per ClientBase instance.
Definition at line 34 of file simanager.h.
|
|
SI error conditions.
Definition at line 41 of file simanager.h. |
|
||||||||||||
|
Constructor.
Definition at line 24 of file simanager.cpp. |
|
|
Virtual destructor. Definition at line 35 of file simanager.cpp. |
|
||||||||||||||||||||
|
Call this function to accept an SI request previously announced by means of SIProfileHandler::handleSIRequest().
Definition at line 82 of file simanager.cpp. |
|
||||||||||||||||||||
|
Call this function to decline an SI request previously announced by means of SIProfileHandler::handleSIRequest().
Definition at line 97 of file simanager.cpp. |
|
|
Reimplement this function if you want to be notified about incoming IQs.
Implements IqHandler. Definition at line 151 of file simanager.cpp. |
|
||||||||||||
|
Reimplement this function if you want to be notified about incoming IQs with a specific value of the
Implements IqHandler. Definition at line 174 of file simanager.cpp. |
|
||||||||||||
|
Registers the given SIProfileHandler to handle requests for the given SI profile namespace. The profile will be advertised by disco (unless disabled in the ctor).
Definition at line 129 of file simanager.cpp. |
|
|
Un-registers the given profile.
Definition at line 140 of file simanager.cpp. |
|
||||||||||||||||||||||||||||
|
Starts negotiating a stream with a remote entity.
Definition at line 46 of file simanager.cpp. |
1.4.1