Recursively walk service discovery trees to find all services offered. More...
Public Member Functions | |
DiscoServiceWalker (const JID &service, IQRouter *iqRouter, size_t maxSteps=200) | |
void | beginWalk () |
Start the walk. | |
void | endWalk () |
End the walk. | |
bool | isActive () const |
Public Attributes | |
boost::signal< void(const JID &, boost::shared_ptr < DiscoInfo >)> | onServiceFound |
Emitted for each service found. | |
boost::signal< void()> | onWalkComplete |
Emitted when walking is complete. |
Recursively walk service discovery trees to find all services offered.
This stops on any disco item that's not reporting itself as a server.
Definition at line 28 of file DiscoServiceWalker.h.
Swift::DiscoServiceWalker::DiscoServiceWalker | ( | const JID & | service, | |
IQRouter * | iqRouter, | |||
size_t | maxSteps = 200 | |||
) |
void Swift::DiscoServiceWalker::beginWalk | ( | ) |
Start the walk.
Call this exactly once.
void Swift::DiscoServiceWalker::endWalk | ( | ) |
End the walk.
bool Swift::DiscoServiceWalker::isActive | ( | ) | const [inline] |
Definition at line 44 of file DiscoServiceWalker.h.
boost::signal<void(const JID&, boost::shared_ptr<DiscoInfo>)> Swift::DiscoServiceWalker::onServiceFound |
Emitted for each service found.
Definition at line 49 of file DiscoServiceWalker.h.
boost::signal<void()> Swift::DiscoServiceWalker::onWalkComplete |
Emitted when walking is complete.
Definition at line 52 of file DiscoServiceWalker.h.