\section{TPProto::Admin\-Status\-Listener Class Reference}
\label{classTPProto_1_1AdminStatusListener}\index{TPProto::AdminStatusListener@{TPProto::AdminStatusListener}}
A Listener for listening for changes to the connection status.  


{\tt \#include $<$adminstatuslistener.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
virtual {\bf $\sim$Admin\-Status\-Listener} ()\label{classTPProto_1_1AdminStatusListener_b54042fbc29143e01b4424158c8f289a}

\begin{CompactList}\small\item\em Required virtual destructor. \item\end{CompactList}\item 
virtual void {\bf connected} ()=0\label{classTPProto_1_1AdminStatusListener_a1f7f826256a6b844f743a3daf9fb9c8}

\begin{CompactList}\small\item\em Called when a connection is established to a server. \item\end{CompactList}\item 
virtual bool {\bf redirected} (const std::string \&url)=0
\begin{CompactList}\small\item\em Called when libtpproto-cpp has been told to redirect. \item\end{CompactList}\item 
virtual void {\bf disconnected} ()=0\label{classTPProto_1_1AdminStatusListener_e9d1699ab10c3de7b1f4575c09e11efe}

\begin{CompactList}\small\item\em Called when the connection is lost to the server. \item\end{CompactList}\item 
virtual void {\bf logged\-In} (bool status)=0
\begin{CompactList}\small\item\em Called when the user is sucessfully logged in or not. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
A Listener for listening for changes to the connection status. 



\subsection{Member Function Documentation}
\index{TPProto::AdminStatusListener@{TPProto::Admin\-Status\-Listener}!redirected@{redirected}}
\index{redirected@{redirected}!TPProto::AdminStatusListener@{TPProto::Admin\-Status\-Listener}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool TPProto::Admin\-Status\-Listener::redirected (const std::string \& {\em url})\hspace{0.3cm}{\tt  [pure virtual]}}\label{classTPProto_1_1AdminStatusListener_54728cfa75fe0afcf8acaa7feeb18b37}


Called when libtpproto-cpp has been told to redirect. 

The client has already been disconnected from the redirecting server at this point. If the \doxyref{Admin\-Status\-Listener}{p.}{classTPProto_1_1AdminStatusListener} 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. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em url}]The url the redirection points to. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]True to follow the redirect, false not to. \end{Desc}
\index{TPProto::AdminStatusListener@{TPProto::Admin\-Status\-Listener}!loggedIn@{loggedIn}}
\index{loggedIn@{loggedIn}!TPProto::AdminStatusListener@{TPProto::Admin\-Status\-Listener}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual void TPProto::Admin\-Status\-Listener::logged\-In (bool {\em status})\hspace{0.3cm}{\tt  [pure virtual]}}\label{classTPProto_1_1AdminStatusListener_e36d61b31acbe2959c510e6a9eddcf6d}


Called when the user is sucessfully logged in or not. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em status}]True if logged in, false otherwise. \end{description}
\end{Desc}


The documentation for this class was generated from the following file:\begin{CompactItemize}
\item 
tpproto/{\bf adminstatuslistener.h}\end{CompactItemize}
