summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/gadu/gadudcctransaction.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/protocols/gadu/gadudcctransaction.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/protocols/gadu/gadudcctransaction.cpp')
-rw-r--r--kopete/protocols/gadu/gadudcctransaction.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kopete/protocols/gadu/gadudcctransaction.cpp b/kopete/protocols/gadu/gadudcctransaction.cpp
index 92d9ffa8..7ec8d2ac 100644
--- a/kopete/protocols/gadu/gadudcctransaction.cpp
+++ b/kopete/protocols/gadu/gadudcctransaction.cpp
@@ -34,8 +34,8 @@
#include "kopetemetacontact.h"
#include "kopeteuiglobal.h"
-#include <qsocketnotifier.h>
-#include <qfile.h>
+#include <tqsocketnotifier.h>
+#include <tqfile.h>
#include "gadudcctransaction.h"
#include "gaducontact.h"
@@ -45,7 +45,7 @@
#include "libgadu.h"
GaduDCCTransaction::GaduDCCTransaction( GaduDCC* parent, const char* name )
-:QObject( parent, name ), gaduDCC_( parent )
+:TQObject( parent, name ), gaduDCC_( parent )
{
read_ = NULL;
write_ = NULL;
@@ -79,7 +79,7 @@ GaduDCCTransaction::peerUIN()
}
bool
-GaduDCCTransaction::setupOutgoing( GaduContact* peerContact, QString& filePath )
+GaduDCCTransaction::setupOutgoing( GaduContact* peerContact, TQString& filePath )
{
GaduContact* me;
GaduAccount* metoo;
@@ -90,7 +90,7 @@ GaduDCCTransaction::setupOutgoing( GaduContact* peerContact, QString& filePath )
me = static_cast<GaduContact*>( peerContact->account()->myself() );
- QString aaa = peerContact->contactIp().toString();
+ TQString aaa = peerContact->contactIp().toString();
kdDebug( 14100 ) << "slotOutgoin for UIN: " << peerContact->uin() << " port " << peerContact->contactPort() << " ip " <<aaa<< endl;
kdDebug( 14100 ) << "File path is " << filePath << endl;
@@ -121,7 +121,7 @@ GaduDCCTransaction::setupIncoming( const unsigned int uin, GaduContact* peerCont
return false;
}
- QString aaa = peerContact->contactIp().toString();
+ TQString aaa = peerContact->contactIp().toString();
kdDebug( 14100 ) << "setupIncoming for UIN: " << uin << " port " << peerContact->contactPort() << " ip " <<aaa<< endl;
peer = peerContact->uin();
@@ -144,10 +144,10 @@ GaduDCCTransaction::setupIncoming( gg_dcc* dccS )
peer = dccS->uin;
- connect ( Kopete::TransferManager::transferManager(), SIGNAL( accepted( Kopete::Transfer *, const QString & ) ),
- this, SLOT( slotIncomingTransferAccepted ( Kopete::Transfer *, const QString & ) ) );
- connect ( Kopete::TransferManager::transferManager(), SIGNAL( refused( const Kopete::FileTransferInfo & ) ),
- this, SLOT( slotTransferRefused( const Kopete::FileTransferInfo & ) ) );
+ connect ( Kopete::TransferManager::transferManager(), TQT_SIGNAL( accepted( Kopete::Transfer *, const TQString & ) ),
+ this, TQT_SLOT( slotIncomingTransferAccepted ( Kopete::Transfer *, const TQString & ) ) );
+ connect ( Kopete::TransferManager::transferManager(), TQT_SIGNAL( refused( const Kopete::FileTransferInfo & ) ),
+ this, TQT_SLOT( slotTransferRefused( const Kopete::FileTransferInfo & ) ) );
incoming = true;
createNotifiers( true );
@@ -189,15 +189,15 @@ GaduDCCTransaction::createNotifiers( bool connect )
return;
}
- read_ = new QSocketNotifier( dccSock_->fd, QSocketNotifier::Read, this );
+ read_ = new TQSocketNotifier( dccSock_->fd, TQSocketNotifier::Read, this );
read_->setEnabled( false );
- write_ = new QSocketNotifier( dccSock_->fd, QSocketNotifier::Write, this );
+ write_ = new TQSocketNotifier( dccSock_->fd, TQSocketNotifier::Write, this );
write_->setEnabled( false );
if ( connect ) {
- QObject::connect( read_, SIGNAL( activated( int ) ), SLOT( watcher() ) );
- QObject::connect( write_, SIGNAL( activated( int ) ), SLOT( watcher() ) );
+ TQObject::connect( read_, TQT_SIGNAL( activated( int ) ), TQT_SLOT( watcher() ) );
+ TQObject::connect( write_, TQT_SIGNAL( activated( int ) ), TQT_SLOT( watcher() ) );
}
}
@@ -223,7 +223,7 @@ GaduDCCTransaction::disableNotifiers()
}
}
void
-GaduDCCTransaction::slotIncomingTransferAccepted ( Kopete::Transfer* transfer, const QString& fileName )
+GaduDCCTransaction::slotIncomingTransferAccepted ( Kopete::Transfer* transfer, const TQString& fileName )
{
if ( (long)transfer->info().transferId () != transferId_ ) {
@@ -280,7 +280,7 @@ GaduDCCTransaction::slotIncomingTransferAccepted ( Kopete::Transfer* transfer, c
dccSock_->file_fd = localFile_.handle();
}
- connect ( transfer, SIGNAL( result( KIO::Job * ) ), this, SLOT( slotTransferResult() ) );
+ connect ( transfer, TQT_SIGNAL( result( KIO::Job * ) ), this, TQT_SLOT( slotTransferResult() ) );
// reenable notifiers
enableNotifiers( dccSock_->check );
@@ -310,7 +310,7 @@ GaduDCCTransaction::askIncommingTransfer()
{
transferId_ = Kopete::TransferManager::transferManager()->askIncomingTransfer ( contact,
- QString( (const char*)dccSock_->file_info.filename ), dccSock_->file_info.size );
+ TQString( (const char*)dccSock_->file_info.filename ), dccSock_->file_info.size );
}
@@ -345,10 +345,10 @@ GaduDCCTransaction::watcher() {
}
if ( !peer ) {
- contact = static_cast<GaduContact*> (account->contacts()[ QString::number( dccSock_->peer_uin ) ]);
+ contact = static_cast<GaduContact*> (account->contacts()[ TQString::number( dccSock_->peer_uin ) ]);
}
else {
- contact = static_cast<GaduContact*> (account->contacts()[ QString::number( peer ) ]);
+ contact = static_cast<GaduContact*> (account->contacts()[ TQString::number( peer ) ]);
}
if ( contact == NULL ) {
@@ -385,7 +385,7 @@ GaduDCCTransaction::watcher() {
break;
case GG_EVENT_DCC_NEED_FILE_INFO:
if (gaduDCC_->requests.contains(dccSock_->peer_uin)) {
- QString filePath = gaduDCC_->requests[dccSock_->peer_uin];
+ TQString filePath = gaduDCC_->requests[dccSock_->peer_uin];
kdDebug() << "Callback request found. Sending " << filePath << endl;
gaduDCC_->requests.remove(dccSock_->peer_uin);
gg_dcc_fill_file_info(dccSock_,filePath.ascii());