TPProto::AdminStatusListener Class Reference

A Listener for listening for changes to the connection status. More...

#include <adminstatuslistener.h>

List of all members.

Public Member Functions

virtual ~AdminStatusListener ()
 Required virtual destructor.
virtual void connected ()=0
 Called when a connection is established to a server.
virtual bool redirected (const std::string &url)=0
 Called when libtpproto-cpp has been told to redirect.
virtual void disconnected ()=0
 Called when the connection is lost to the server.
virtual void loggedIn (bool status)=0
 Called when the user is sucessfully logged in or not.


Detailed Description

A Listener for listening for changes to the connection status.


Member Function Documentation

virtual bool TPProto::AdminStatusListener::redirected ( const std::string &  url  )  [pure virtual]

Called when libtpproto-cpp has been told to redirect.

The client has already been disconnected from the redirecting server at this point. If the AdminStatusListener returns false, then the client must manually do the redirect. This should be helpful for allowing the client to pop up a dialog asking the user if they want to redirect.

Parameters:
url The url the redirection points to.
Returns:
True to follow the redirect, false not to.

virtual void TPProto::AdminStatusListener::loggedIn ( bool  status  )  [pure virtual]

Called when the user is sucessfully logged in or not.

Parameters:
status True if logged in, false otherwise.


The documentation for this class was generated from the following file:
Generated on Tue Jan 6 04:00:47 2009 for libtpproto-cpp by  doxygen 1.5.1