summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/kopetetransfermanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/libkopete/kopetetransfermanager.h')
-rw-r--r--kopete/libkopete/kopetetransfermanager.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/kopete/libkopete/kopetetransfermanager.h b/kopete/libkopete/kopetetransfermanager.h
index f4e7416f..53b2711f 100644
--- a/kopete/libkopete/kopetetransfermanager.h
+++ b/kopete/libkopete/kopetetransfermanager.h
@@ -19,9 +19,9 @@
#ifndef KOPETEFILETRANSFER_H
#define KOPETEFILETRANSFER_H
-#include <qobject.h>
-#include <qstring.h>
-#include <qmap.h>
+#include <tqobject.h>
+#include <tqstring.h>
+#include <tqmap.h>
#include "kopete_export.h"
#include <kio/job.h>
@@ -40,23 +40,23 @@ class KOPETE_EXPORT FileTransferInfo
public:
enum KopeteTransferDirection { Incoming, Outgoing };
- FileTransferInfo( Contact *, const QString&, const unsigned long size, const QString &, KopeteTransferDirection di, const unsigned int id, QString internalId=QString::null);
+ FileTransferInfo( Contact *, const TQString&, const unsigned long size, const TQString &, KopeteTransferDirection di, const unsigned int id, TQString internalId=TQString::null);
~FileTransferInfo() {}
unsigned int transferId() const { return mId; }
const Contact* contact() const { return mContact; }
- QString file() const { return mFile; }
- QString recipient() const { return mRecipient; }
+ TQString file() const { return mFile; }
+ TQString recipient() const { return mRecipient; }
unsigned long size() const { return mSize; }
- QString internalId() const { return m_intId; }
+ TQString internalId() const { return m_intId; }
KopeteTransferDirection direction() const { return mDirection; }
private:
unsigned long mSize;
- QString mRecipient;
+ TQString mRecipient;
unsigned int mId;
Contact *mContact;
- QString mFile;
- QString m_intId;
+ TQString mFile;
+ TQString m_intId;
KopeteTransferDirection mDirection;
};
@@ -77,8 +77,8 @@ public:
/**
* @brief Adds a file transfer to the Kopete::TransferManager
*/
- Transfer *addTransfer( Contact *contact, const QString& file, const unsigned long size, const QString &recipient , FileTransferInfo::KopeteTransferDirection di);
- int askIncomingTransfer( Contact *contact, const QString& file, const unsigned long size, const QString& description=QString::null, QString internalId=QString::null);
+ Transfer *addTransfer( Contact *contact, const TQString& file, const unsigned long size, const TQString &recipient , FileTransferInfo::KopeteTransferDirection di);
+ int askIncomingTransfer( Contact *contact, const TQString& file, const unsigned long size, const TQString& description=TQString::null, TQString internalId=TQString::null);
void removeTransfer( unsigned int id );
/**
@@ -96,8 +96,8 @@ public:
* @param sendTo The object to send the signal to
* @param slot The slot to send the signal to. Signature: sendFile(const KURL &file)
*/
- void sendFile( const KURL &file, const QString &localFile, unsigned long fileSize,
- bool mustBeLocal, QObject *sendTo, const char *slot );
+ void sendFile( const KURL &file, const TQString &localFile, unsigned long fileSize,
+ bool mustBeLocal, TQObject *sendTo, const char *slot );
signals:
/** @brief Signals the transfer is done. */
@@ -107,24 +107,24 @@ signals:
void canceled( Kopete::Transfer* );
/** @brief Signals the transfer has been accepted */
- void accepted(Kopete::Transfer*, const QString &fileName);
+ void accepted(Kopete::Transfer*, const TQString &fileName);
/** @brief Signals the transfer has been rejected */
void refused(const Kopete::FileTransferInfo& );
/** @brief Send a file */
- void sendFile(const KURL &file, const QString &localFile, unsigned int fileSize);
+ void sendFile(const KURL &file, const TQString &localFile, unsigned int fileSize);
private slots:
- void slotAccepted(const Kopete::FileTransferInfo&, const QString&);
+ void slotAccepted(const Kopete::FileTransferInfo&, const TQString&);
void slotComplete(KIO::Job*);
private:
- TransferManager( QObject *parent );
+ TransferManager( TQObject *parent );
static TransferManager *s_transferManager;
int nextID;
- QMap<unsigned int, Transfer *> mTransfersMap;
+ TQMap<unsigned int, Transfer *> mTransfersMap;
};
/**
@@ -139,7 +139,7 @@ public:
/**
* Constructor
*/
- Transfer( const FileTransferInfo &, const QString &localFile, bool showProgressInfo = true);
+ Transfer( const FileTransferInfo &, const TQString &localFile, bool showProgressInfo = true);
/**
* Constructor
@@ -185,7 +185,7 @@ public slots:
* @param error A member of the KIO::Error enumeration indicating what error occurred.
* @param errorText A string to aid understanding of the error, often the offending URL.
*/
- void slotError( int error, const QString &errorText );
+ void slotError( int error, const TQString &errorText );
signals:
/**
@@ -196,7 +196,7 @@ signals:
private:
void init( const KURL &, bool );
- static KURL displayURL( const Contact *contact, const QString &file );
+ static KURL displayURL( const Contact *contact, const TQString &file );
FileTransferInfo mInfo;
KURL mTarget;