Inheritance diagram for Swift::JIDDiscoInfoResponder:
Collaboration diagram for Swift::JIDDiscoInfoResponder:Classes | |
| struct | JIDDiscoInfo |
Public Member Functions | |
| JIDDiscoInfoResponder (IQRouter *router) | |
| void | clearDiscoInfo (const JID &jid) |
| void | setDiscoInfo (const JID &jid, const DiscoInfo &info) |
| void | setDiscoInfo (const JID &jid, const std::string &node, const DiscoInfo &info) |
| void | start () |
| Starts the responder. | |
| void | stop () |
| Stops the responder. | |
Protected Member Functions | |
| void | sendResponse (const JID &to, const std::string &id, boost::shared_ptr< DiscoInfo > payload) |
| Convenience function for sending an IQ response. | |
| void | sendResponse (const JID &to, const JID &from, const std::string &id, boost::shared_ptr< DiscoInfo > payload) |
| Convenience function for sending an IQ response, with a specific from address. | |
| void | sendError (const JID &to, const std::string &id, ErrorPayload::Condition condition, ErrorPayload::Type type, Payload::ref payload=Payload::ref()) |
| Convenience function for responding with an error. | |
| void | sendError (const JID &to, const JID &from, const std::string &id, ErrorPayload::Condition condition, ErrorPayload::Type type, Payload::ref payload=Payload::ref()) |
| Convenience function for responding with an error from a specific from address. | |
| IQRouter * | getIQRouter () const |
Definition at line 19 of file JIDDiscoInfoResponder.h.
| Swift::JIDDiscoInfoResponder::JIDDiscoInfoResponder | ( | IQRouter * | router | ) |
| void Swift::JIDDiscoInfoResponder::clearDiscoInfo | ( | const JID & | jid | ) |
| IQRouter* Swift::Responder< DiscoInfo >::getIQRouter | ( | ) | const [inline, protected, inherited] |
Definition at line 97 of file Responder.h.
| void Swift::Responder< DiscoInfo >::sendError | ( | const JID & | to, | |
| const JID & | from, | |||
| const std::string & | id, | |||
| ErrorPayload::Condition | condition, | |||
| ErrorPayload::Type | type, | |||
| Payload::ref | payload = Payload::ref() | |||
| ) | [inline, protected, inherited] |
Convenience function for responding with an error from a specific from address.
Definition at line 93 of file Responder.h.
| void Swift::Responder< DiscoInfo >::sendError | ( | const JID & | to, | |
| const std::string & | id, | |||
| ErrorPayload::Condition | condition, | |||
| ErrorPayload::Type | type, | |||
| Payload::ref | payload = Payload::ref() | |||
| ) | [inline, protected, inherited] |
Convenience function for responding with an error.
Definition at line 86 of file Responder.h.
| void Swift::Responder< DiscoInfo >::sendResponse | ( | const JID & | to, | |
| const JID & | from, | |||
| const std::string & | id, | |||
| boost::shared_ptr< DiscoInfo > | payload | |||
| ) | [inline, protected, inherited] |
Convenience function for sending an IQ response, with a specific from address.
Definition at line 79 of file Responder.h.
| void Swift::Responder< DiscoInfo >::sendResponse | ( | const JID & | to, | |
| const std::string & | id, | |||
| boost::shared_ptr< DiscoInfo > | payload | |||
| ) | [inline, protected, inherited] |
Convenience function for sending an IQ response.
Definition at line 72 of file Responder.h.
| void Swift::JIDDiscoInfoResponder::setDiscoInfo | ( | const JID & | jid, | |
| const std::string & | node, | |||
| const DiscoInfo & | info | |||
| ) |
| void Swift::Responder< DiscoInfo >::start | ( | ) | [inline, inherited] |
Starts the responder.
After the responder has started, it will start receiving and responding to requests.
Definition at line 39 of file Responder.h.
| void Swift::Responder< DiscoInfo >::stop | ( | ) | [inline, inherited] |
Stops the responder.
When the responder is stopped, it will no longer receive incoming requests.
Definition at line 50 of file Responder.h.
1.7.1