summaryrefslogtreecommitdiffstats
path: root/src/modules/dcc/marshal.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/dcc/marshal.h')
-rw-r--r--src/modules/dcc/marshal.h35
1 files changed, 18 insertions, 17 deletions
diff --git a/src/modules/dcc/marshal.h b/src/modules/dcc/marshal.h
index 9665e09a..7b915dea 100644
--- a/src/modules/dcc/marshal.h
+++ b/src/modules/dcc/marshal.h
@@ -24,9 +24,9 @@
#include "kvi_string.h"
#include "kvi_sockettype.h"
-#include <qobject.h>
-#include <qsocketnotifier.h>
-#include <qtimer.h>
+#include <tqobject.h>
+#include <tqsocketnotifier.h>
+#include <tqtimer.h>
#include "kvi_inttypes.h"
class KviWindow;
@@ -48,26 +48,27 @@ protected:
virtual const char * dccMarshalOutputContextString() = 0;
};
-class KviDccMarshal : public QObject
+class KviDccMarshal : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
KviDccMarshal(KviDccMarshalOutputContext * ctx);
~KviDccMarshal();
protected:
// DCC DESCRIPTOR
- QString m_szIp; // Dcc initiator ip address (the one that listens)
- QString m_szPort; // Dcc initiator port (the one that listens)
+ TQString m_szIp; // Dcc initiator ip address (the one that listens)
+ TQString m_szPort; // Dcc initiator port (the one that listens)
// other info
bool m_bIpV6; // Dcc mode
kvi_u32_t m_uPort; // Dcc initiator port
bool m_bOutgoing; // true if WE have connected to the remote host (so m_szIp is the remote host ip)
- QString m_szSecondaryIp; // Ip of the client that has connected to the remote host
- QString m_szSecondaryPort; // Port of the client that has connected to the remote host
+ TQString m_szSecondaryIp; // Ip of the client that has connected to the remote host
+ TQString m_szSecondaryPort; // Port of the client that has connected to the remote host
// internals
kvi_socket_t m_fd; // socket
- QSocketNotifier * m_pSn;
- QTimer * m_pTimeoutTimer;
+ TQSocketNotifier * m_pSn;
+ TQTimer * m_pTimeoutTimer;
bool m_bUseTimeout;
#ifdef COMPILE_SSL_SUPPORT
KviSSL * m_pSSL;
@@ -75,13 +76,13 @@ protected:
#endif
KviDccMarshalOutputContext * m_pOutputContext;
public:
- const QString & dccIp() const { return m_szIp; };
- const QString & dccPort() const { return m_szPort; };
- const QString & localIp() const { return m_bOutgoing ? m_szSecondaryIp : m_szIp; };
- const QString & localPort() const { return m_bOutgoing ? m_szSecondaryPort : m_szPort; };
- const QString & remoteIp() const { return m_bOutgoing ? m_szIp : m_szSecondaryIp; };
- const QString & remotePort() const { return m_bOutgoing ? m_szPort : m_szSecondaryPort; };
- int dccListen(const QString &ip,const QString &port,bool bUseTimeout,bool bUseSSL = false);
+ const TQString & dccIp() const { return m_szIp; };
+ const TQString & dccPort() const { return m_szPort; };
+ const TQString & localIp() const { return m_bOutgoing ? m_szSecondaryIp : m_szIp; };
+ const TQString & localPort() const { return m_bOutgoing ? m_szSecondaryPort : m_szPort; };
+ const TQString & remoteIp() const { return m_bOutgoing ? m_szIp : m_szSecondaryIp; };
+ const TQString & remotePort() const { return m_bOutgoing ? m_szPort : m_szSecondaryPort; };
+ int dccListen(const TQString &ip,const TQString &port,bool bUseTimeout,bool bUseSSL = false);
int dccConnect(const char * ip,const char * port,bool bUseTimeout,bool bUseSSL = false);
kvi_socket_t releaseSocket();
#ifdef COMPILE_SSL_SUPPORT