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

#include </tmp/quassel/src/core/sessionthread.h>

Collaboration diagram for SessionThread:

Public Slots

void addClient (QObject *peer)

Signals

void initialized ()
void shutdown ()
void addRemoteClient (RemotePeer *peer)
void addInternalClient (InternalPeer *peer)

Public Member Functions

 SessionThread (UserId user, bool restoreState, QObject *parent=0)
 ~SessionThread ()
void run ()
CoreSessionsession ()
UserId user ()

Private Slots

void setSessionInitialized ()

Private Member Functions

bool isSessionInitialized ()
void addClientToSession (QObject *peer)
void addRemoteClientToSession (RemotePeer *remotePeer)
void addInternalClientToSession (InternalPeer *internalPeer)

Private Attributes

CoreSession_session
UserId _user
QList< QObject * > clientQueue
bool _sessionInitialized
bool _restoreState

Detailed Description

Definition at line 34 of file sessionthread.h.

Constructor & Destructor Documentation

SessionThread ( UserId  user,
bool  restoreState,
QObject *  parent = 0 
)

Definition at line 28 of file sessionthread.cpp.

References initialized(), and setSessionInitialized().

Definition at line 39 of file sessionthread.cpp.

Member Function Documentation

CoreSession * session ( )

Definition at line 47 of file sessionthread.cpp.

References _session.

Referenced by addInternalClientToSession(), and addRemoteClientToSession().

UserId user ( )

Definition at line 53 of file sessionthread.cpp.

References _user.

Referenced by run().

void addClient ( QObject *  peer)
slot
void setSessionInitialized ( )
privateslot

Definition at line 65 of file sessionthread.cpp.

References _sessionInitialized, addClientToSession(), and clientQueue.

Referenced by SessionThread().

void initialized ( )
signal

Referenced by run(), and SessionThread().

void shutdown ( )
signal
void addRemoteClient ( RemotePeer peer)
signal

Referenced by addRemoteClientToSession(), and run().

void addInternalClient ( InternalPeer peer)
signal

Referenced by addInternalClientToSession(), and run().

bool isSessionInitialized ( )
private

Definition at line 59 of file sessionthread.cpp.

References _sessionInitialized.

Referenced by addClient().

void addClientToSession ( QObject *  peer)
private

Definition at line 87 of file sessionthread.cpp.

References addInternalClientToSession(), and addRemoteClientToSession().

Referenced by addClient(), and setSessionInitialized().

void addRemoteClientToSession ( RemotePeer remotePeer)
private

Definition at line 105 of file sessionthread.cpp.

References addRemoteClient(), and session().

Referenced by addClientToSession().

void addInternalClientToSession ( InternalPeer internalPeer)
private

Definition at line 113 of file sessionthread.cpp.

References addInternalClient(), and session().

Referenced by addClientToSession().

Member Data Documentation

CoreSession* _session
private

Definition at line 61 of file sessionthread.h.

Referenced by run(), and session().

UserId _user
private

Definition at line 62 of file sessionthread.h.

Referenced by user().

QList<QObject *> clientQueue
private

Definition at line 63 of file sessionthread.h.

Referenced by addClient(), and setSessionInitialized().

bool _sessionInitialized
private

Definition at line 64 of file sessionthread.h.

Referenced by isSessionInitialized(), and setSessionInitialized().

bool _restoreState
private

Definition at line 65 of file sessionthread.h.

Referenced by run().


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