ZNC  trunk
Public Member Functions | Protected 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
 

Constructor & Destructor Documentation

◆ CAuthBase() [1/2]

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

◆ ~CAuthBase()

virtual CAuthBase::~CAuthBase ( )
inlinevirtual

◆ CAuthBase() [2/2]

CAuthBase::CAuthBase ( const CAuthBase )
delete

Member Function Documentation

◆ AcceptedLogin()

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

Implemented in CClientAuth.

◆ AcceptLogin()

void CAuthBase::AcceptLogin ( CUser User)

◆ GetPassword()

const CString& CAuthBase::GetPassword ( ) const
inline

◆ GetRemoteIP()

CString CAuthBase::GetRemoteIP ( ) const

◆ GetSocket()

Csock* CAuthBase::GetSocket ( ) const
inline

◆ GetUsername()

const CString& CAuthBase::GetUsername ( ) const
inline

◆ Invalidate()

virtual void CAuthBase::Invalidate ( )
virtual

Reimplemented in CClientAuth.

Referenced by CClientAuth::Invalidate().

◆ operator=()

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

◆ RefusedLogin()

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

Implemented in CClientAuth.

◆ RefuseLogin()

void CAuthBase::RefuseLogin ( const CString sReason)

◆ SetLoginInfo()

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

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