ZNC  trunk
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() [1/2]

CAuthBase::CAuthBase ( const CString sUsername,
const CString sPassword,
CZNCSock pSock 
)
inline

Referenced by ~CAuthBase().

◆ ~CAuthBase()

virtual CAuthBase::~CAuthBase ( )
inlinevirtual

References CAuthBase(), and operator=().

◆ CAuthBase() [2/2]

CAuthBase::CAuthBase ( const CAuthBase )
delete

Member Function Documentation

◆ AcceptedLogin()

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

Implemented in CClientAuth.

Referenced by GetSocket(), and CClientAuth::Invalidate().

◆ AcceptLogin()

void CAuthBase::AcceptLogin ( CUser User)

Referenced by CClient::CClient(), and SetLoginInfo().

◆ GetPassword()

const CString& CAuthBase::GetPassword ( ) const
inline

◆ GetRemoteIP()

CString CAuthBase::GetRemoteIP ( ) const

Referenced by GetSocket().

◆ GetSocket()

Csock* CAuthBase::GetSocket ( ) const
inline

◆ GetUsername()

const CString& CAuthBase::GetUsername ( ) const
inline

◆ Invalidate()

virtual void CAuthBase::Invalidate ( )
virtual

Reimplemented in CClientAuth.

Referenced by GetSocket(), and CClientAuth::Invalidate().

◆ operator=()

CAuthBase& CAuthBase::operator= ( const CAuthBase )
delete

◆ RefusedLogin()

virtual void CAuthBase::RefusedLogin ( const CString sReason)
protectedpure virtual

Implemented in CClientAuth.

Referenced by GetSocket(), and CClientAuth::Invalidate().

◆ RefuseLogin()

void CAuthBase::RefuseLogin ( const CString sReason)

Referenced by CClient::CClient(), and SetLoginInfo().

◆ SetLoginInfo()

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

References AcceptLogin(), and RefuseLogin().


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