ZNC  trunk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Member Functions | Static Private Member Functions | List of all members
CAuthBase Class Referenceabstract

#include <Client.h>

+ Inheritance diagram for CAuthBase:
+ Collaboration diagram for CAuthBase:

Public Member Functions

 CAuthBase (const CString &sUsername, const CString &sPassword, CZNCSock *pSock)
virtual ~CAuthBase ()
 CAuthBase (const CAuthBase &)=delete
CAuthBaseoperator= (const CAuthBase &)=delete
virtual void SetLoginInfo (const CString &sUsername, const CString &sPassword, CZNCSock *pSock)
void AcceptLogin (CUser &User)
void RefuseLogin (const CString &sReason)
const CStringGetUsername () const
const CStringGetPassword () const
CsockGetSocket () const
CString GetRemoteIP () const
virtual void Invalidate ()

Protected Member Functions

virtual void AcceptedLogin (CUser &User)=0
virtual void RefusedLogin (const CString &sReason)=0

Static Private Member Functions

static CString t_s (const CString &sEnglish, const CString &sContext="")
static CInlineFormatMessage t_f (const CString &sEnglish, const CString &sContext="")
static CInlineFormatMessage t_p (const CString &sEnglish, const CString &sEnglishes, int iNum, const CString &sContext="")
static CDelayedTranslation t_d (const CString &sEnglish, const CString &sContext="")

Constructor & Destructor Documentation

CAuthBase::CAuthBase ( const CString sUsername,
const CString sPassword,
CZNCSock pSock 
virtual CAuthBase::~CAuthBase ( )
CAuthBase::CAuthBase ( const CAuthBase )

Member Function Documentation

virtual void CAuthBase::AcceptedLogin ( CUser User)
protectedpure virtual

Implemented in CClientAuth.

void CAuthBase::AcceptLogin ( CUser User)
const CString& CAuthBase::GetPassword ( ) const
CString CAuthBase::GetRemoteIP ( ) const
Csock* CAuthBase::GetSocket ( ) const
const CString& CAuthBase::GetUsername ( ) const
virtual void CAuthBase::Invalidate ( )

Reimplemented in CClientAuth.

Referenced by CClientAuth::Invalidate().

CAuthBase& CAuthBase::operator= ( const CAuthBase )
virtual void CAuthBase::RefusedLogin ( const CString sReason)
protectedpure virtual

Implemented in CClientAuth.

void CAuthBase::RefuseLogin ( const CString sReason)
virtual void CAuthBase::SetLoginInfo ( const CString sUsername,
const CString sPassword,
CZNCSock pSock 

The documentation for this class was generated from the following file: