#include <adminstatuslistener.h>
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. | |
| 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.
| url | The url the redirection points to. |
| virtual void TPProto::AdminStatusListener::loggedIn | ( | bool | status | ) | [pure virtual] |
Called when the user is sucessfully logged in or not.
| status | True if logged in, false otherwise. |
1.5.1