#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=EmptyString) |
| void | registerProfile (const std::string &profile, SIProfileHandler *sih) |
| void | removeProfile (const std::string &profile) |
| virtual bool | handleIq (const IQ &iq) |
| virtual void | handleIqID (const IQ &iq, 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 25 of file simanager.cpp. |
|
|
Virtual destructor. Definition at line 36 of file simanager.cpp. |
|
||||||||||||||||||||
|
Call this function to accept an SI request previously announced by means of SIProfileHandler::handleSIRequest().
Definition at line 75 of file simanager.cpp. |
|
||||||||||||||||||||
|
Call this function to decline an SI request previously announced by means of SIProfileHandler::handleSIRequest().
Definition at line 84 of file simanager.cpp. |
|
|
Reimplement this function if you want to be notified about incoming IQs.
Implements IqHandler. Definition at line 130 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 153 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 108 of file simanager.cpp. |
|
|
Un-registers the given profile.
Definition at line 119 of file simanager.cpp. |
|
||||||||||||||||||||||||||||
|
Starts negotiating a stream with a remote entity.
Definition at line 47 of file simanager.cpp. |
1.4.1