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

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

Inheritance diagram for Peer:

Public Slots

virtual void dispatch (const Protocol::RegisterClient &)=0
virtual void dispatch (const Protocol::ClientDenied &)=0
virtual void dispatch (const Protocol::ClientRegistered &)=0
virtual void dispatch (const Protocol::SetupData &)=0
virtual void dispatch (const Protocol::SetupFailed &)=0
virtual void dispatch (const Protocol::SetupDone &)=0
virtual void dispatch (const Protocol::Login &)=0
virtual void dispatch (const Protocol::LoginFailed &)=0
virtual void dispatch (const Protocol::LoginSuccess &)=0
virtual void dispatch (const Protocol::SessionState &)=0
virtual void dispatch (const Protocol::SyncMessage &)=0
virtual void dispatch (const Protocol::RpcCall &)=0
virtual void dispatch (const Protocol::InitRequest &)=0
virtual void dispatch (const Protocol::InitData &)=0
virtual void close (const QString &reason=QString())=0

Signals

void disconnected ()
void secureStateChanged (bool secure=true)
void lagUpdated (int msecs)

Public Member Functions

 Peer (AuthHandler *authHandler, QObject *parent=0)
virtual Protocol::Type protocol () const =0
virtual QString description () const =0
virtual SignalProxysignalProxy () const =0
virtual void setSignalProxy (SignalProxy *proxy)=0
AuthHandlerauthHandler () const
virtual bool isOpen () const =0
virtual bool isSecure () const =0
virtual bool isLocal () const =0
virtual int lag () const =0

Protected Member Functions

template<typename T >
void handle (const T &protoMessage)

Private Attributes

QPointer< AuthHandler_authHandler

Detailed Description

Definition at line 32 of file peer.h.

Constructor & Destructor Documentation

Peer ( AuthHandler authHandler,
QObject *  parent = 0 
)

Definition at line 23 of file peer.cpp.

Member Function Documentation

virtual Protocol::Type protocol ( ) const
pure virtual
virtual QString description ( ) const
pure virtual

Implemented in RemotePeer, and InternalPeer.

virtual SignalProxy* signalProxy ( ) const
pure virtual

Implemented in RemotePeer, and InternalPeer.

virtual void setSignalProxy ( SignalProxy proxy)
pure virtual
AuthHandler * authHandler ( ) const

Definition at line 31 of file peer.cpp.

References _authHandler.

virtual bool isOpen ( ) const
pure virtual

Implemented in InternalPeer, and RemotePeer.

Referenced by SignalProxy::addPeer(), and SignalProxy::dispatch().

virtual bool isSecure ( ) const
pure virtual

Implemented in InternalPeer, and RemotePeer.

Referenced by SignalProxy::updateSecureState().

virtual bool isLocal ( ) const
pure virtual

Implemented in InternalPeer, and RemotePeer.

virtual int lag ( ) const
pure virtual

Implemented in InternalPeer, and RemotePeer.

virtual void dispatch ( const Protocol::RegisterClient )
pure virtualslot
virtual void dispatch ( const Protocol::ClientDenied )
pure virtualslot

Implemented in InternalPeer, DataStreamPeer, and LegacyPeer.

virtual void dispatch ( const Protocol::ClientRegistered )
pure virtualslot

Implemented in InternalPeer, DataStreamPeer, and LegacyPeer.

virtual void dispatch ( const Protocol::SetupData )
pure virtualslot

Implemented in InternalPeer, DataStreamPeer, and LegacyPeer.

virtual void dispatch ( const Protocol::SetupFailed )
pure virtualslot

Implemented in InternalPeer, DataStreamPeer, and LegacyPeer.

virtual void dispatch ( const Protocol::SetupDone )
pure virtualslot

Implemented in InternalPeer, DataStreamPeer, and LegacyPeer.

virtual void dispatch ( const Protocol::Login )
pure virtualslot

Implemented in InternalPeer, DataStreamPeer, and LegacyPeer.

virtual void dispatch ( const Protocol::LoginFailed )
pure virtualslot

Implemented in InternalPeer, DataStreamPeer, and LegacyPeer.

virtual void dispatch ( const Protocol::LoginSuccess )
pure virtualslot

Implemented in InternalPeer, DataStreamPeer, and LegacyPeer.

virtual void dispatch ( const Protocol::SessionState )
pure virtualslot

Implemented in InternalPeer, DataStreamPeer, and LegacyPeer.

virtual void dispatch ( const Protocol::SyncMessage )
pure virtualslot

Implemented in DataStreamPeer, InternalPeer, and LegacyPeer.

virtual void dispatch ( const Protocol::RpcCall )
pure virtualslot

Implemented in DataStreamPeer, InternalPeer, and LegacyPeer.

virtual void dispatch ( const Protocol::InitRequest )
pure virtualslot

Implemented in DataStreamPeer, InternalPeer, and LegacyPeer.

virtual void dispatch ( const Protocol::InitData )
pure virtualslot

Implemented in DataStreamPeer, InternalPeer, and LegacyPeer.

virtual void close ( const QString &  reason = QString())
pure virtualslot
void secureStateChanged ( bool  secure = true)
signal

Referenced by RemotePeer::RemotePeer().

void lagUpdated ( int  msecs)
signal
void handle ( const T &  protoMessage)
inlineprotected

Definition at line 97 of file peer.h.

References Protocol::AuthHandler, and Protocol::SignalProxy.

Referenced by InternalPeer::customEvent(), and InternalPeer::dispatch().

Member Data Documentation

QPointer<AuthHandler> _authHandler
private

Definition at line 84 of file peer.h.

Referenced by authHandler().


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