Public Member Functions | |
SoftwareVersionResponder (IQRouter *router) | |
void | setVersion (const std::string &client, const std::string &version, const std::string &os="") |
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< SoftwareVersion > payload) |
Convenience function for sending an IQ response. | |
void | sendResponse (const JID &to, const JID &from, const std::string &id, boost::shared_ptr< SoftwareVersion > 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 16 of file SoftwareVersionResponder.h.
Swift::SoftwareVersionResponder::SoftwareVersionResponder | ( | IQRouter * | router | ) |
IQRouter* Swift::Responder< SoftwareVersion >::getIQRouter | ( | ) | const [inline, protected, inherited] |
Definition at line 97 of file Responder.h.
void Swift::Responder< SoftwareVersion >::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< SoftwareVersion >::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< SoftwareVersion >::sendResponse | ( | const JID & | to, | |
const JID & | from, | |||
const std::string & | id, | |||
boost::shared_ptr< SoftwareVersion > | 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< SoftwareVersion >::sendResponse | ( | const JID & | to, | |
const std::string & | id, | |||
boost::shared_ptr< SoftwareVersion > | payload | |||
) | [inline, protected, inherited] |
Convenience function for sending an IQ response.
Definition at line 72 of file Responder.h.
void Swift::SoftwareVersionResponder::setVersion | ( | const std::string & | client, | |
const std::string & | version, | |||
const std::string & | os = "" | |||
) |
void Swift::Responder< SoftwareVersion >::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< SoftwareVersion >::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.