Public Member Functions | Public Attributes

Swift::DiscoServiceWalker Class Reference

Recursively walk service discovery trees to find all services offered. More...

Collaboration diagram for Swift::DiscoServiceWalker:

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

Swift::DiscoServiceWalker::DiscoServiceWalker ( const JID service,
IQRouter iqRouter,
size_t  maxSteps = 200 
)

Member Function Documentation

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.


Member Data Documentation

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.

Emitted when walking is complete.

Definition at line 52 of file DiscoServiceWalker.h.