summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/kopetetransfermanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/libkopete/kopetetransfermanager.cpp')
-rw-r--r--kopete/libkopete/kopetetransfermanager.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/kopete/libkopete/kopetetransfermanager.cpp b/kopete/libkopete/kopetetransfermanager.cpp
index 1131cd90..67f2d04f 100644
--- a/kopete/libkopete/kopetetransfermanager.cpp
+++ b/kopete/libkopete/kopetetransfermanager.cpp
@@ -34,7 +34,7 @@
* Kopete::FileTransferInfo *
***************************/
-Kopete::FileTransferInfo::FileTransferInfo( Kopete::Contact *contact, const QString& file, const unsigned long size, const QString &recipient, KopeteTransferDirection di, const unsigned int id, QString internalId)
+Kopete::FileTransferInfo::FileTransferInfo( Kopete::Contact *contact, const TQString& file, const unsigned long size, const TQString &recipient, KopeteTransferDirection di, const unsigned int id, TQString internalId)
{
mContact = contact;
mFile = file;
@@ -50,7 +50,7 @@ Kopete::FileTransferInfo::FileTransferInfo( Kopete::Contact *contact, const QSt
***************************/
-Kopete::Transfer::Transfer( const Kopete::FileTransferInfo &kfti, const QString &localFile, bool showProgressInfo)
+Kopete::Transfer::Transfer( const Kopete::FileTransferInfo &kfti, const TQString &localFile, bool showProgressInfo)
: KIO::Job(showProgressInfo), mInfo(kfti)
{
KURL targ; targ.setPath( localFile );
@@ -72,7 +72,7 @@ void Kopete::Transfer::init( const KURL &target, bool showProgressInfo )
if( showProgressInfo )
Observer::self()->slotCopying( this, sourceURL(), destinationURL() );
- connect( this, SIGNAL( result( KIO::Job* ) ), SLOT( slotResultEmitted() ) );
+ connect( this, TQT_SIGNAL( result( KIO::Job* ) ), TQT_SLOT( slotResultEmitted() ) );
setAutoErrorHandlingEnabled( true, 0 );
}
@@ -81,14 +81,14 @@ Kopete::Transfer::~Transfer()
{
}
-KURL Kopete::Transfer::displayURL( const Kopete::Contact *contact, const QString &file )
+KURL Kopete::Transfer::displayURL( const Kopete::Contact *contact, const TQString &file )
{
KURL url;
- url.setProtocol( QString::fromLatin1("kopete") );
+ url.setProtocol( TQString::fromLatin1("kopete") );
- QString host;
+ TQString host;
if( !contact )
- host = QString::fromLatin1("unknown origin");
+ host = TQString::fromLatin1("unknown origin");
else if( contact->metaContact() )
host = contact->metaContact()->displayName();
else
@@ -129,7 +129,7 @@ void Kopete::Transfer::slotComplete()
emitResult();
}
-void Kopete::Transfer::slotError( int error, const QString &errorText )
+void Kopete::Transfer::slotError( int error, const TQString &errorText )
{
m_error = error;
m_errorText = errorText;
@@ -158,44 +158,44 @@ Kopete::TransferManager* Kopete::TransferManager::transferManager()
return s_transferManager;
}
-Kopete::TransferManager::TransferManager( QObject *parent ) : QObject( parent )
+Kopete::TransferManager::TransferManager( TQObject *parent ) : TQObject( parent )
{
nextID = 0;
}
-Kopete::Transfer* Kopete::TransferManager::addTransfer( Kopete::Contact *contact, const QString& file, const unsigned long size, const QString &recipient , Kopete::FileTransferInfo::KopeteTransferDirection di)
+Kopete::Transfer* Kopete::TransferManager::addTransfer( Kopete::Contact *contact, const TQString& file, const unsigned long size, const TQString &recipient , Kopete::FileTransferInfo::KopeteTransferDirection di)
{
// if (nextID != 0)
nextID++;
Kopete::FileTransferInfo info(contact, file, size, recipient,di, nextID);
Kopete::Transfer *trans = new Kopete::Transfer(info, contact);
- connect(trans, SIGNAL(result(KIO::Job *)), this, SLOT(slotComplete(KIO::Job *)));
+ connect(trans, TQT_SIGNAL(result(KIO::Job *)), this, TQT_SLOT(slotComplete(KIO::Job *)));
mTransfersMap.insert(nextID, trans);
return trans;
}
-void Kopete::TransferManager::slotAccepted(const Kopete::FileTransferInfo& info, const QString& filename)
+void Kopete::TransferManager::slotAccepted(const Kopete::FileTransferInfo& info, const TQString& filename)
{
Kopete::Transfer *trans = new Kopete::Transfer(info, filename);
- connect(trans, SIGNAL(result(KIO::Job *)), this, SLOT(slotComplete(KIO::Job *)));
+ connect(trans, TQT_SIGNAL(result(KIO::Job *)), this, TQT_SLOT(slotComplete(KIO::Job *)));
mTransfersMap.insert(info.transferId(), trans);
emit accepted(trans,filename);
}
-int Kopete::TransferManager::askIncomingTransfer( Kopete::Contact *contact, const QString& file, const unsigned long size, const QString& description, QString internalId)
+int Kopete::TransferManager::askIncomingTransfer( Kopete::Contact *contact, const TQString& file, const unsigned long size, const TQString& description, TQString internalId)
{
// if (nextID != 0)
nextID++;
- QString dn= contact ? (contact->metaContact() ? contact->metaContact()->displayName() : contact->contactId()) : i18n("<unknown>");
+ TQString dn= contact ? (contact->metaContact() ? contact->metaContact()->displayName() : contact->contactId()) : i18n("<unknown>");
Kopete::FileTransferInfo info(contact, file, size, dn, Kopete::FileTransferInfo::Incoming , nextID , internalId);
//FIXME!!! this will not be deleted if it's still open when kopete exits
KopeteFileConfirmDialog *diag= new KopeteFileConfirmDialog(info, description , 0 ) ;
- connect( diag, SIGNAL( accepted(const Kopete::FileTransferInfo&, const QString&)) , this, SLOT( slotAccepted(const Kopete::FileTransferInfo&, const QString&) ) );
- connect( diag, SIGNAL( refused(const Kopete::FileTransferInfo&)) , this, SIGNAL( refused(const Kopete::FileTransferInfo&) ) );
+ connect( diag, TQT_SIGNAL( accepted(const Kopete::FileTransferInfo&, const TQString&)) , this, TQT_SLOT( slotAccepted(const Kopete::FileTransferInfo&, const TQString&) ) );
+ connect( diag, TQT_SIGNAL( refused(const Kopete::FileTransferInfo&)) , this, TQT_SIGNAL( refused(const Kopete::FileTransferInfo&) ) );
diag->show();
return nextID;
}
@@ -214,7 +214,7 @@ void Kopete::TransferManager::slotComplete(KIO::Job *job)
emit done(transfer);
- for( QMap<unsigned, Kopete::Transfer*>::Iterator it = mTransfersMap.begin();
+ for( TQMap<unsigned, Kopete::Transfer*>::Iterator it = mTransfersMap.begin();
it != mTransfersMap.end(); ++it )
{
if( it.data() == transfer )
@@ -225,16 +225,16 @@ void Kopete::TransferManager::slotComplete(KIO::Job *job)
}
}
-void Kopete::TransferManager::sendFile( const KURL &file, const QString &fname, unsigned long sz,
- bool mustBeLocal, QObject *sendTo, const char *slot )
+void Kopete::TransferManager::sendFile( const KURL &file, const TQString &fname, unsigned long sz,
+ bool mustBeLocal, TQObject *sendTo, const char *slot )
{
KURL url(file);
- QString filename;
+ TQString filename;
unsigned int size = 0;
//If the file location is null, then get it from a file open dialog
if( !url.isValid() )
- url = KFileDialog::getOpenURL( QString::null, QString::fromLatin1("*"), 0l, i18n( "Kopete File Transfer" ));
+ url = KFileDialog::getOpenURL( TQString::null, TQString::fromLatin1("*"), 0l, i18n( "Kopete File Transfer" ));
else
{
filename = fname;
@@ -260,9 +260,9 @@ void Kopete::TransferManager::sendFile( const KURL &file, const QString &fname,
}
else
{
- connect( this, SIGNAL(sendFile(const KURL&, const QString&, unsigned int)), sendTo, slot );
+ connect( this, TQT_SIGNAL(sendFile(const KURL&, const TQString&, unsigned int)), sendTo, slot );
emit sendFile( url, filename, size );
- disconnect( this, SIGNAL(sendFile(const KURL&, const QString&, unsigned int)), sendTo, slot );
+ disconnect( this, TQT_SIGNAL(sendFile(const KURL&, const TQString&, unsigned int)), sendTo, slot );
}
}
}