SrcpThread Class Reference

Implement a QThread reading the infos send by the server. More...

#include <srcp_socket.h>

List of all members.

Public Slots

void run ()
 Thread loop for reading the infos send.
void stop ()

Signals

void infoReceived (QString)
 infoReceived() is emitted if some infos were send by the server

Public Member Functions

 SrcpThread (QObject *parent=0)
 ~SrcpThread ()
 Destructor, ensure the thread is closed before deleting.

Private Attributes

SrcpSocket_infoSocket
 The SRCP info client.
bool _stopFlag
 State of the thread.


Detailed Description

Implement a QThread reading the infos send by the server.

Definition at line 27 of file srcp_socket.h.


Constructor & Destructor Documentation

SrcpThread::SrcpThread ( QObject *  parent = 0  ) 

Constructor

Parameters:
parent The parent is a SrcpSocket

Definition at line 8 of file srcp_socket.cpp.

References _infoSocket, and _stopFlag.

SrcpThread::~SrcpThread (  ) 

Destructor, ensure the thread is closed before deleting.

Definition at line 14 of file srcp_socket.cpp.

References stop().


Member Function Documentation

void SrcpThread::run (  )  [slot]

Thread loop for reading the infos send.

Definition at line 19 of file srcp_socket.cpp.

References _infoSocket, _stopFlag, infoReceived(), and SrcpSocket::srcpReadLine().

void SrcpThread::stop (  )  [slot]

Say the thread to stop. The thread will be stopped after the end of the current loop

Definition at line 34 of file srcp_socket.cpp.

References _stopFlag.

Referenced by SrcpSocket::threadSafeDisconnectFromHost(), and ~SrcpThread().

void SrcpThread::infoReceived ( QString   )  [signal]

infoReceived() is emitted if some infos were send by the server

Referenced by run().


Member Data Documentation

The SRCP info client.

Definition at line 57 of file srcp_socket.h.

Referenced by run(), and SrcpThread().

bool SrcpThread::_stopFlag [private]

State of the thread.

Definition at line 60 of file srcp_socket.h.

Referenced by run(), SrcpThread(), and stop().


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

Generated on Sun Jun 22 23:46:29 2008 for OrK by  doxygen 1.5.6