KVIrc
4.9.2
DeveloperAPIs
|
#include <DccChatWindow.h>
Public Member Functions | |
DccChatThread (KviWindow *wnd, kvi_socket_t fd) | |
virtual void | sendRawData (const void *buffer, int len) |
~DccChatThread () | |
Public Member Functions inherited from DccThread | |
DccThread (QObject *par, kvi_socket_t fd) | |
QObject * | parent () |
void | postErrorEvent (int err) |
void | postMessageEvent (const char *message) |
~DccThread () | |
Public Member Functions inherited from KviSensitiveThread | |
void | enqueueEvent (KviThreadEvent *e) |
KviSensitiveThread () | |
void | terminate () |
virtual | ~KviSensitiveThread () |
Public Member Functions inherited from KviThread | |
void | internalThreadRun_doNotTouchThis () |
bool | isRunning () |
bool | isStartingUp () |
KviThread () | |
bool | start () |
void | wait () |
virtual | ~KviThread () |
Protected Member Functions | |
virtual bool | handleIncomingData (KviDccThreadIncomingData *data, bool bCritical) |
virtual void | run () |
bool | tryFlushOutBuffers () |
Protected Member Functions inherited from DccThread | |
bool | handleInvalidSocketRead (int readLen) |
Protected Member Functions inherited from KviSensitiveThread | |
KviThreadEvent * | dequeueEvent () |
Protected Member Functions inherited from KviThread | |
void | exit () |
void | postEvent (QObject *o, QEvent *e) |
Protected Attributes | |
KviPointerList< KviDataBuffer > * | m_pOutBuffers |
Protected Attributes inherited from DccThread | |
kvi_socket_t | m_fd |
KviMutex * | m_pMutex |
QObject * | m_pParent |
Protected Attributes inherited from KviSensitiveThread | |
KviPointerList< KviThreadEvent > * | m_pLocalEventQueue |
KviMutex * | m_pLocalEventQueueMutex |
Additional Inherited Members | |
Static Public Member Functions inherited from KviThread | |
static void | msleep (unsigned long msec) |
static void | sleep (unsigned long sec) |
static void | usleep (unsigned long usec) |
DccChatThread::DccChatThread | ( | KviWindow * | wnd, |
kvi_socket_t | fd | ||
) |
References m_pOutBuffers, and KviPointerList< T >::setAutoDelete().
DccChatThread::~DccChatThread | ( | ) |
References m_pOutBuffers.
|
protectedvirtual |
References _KviDccThreadIncomingData::buffer, KviCString::cutRight(), e, KviMemory::free(), _KviDccThreadIncomingData::iLen, KVI_ASSERT, KVI_DCC_THREAD_EVENT_DATA, KviCString::lastCharIs(), KviMemory::move(), DccThread::parent(), KviThread::postEvent(), KviMemory::reallocate(), s, and KviThreadDataEvent< TData >::setData().
Referenced by run().
|
protectedvirtual |
Reimplemented from KviThread.
References _KviDccThreadIncomingData::buffer, KviSensitiveThread::dequeueEvent(), e, KviMemory::free(), handleIncomingData(), DccThread::handleInvalidSocketRead(), _KviDccThreadIncomingData::iLen, KVI_ASSERT, KVI_INVALID_SOCKET, kvi_select(), kvi_socket_close, kvi_socket_recv(), KVI_THREAD_EVENT_TERMINATE, DccThread::m_fd, KviThread::msleep(), DccThread::postErrorEvent(), KviMemory::reallocate(), KviError::SSLError, and tryFlushOutBuffers().
|
virtual |
References KviPointerList< T >::append(), KviMutex::lock(), DccThread::m_pMutex, m_pOutBuffers, and KviMutex::unlock().
Referenced by DccChatWindow::ownAction(), and DccChatWindow::ownMessage().
|
protected |
References KviPointerList< T >::first(), kvi_socket_error(), kvi_socket_send(), KviMutex::lock(), DccThread::m_fd, DccThread::m_pMutex, m_pOutBuffers, DccThread::postErrorEvent(), KviError::RemoteEndClosedConnection, KviPointerList< T >::removeFirst(), KviError::SSLError, KviError::translateSystemError(), and KviMutex::unlock().
Referenced by run().
|
protected |
Referenced by DccChatThread(), sendRawData(), tryFlushOutBuffers(), and ~DccChatThread().