summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/irc/libkirc/kirctransfer.h
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/irc/libkirc/kirctransfer.h')
-rw-r--r--kopete/protocols/irc/libkirc/kirctransfer.h63
1 files changed, 32 insertions, 31 deletions
diff --git a/kopete/protocols/irc/libkirc/kirctransfer.h b/kopete/protocols/irc/libkirc/kirctransfer.h
index 36d8de32..3794e744 100644
--- a/kopete/protocols/irc/libkirc/kirctransfer.h
+++ b/kopete/protocols/irc/libkirc/kirctransfer.h
@@ -34,9 +34,10 @@ namespace KIRC
class Engine;
class Transfer
- : public QObject
+ : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
enum Type {
@@ -46,7 +47,7 @@ public:
FileIncoming
};
- enum Status {
+ enum tqStatus {
Error_NoSocket = -2,
Error = -1,
Idle = 0,
@@ -58,39 +59,39 @@ public:
public:
Transfer( KIRC::Engine *engine, TQString nick,// TQString nick_peer_adress
Type type = Unknown,
- TQObject *parent = 0L, const char *name = 0L );
+ TQObject *tqparent = 0L, const char *name = 0L );
Transfer( KIRC::Engine *engine, TQString nick,// TQString nick_peer_adress,
- TQHostAddress peer_address, Q_UINT16 peer_port,
+ TQHostAddress peer_address, TQ_UINT16 peer_port,
Transfer::Type type,
- TQObject *parent = 0L, const char *name = 0L );
+ TQObject *tqparent = 0L, const char *name = 0L );
Transfer( KIRC::Engine *engine, TQString nick,// TQString nick_peer_adress,
Transfer::Type type,
- TQString fileName, Q_UINT32 fileSize,
- TQObject *parent = 0L, const char *name = 0L );
+ TQString fileName, TQ_UINT32 fileSize,
+ TQObject *tqparent = 0L, const char *name = 0L );
Transfer( KIRC::Engine *engine, TQString nick,// TQString nick_peer_adress,
- TQHostAddress peer_address, Q_UINT16 peer_port,
+ TQHostAddress peer_address, TQ_UINT16 peer_port,
Transfer::Type type,
- TQString fileName, Q_UINT32 fileSize,
- TQObject *parent = 0L, const char *name = 0L );
+ TQString fileName, TQ_UINT32 fileSize,
+ TQObject *tqparent = 0L, const char *name = 0L );
/*
For a file transfer properties are:
KExntendedSocket *socket
or
- QHostAddress peerAddress
- Q_UINT16 peerPort
+ TQHostAddress peerAddress
+ TQ_UINT16 peerPort
for determining the socket.
- QString fileName
- Q_UINT32 fileSize
+ TQString fileName
+ TQ_UINT32 fileSize
for detemining the file propeties.
*//*
Transfer( KIRC *engine, TQString nick,// TQString nick_peer_adress,
Transfer::Type type, TQVariant properties,
- TQObject *parent = 0L, const char *name = 0L );
+ TQObject *tqparent = 0L, const char *name = 0L );
*/
~Transfer();
@@ -100,7 +101,7 @@ public:
{ return m_nick; }
Type type() const
{ return m_type; }
- Status status() const;
+ tqStatus status() const;
/* Start the transfer.
* If not connected connect to client.
@@ -133,8 +134,8 @@ signals:
void fileSizeCurrent( unsigned int );
void fileSizeAcknowledge( unsigned int );
-// void received(Q_UINT32);
-// void sent(Q_UINT32);
+// void received(TQ_UINT32);
+// void sent(TQ_UINT32);
void abort(TQString);
@@ -155,35 +156,35 @@ protected slots:
protected:
// void emitSignals();
- void checkFileTransferEnd( Q_UINT32 fileSizeAck );
+ void checkFileTransferEnd( TQ_UINT32 fileSizeAck );
KIRC::Engine * m_engine;
- QString m_nick;
+ TQString m_nick;
Type m_type;
KExtendedSocket *m_socket;
bool m_initiated;
// Text member data
- QTextStream m_socket_textStream;
+ TQTextStream m_socket_textStream;
// TQTextCodec * m_socket_codec;
// File member data
- QFile m_file;
- QString m_fileName;
- Q_UINT32 m_fileSize;
- Q_UINT32 /*usize_t*/ m_fileSizeCur;
- Q_UINT32 /*usize_t*/ m_fileSizeAck;
- QDataStream m_socketDataStream;
+ TQFile m_file;
+ TQString m_fileName;
+ TQ_UINT32 m_fileSize;
+ TQ_UINT32 /*usize_t*/ m_fileSizeCur;
+ TQ_UINT32 /*usize_t*/ m_fileSizeAck;
+ TQDataStream m_socketDataStream;
char m_buffer[1024];
int m_bufferLength;
// Data transfer measures
- Q_UINT32 m_receivedBytes;
- Q_UINT32 m_receivedBytesLimit;
+ TQ_UINT32 m_receivedBytes;
+ TQ_UINT32 m_receivedBytesLimit;
- Q_UINT32 m_sentBytes;
- Q_UINT32 m_sentBytesLimit;
+ TQ_UINT32 m_sentBytes;
+ TQ_UINT32 m_sentBytesLimit;
};
}