summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/jabber/libiris/iris/jabber/filetransfer.h
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/jabber/libiris/iris/jabber/filetransfer.h')
-rw-r--r--kopete/protocols/jabber/libiris/iris/jabber/filetransfer.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/kopete/protocols/jabber/libiris/iris/jabber/filetransfer.h b/kopete/protocols/jabber/libiris/iris/jabber/filetransfer.h
index 9026b478..6ad8f7ff 100644
--- a/kopete/protocols/jabber/libiris/iris/jabber/filetransfer.h
+++ b/kopete/protocols/jabber/libiris/iris/jabber/filetransfer.h
@@ -21,20 +21,17 @@
#ifndef XMPP_FILETRANSFER_H
#define XMPP_FILETRANSFER_H
-#include"im.h"
-
-#if QT_VERSION < 0x030200
-typedef long int Q_LLONG;
-#endif
+#include "im.h"
namespace XMPP
{
class S5BConnection;
struct FTRequest;
- class FileTransfer : public QObject
+ class FileTransfer : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
enum { ErrReject, ErrNeg, ErrConnect, ErrProxy, ErrStream };
enum { Idle, Requesting, Connecting, WaitingForAccept, Active };
@@ -43,19 +40,19 @@ namespace XMPP
void setProxy(const Jid &proxy);
// send
- void sendFile(const Jid &to, const TQString &fname, Q_LLONG size, const TQString &desc);
- Q_LLONG offset() const;
- Q_LLONG length() const;
+ void sendFile(const Jid &to, const TQString &fname, TQ_LLONG size, const TQString &desc);
+ TQ_LLONG offset() const;
+ TQ_LLONG length() const;
int dataSizeNeeded() const;
void writeFileData(const TQByteArray &a);
// receive
Jid peer() const;
TQString fileName() const;
- Q_LLONG fileSize() const;
+ TQ_LLONG fileSize() const;
TQString description() const;
bool rangeSupported() const;
- void accept(Q_LLONG offset=0, Q_LLONG length=0);
+ void accept(TQ_LLONG offset=0, TQ_LLONG length=0);
// both
void close(); // reject, or stop sending/receiving
@@ -84,14 +81,15 @@ namespace XMPP
void reset();
friend class FileTransferManager;
- FileTransfer(FileTransferManager *, TQObject *parent=0);
+ FileTransfer(FileTransferManager *, TQObject *tqparent=0);
void man_waitForAccept(const FTRequest &req);
void takeConnection(S5BConnection *c);
};
- class FileTransferManager : public QObject
+ class FileTransferManager : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
FileTransferManager(Client *);
~FileTransferManager();
@@ -123,13 +121,14 @@ namespace XMPP
class JT_FT : public Task
{
Q_OBJECT
+ TQ_OBJECT
public:
- JT_FT(Task *parent);
+ JT_FT(Task *tqparent);
~JT_FT();
- void request(const Jid &to, const TQString &id, const TQString &fname, Q_LLONG size, const TQString &desc, const TQStringList &streamTypes);
- Q_LLONG rangeOffset() const;
- Q_LLONG rangeLength() const;
+ void request(const Jid &to, const TQString &id, const TQString &fname, TQ_LLONG size, const TQString &desc, const TQStringList &streamTypes);
+ TQ_LLONG rangeOffset() const;
+ TQ_LLONG rangeLength() const;
TQString streamType() const;
void onGo();
@@ -145,7 +144,7 @@ namespace XMPP
Jid from;
TQString iq_id, id;
TQString fname;
- Q_LLONG size;
+ TQ_LLONG size;
TQString desc;
bool rangeSupported;
TQStringList streamTypes;
@@ -153,11 +152,12 @@ namespace XMPP
class JT_PushFT : public Task
{
Q_OBJECT
+ TQ_OBJECT
public:
- JT_PushFT(Task *parent);
+ JT_PushFT(Task *tqparent);
~JT_PushFT();
- void respondSuccess(const Jid &to, const TQString &id, Q_LLONG rangeOffset, Q_LLONG rangeLength, const TQString &streamType);
+ void respondSuccess(const Jid &to, const TQString &id, TQ_LLONG rangeOffset, TQ_LLONG rangeLength, const TQString &streamType);
void respondError(const Jid &to, const TQString &id, int code, const TQString &str);
bool take(const TQDomElement &);