#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", const JID &from=JID(), const std::string &sid=EmptyString) |
| void | acceptSI (const JID &to, const std::string &id, Tag *child1, Tag *child2=0, const JID &from=JID()) |
| 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 89 of file simanager.cpp. |
|
|
Virtual destructor. Definition at line 101 of file simanager.cpp. |
|
||||||||||||||||||||||||
|
Call this function to accept an SI request previously announced by means of SIProfileHandler::handleSIRequest().
Definition at line 137 of file simanager.cpp. |
|
||||||||||||||||||||
|
Call this function to decline an SI request previously announced by means of SIProfileHandler::handleSIRequest().
Definition at line 147 of file simanager.cpp. |
|
|
Reimplement this function if you want to be notified about incoming IQs.
Implements IqHandler. Definition at line 193 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 213 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 171 of file simanager.cpp. |
|
|
Un-registers the given profile.
Definition at line 182 of file simanager.cpp. |
|
||||||||||||||||||||||||||||||||||||
|
Starts negotiating a stream with a remote entity.
Definition at line 112 of file simanager.cpp. |
1.4.1