aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/dcc/thread.h
diff options
context:
space:
mode:
authorGravatar Szymon Tomasz Stefanek2011-01-01 20:19:56 +0000
committerGravatar Szymon Tomasz Stefanek2011-01-01 20:19:56 +0000
commitc601b5a27f74b16158adafe429faefbe573e64a2 (patch)
treea3cde3206a45628f8ac86e8dfbdab70b20c3a831 /src/modules/dcc/thread.h
parentprobable compilation fix for rijndaled/crypto++ (diff)
downloadKVIrc-c601b5a27f74b16158adafe429faefbe573e64a2.tar.gz
KVIrc-c601b5a27f74b16158adafe429faefbe573e64a2.tar.bz2
KVIrc-c601b5a27f74b16158adafe429faefbe573e64a2.zip
The big rename for modules. Still some details remaining.
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5284 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/dcc/thread.h')
-rw-r--r--src/modules/dcc/thread.h81
1 files changed, 0 insertions, 81 deletions
diff --git a/src/modules/dcc/thread.h b/src/modules/dcc/thread.h
deleted file mode 100644
index 03a981b55..000000000
--- a/src/modules/dcc/thread.h
+++ /dev/null
@@ -1,81 +0,0 @@
-#ifndef _THREAD_H_
-#define _THREAD_H_
-//=============================================================================
-//
-// File : thread.h
-// Creation date : Tue Sep 20 09 2000 18:28:44 by Szymon Stefanek
-//
-// This file is part of the KVIrc irc client distribution
-// Copyright (C) 2000-2010 Szymon Stefanek (pragma at kvirc dot net)
-//
-// This program is FREE software. You can redistribute it and/or
-// modify it under the terms of the GNU General Public License
-// as published by the Free Software Foundation; either version 2
-// of the License, or (at your opinion) any later version.
-//
-// This program is distributed in the HOPE that it will be USEFUL,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-// See the GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program. If not, write to the Free Software Foundation,
-// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-//
-//=============================================================================
-
-#include "kvi_settings.h"
-#include "KviThread.h"
-#include "kvi_sockettype.h"
-#include "KviPointerList.h"
-
-#include <QObject>
-
-#ifdef COMPILE_SSL_SUPPORT
- #include "KviSSL.h"
-#endif
-
-// KviThreadDataEvent<int>
-#define KVI_DCC_THREAD_EVENT_ERROR (KVI_THREAD_USER_EVENT_BASE + 1)
-// KviThreadDataEvent<KviCString>
-#define KVI_DCC_THREAD_EVENT_DATA (KVI_THREAD_USER_EVENT_BASE + 2)
-// KviThreadEvent
-#define KVI_DCC_THREAD_EVENT_SUCCESS (KVI_THREAD_USER_EVENT_BASE + 3)
-// KviThreadDataEvent<KviCString>
-#define KVI_DCC_THREAD_EVENT_MESSAGE (KVI_THREAD_USER_EVENT_BASE + 4)
-// KviThreadDataEvent<int>
-#define KVI_DCC_THREAD_EVENT_ACTION (KVI_THREAD_USER_EVENT_BASE + 5)
-
-typedef struct _KviDccThreadIncomingData
-{
- int iLen;
- char * buffer;
-} KviDccThreadIncomingData;
-
-class KviDccThread : public KviSensitiveThread
-{
-public:
- KviDccThread(QObject * par,kvi_socket_t fd);
- ~KviDccThread();
-protected:
- KviMutex * m_pMutex; // OWNED! PROTECTS m_pOutBuffers
- kvi_socket_t m_fd;
- QObject * m_pParent; // READ ONLY!
-#ifdef COMPILE_SSL_SUPPORT
- KviSSL * m_pSSL;
-#endif
-protected:
- bool handleInvalidSocketRead(int readLen);
-public:
- QObject * parent(){ return m_pParent; };
- void postErrorEvent(int err);
- // Warning!..newer call __tr() here!...use __tr_no_lookup()
- void postMessageEvent(const char * message);
-#ifdef COMPILE_SSL_SUPPORT
- void raiseSSLError();
- void setSSL(KviSSL * s);
- KviSSL * getSSL() const { return m_pSSL; };
-#endif
-};
-
-#endif //_THREAD_H_