Quassel IRC  Pre-Release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
AuthHandler Class Reference

#include </tmp/quassel/src/common/authhandler.h>

Inheritance diagram for AuthHandler:

Public Slots

void close ()

Signals

void disconnected ()
void socketError (QAbstractSocket::SocketError error, const QString &errorString)

Public Member Functions

 AuthHandler (QObject *parent=0)
QTcpSocket * socket () const
bool isLocal () const
virtual void handle (const Protocol::RegisterClient &)
virtual void handle (const Protocol::ClientDenied &)
virtual void handle (const Protocol::ClientRegistered &)
virtual void handle (const Protocol::SetupData &)
virtual void handle (const Protocol::SetupFailed &)
virtual void handle (const Protocol::SetupDone &)
virtual void handle (const Protocol::Login &)
virtual void handle (const Protocol::LoginFailed &)
virtual void handle (const Protocol::LoginSuccess &)
virtual void handle (const Protocol::SessionState &)
template<class T >
void handle (const T &)

Protected Slots

virtual void onSocketError (QAbstractSocket::SocketError error)
virtual void onSocketDisconnected ()

Protected Member Functions

void setSocket (QTcpSocket *socket)

Private Member Functions

void invalidMessage ()

Private Attributes

QTcpSocket * _socket
bool _disconnectedSent

Detailed Description

Definition at line 30 of file authhandler.h.

Constructor & Destructor Documentation

AuthHandler ( QObject *  parent = 0)

Definition at line 25 of file authhandler.cpp.

Member Function Documentation

bool isLocal ( ) const

Definition at line 48 of file authhandler.cpp.

References socket().

virtual void handle ( const Protocol::RegisterClient )
inlinevirtual

Definition at line 41 of file authhandler.h.

References invalidMessage().

virtual void handle ( const Protocol::ClientDenied )
inlinevirtual

Definition at line 42 of file authhandler.h.

References invalidMessage().

virtual void handle ( const Protocol::ClientRegistered )
inlinevirtual

Definition at line 43 of file authhandler.h.

References invalidMessage().

virtual void handle ( const Protocol::SetupData )
inlinevirtual

Definition at line 44 of file authhandler.h.

References invalidMessage().

virtual void handle ( const Protocol::SetupFailed )
inlinevirtual

Definition at line 45 of file authhandler.h.

References invalidMessage().

virtual void handle ( const Protocol::SetupDone )
inlinevirtual

Definition at line 46 of file authhandler.h.

References invalidMessage().

virtual void handle ( const Protocol::Login )
inlinevirtual

Definition at line 47 of file authhandler.h.

References invalidMessage().

virtual void handle ( const Protocol::LoginFailed )
inlinevirtual

Definition at line 48 of file authhandler.h.

References invalidMessage().

virtual void handle ( const Protocol::LoginSuccess )
inlinevirtual

Definition at line 49 of file authhandler.h.

References invalidMessage().

virtual void handle ( const Protocol::SessionState )
inlinevirtual

Definition at line 50 of file authhandler.h.

References invalidMessage().

void handle ( const T &  )
inline

Definition at line 54 of file authhandler.h.

References invalidMessage().

void close ( )
slot

Definition at line 88 of file authhandler.cpp.

References _socket.

void disconnected ( )
signal
void socketError ( QAbstractSocket::SocketError  error,
const QString &  errorString 
)
signal

Referenced by onSocketError().

void setSocket ( QTcpSocket *  socket)
protected
void onSocketError ( QAbstractSocket::SocketError  error)
protectedvirtualslot

Definition at line 60 of file authhandler.cpp.

References _disconnectedSent, _socket, disconnected(), socket(), and socketError().

Referenced by setSocket().

void onSocketDisconnected ( )
protectedvirtualslot

Definition at line 73 of file authhandler.cpp.

References _disconnectedSent, and disconnected().

Referenced by setSocket().

void invalidMessage ( )
private

Definition at line 82 of file authhandler.cpp.

Referenced by handle().

Member Data Documentation

QTcpSocket* _socket
private

Definition at line 73 of file authhandler.h.

Referenced by close(), onSocketError(), setSocket(), and socket().

bool _disconnectedSent
private

Definition at line 74 of file authhandler.h.

Referenced by onSocketDisconnected(), and onSocketError().


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