#include <srcp_socket.h>
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. |
Definition at line 27 of file srcp_socket.h.
SrcpThread::SrcpThread | ( | QObject * | parent = 0 |
) |
Constructor
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().
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] |
SrcpSocket* SrcpThread::_infoSocket [private] |
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().