From 1329ec6abbcb7b79cd960e0ca138f16598d5f11f Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 13 Jan 2024 17:34:53 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro --- kopete/protocols/oscar/oscaraccount.cpp | 92 ++++++++++++++++----------------- 1 file changed, 46 insertions(+), 46 deletions(-) (limited to 'kopete/protocols/oscar/oscaraccount.cpp') diff --git a/kopete/protocols/oscar/oscaraccount.cpp b/kopete/protocols/oscar/oscaraccount.cpp index 6bb0edb9..683d92b2 100644 --- a/kopete/protocols/oscar/oscaraccount.cpp +++ b/kopete/protocols/oscar/oscaraccount.cpp @@ -113,19 +113,19 @@ OscarAccount::OscarAccount(Kopete::Protocol *parent, const TQString &accountID, d->engine->setCodecProvider( d ); d->olnscDialog = 0L; - TQObject::connect( d->engine, TQT_SIGNAL( loggedIn() ), this, TQT_SLOT( loginActions() ) ); - TQObject::connect( d->engine, TQT_SIGNAL( messageReceived( const Oscar::Message& ) ), - this, TQT_SLOT( messageReceived(const Oscar::Message& ) ) ); - TQObject::connect( d->engine, TQT_SIGNAL( socketError( int, const TQString& ) ), - this, TQT_SLOT( slotSocketError( int, const TQString& ) ) ); - TQObject::connect( d->engine, TQT_SIGNAL( taskError( const Oscar::SNAC&, int, bool ) ), - this, TQT_SLOT( slotTaskError( const Oscar::SNAC&, int, bool ) ) ); - TQObject::connect( d->engine, TQT_SIGNAL( userStartedTyping( const TQString& ) ), - this, TQT_SLOT( userStartedTyping( const TQString& ) ) ); - TQObject::connect( d->engine, TQT_SIGNAL( userStoppedTyping( const TQString& ) ), - this, TQT_SLOT( userStoppedTyping( const TQString& ) ) ); - TQObject::connect( d->engine, TQT_SIGNAL( iconNeedsUploading() ), - this, TQT_SLOT( slotSendBuddyIcon() ) ); + TQObject::connect( d->engine, TQ_SIGNAL( loggedIn() ), this, TQ_SLOT( loginActions() ) ); + TQObject::connect( d->engine, TQ_SIGNAL( messageReceived( const Oscar::Message& ) ), + this, TQ_SLOT( messageReceived(const Oscar::Message& ) ) ); + TQObject::connect( d->engine, TQ_SIGNAL( socketError( int, const TQString& ) ), + this, TQ_SLOT( slotSocketError( int, const TQString& ) ) ); + TQObject::connect( d->engine, TQ_SIGNAL( taskError( const Oscar::SNAC&, int, bool ) ), + this, TQ_SLOT( slotTaskError( const Oscar::SNAC&, int, bool ) ) ); + TQObject::connect( d->engine, TQ_SIGNAL( userStartedTyping( const TQString& ) ), + this, TQ_SLOT( userStartedTyping( const TQString& ) ) ); + TQObject::connect( d->engine, TQ_SIGNAL( userStoppedTyping( const TQString& ) ), + this, TQ_SLOT( userStoppedTyping( const TQString& ) ) ); + TQObject::connect( d->engine, TQ_SIGNAL( iconNeedsUploading() ), + this, TQ_SLOT( slotSendBuddyIcon() ) ); } OscarAccount::~OscarAccount() @@ -144,18 +144,18 @@ void OscarAccount::logOff( Kopete::Account::DisconnectReason reason ) kdDebug(OSCAR_GEN_DEBUG) << k_funcinfo << "accountId='" << accountId() << "'" << endl; //disconnect the signals Kopete::ContactList* kcl = Kopete::ContactList::self(); - TQObject::disconnect( kcl, TQT_SIGNAL( groupRenamed( Kopete::Group*, const TQString& ) ), - this, TQT_SLOT( kopeteGroupRenamed( Kopete::Group*, const TQString& ) ) ); - TQObject::disconnect( kcl, TQT_SIGNAL( groupRemoved( Kopete::Group* ) ), - this, TQT_SLOT( kopeteGroupRemoved( Kopete::Group* ) ) ); - TQObject::disconnect( d->engine->ssiManager(), TQT_SIGNAL( contactAdded( const Oscar::SSI& ) ), - this, TQT_SLOT( ssiContactAdded( const Oscar::SSI& ) ) ); - TQObject::disconnect( d->engine->ssiManager(), TQT_SIGNAL( groupAdded( const Oscar::SSI& ) ), - this, TQT_SLOT( ssiGroupAdded( const Oscar::SSI& ) ) ); - TQObject::disconnect( d->engine->ssiManager(), TQT_SIGNAL( groupUpdated( const Oscar::SSI& ) ), - this, TQT_SLOT( ssiGroupUpdated( const Oscar::SSI& ) ) ); - TQObject::disconnect( d->engine->ssiManager(), TQT_SIGNAL( contactUpdated( const Oscar::SSI& ) ), - this, TQT_SLOT( ssiContactUpdated( const Oscar::SSI& ) ) ); + TQObject::disconnect( kcl, TQ_SIGNAL( groupRenamed( Kopete::Group*, const TQString& ) ), + this, TQ_SLOT( kopeteGroupRenamed( Kopete::Group*, const TQString& ) ) ); + TQObject::disconnect( kcl, TQ_SIGNAL( groupRemoved( Kopete::Group* ) ), + this, TQ_SLOT( kopeteGroupRemoved( Kopete::Group* ) ) ); + TQObject::disconnect( d->engine->ssiManager(), TQ_SIGNAL( contactAdded( const Oscar::SSI& ) ), + this, TQ_SLOT( ssiContactAdded( const Oscar::SSI& ) ) ); + TQObject::disconnect( d->engine->ssiManager(), TQ_SIGNAL( groupAdded( const Oscar::SSI& ) ), + this, TQ_SLOT( ssiGroupAdded( const Oscar::SSI& ) ) ); + TQObject::disconnect( d->engine->ssiManager(), TQ_SIGNAL( groupUpdated( const Oscar::SSI& ) ), + this, TQ_SLOT( ssiGroupUpdated( const Oscar::SSI& ) ) ); + TQObject::disconnect( d->engine->ssiManager(), TQ_SIGNAL( contactUpdated( const Oscar::SSI& ) ), + this, TQ_SLOT( ssiContactUpdated( const Oscar::SSI& ) ) ); d->engine->close(); myself()->setOnlineStatus( Kopete::OnlineStatus::Offline ); @@ -198,10 +198,10 @@ void OscarAccount::processSSIList() { //disconnect signals so we don't attempt to add things to SSI! Kopete::ContactList* kcl = Kopete::ContactList::self(); - TQObject::disconnect( kcl, TQT_SIGNAL( groupRenamed( Kopete::Group*, const TQString& ) ), - this, TQT_SLOT( kopeteGroupRenamed( Kopete::Group*, const TQString& ) ) ); - TQObject::disconnect( kcl, TQT_SIGNAL( groupRemoved( Kopete::Group* ) ), - this, TQT_SLOT( kopeteGroupRemoved( Kopete::Group* ) ) ); + TQObject::disconnect( kcl, TQ_SIGNAL( groupRenamed( Kopete::Group*, const TQString& ) ), + this, TQ_SLOT( kopeteGroupRenamed( Kopete::Group*, const TQString& ) ) ); + TQObject::disconnect( kcl, TQ_SIGNAL( groupRemoved( Kopete::Group* ) ), + this, TQ_SLOT( kopeteGroupRemoved( Kopete::Group* ) ) ); kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << endl; @@ -248,18 +248,18 @@ void OscarAccount::processSSIList() addContact( ( *bit ).name(), TQString(), group, Kopete::Account::DontChangeKABC ); } - TQObject::connect( kcl, TQT_SIGNAL( groupRenamed( Kopete::Group*, const TQString& ) ), - this, TQT_SLOT( kopeteGroupRenamed( Kopete::Group*, const TQString& ) ) ); - TQObject::connect( kcl, TQT_SIGNAL( groupRemoved( Kopete::Group* ) ), - this, TQT_SLOT( kopeteGroupRemoved( Kopete::Group* ) ) ); - TQObject::connect( listManager, TQT_SIGNAL( contactAdded( const Oscar::SSI& ) ), - this, TQT_SLOT( ssiContactAdded( const Oscar::SSI& ) ) ); - TQObject::connect( listManager, TQT_SIGNAL( groupAdded( const Oscar::SSI& ) ), - this, TQT_SLOT( ssiGroupAdded( const Oscar::SSI& ) ) ); - TQObject::connect( listManager, TQT_SIGNAL( groupUpdated( const Oscar::SSI& ) ), - this, TQT_SLOT( ssiGroupUpdated( const Oscar::SSI& ) ) ); - TQObject::connect( listManager, TQT_SIGNAL( contactUpdated( const Oscar::SSI& ) ), - this, TQT_SLOT( ssiContactUpdated( const Oscar::SSI& ) ) ); + TQObject::connect( kcl, TQ_SIGNAL( groupRenamed( Kopete::Group*, const TQString& ) ), + this, TQ_SLOT( kopeteGroupRenamed( Kopete::Group*, const TQString& ) ) ); + TQObject::connect( kcl, TQ_SIGNAL( groupRemoved( Kopete::Group* ) ), + this, TQ_SLOT( kopeteGroupRemoved( Kopete::Group* ) ) ); + TQObject::connect( listManager, TQ_SIGNAL( contactAdded( const Oscar::SSI& ) ), + this, TQ_SLOT( ssiContactAdded( const Oscar::SSI& ) ) ); + TQObject::connect( listManager, TQ_SIGNAL( groupAdded( const Oscar::SSI& ) ), + this, TQ_SLOT( ssiGroupAdded( const Oscar::SSI& ) ) ); + TQObject::connect( listManager, TQ_SIGNAL( groupUpdated( const Oscar::SSI& ) ), + this, TQ_SLOT( ssiGroupUpdated( const Oscar::SSI& ) ) ); + TQObject::connect( listManager, TQ_SIGNAL( contactUpdated( const Oscar::SSI& ) ), + this, TQ_SLOT( ssiContactUpdated( const Oscar::SSI& ) ) ); //TODO: check the kopete contact list and handle non server side contacts appropriately. TQDict nonServerContacts = contacts(); @@ -280,8 +280,8 @@ void OscarAccount::processSSIList() if ( !nonServerContactList.isEmpty() && showMissingContactsDialog ) { d->olnscDialog = new OscarListNonServerContacts( Kopete::UI::Global::mainWidget() ); - TQObject::connect( d->olnscDialog, TQT_SIGNAL( closing() ), - this, TQT_SLOT( nonServerAddContactDialogClosed() ) ); + TQObject::connect( d->olnscDialog, TQ_SIGNAL( closing() ), + this, TQ_SLOT( nonServerAddContactDialogClosed() ) ); d->olnscDialog->addContacts( nonServerContactList ); d->olnscDialog->show(); } @@ -781,7 +781,7 @@ void OscarAccount::slotTaskError( const Oscar::SNAC& s, int code, bool fatal ) void OscarAccount::slotSendBuddyIcon() { //need to disconnect because we could end up with many connections - TQObject::disconnect( engine(), TQT_SIGNAL( iconServerConnected() ), this, TQT_SLOT( slotSendBuddyIcon() ) ); + TQObject::disconnect( engine(), TQ_SIGNAL( iconServerConnected() ), this, TQ_SLOT( slotSendBuddyIcon() ) ); TQString photoPath = myself()->property( Kopete::Global::Properties::self()->photo() ).value().toString(); if ( photoPath.isEmpty() ) return; @@ -794,8 +794,8 @@ void OscarAccount::slotSendBuddyIcon() if ( !engine()->hasIconConnection() ) { //will send icon when we connect to icon server - TQObject::connect( engine(), TQT_SIGNAL( iconServerConnected() ), - this, TQT_SLOT( slotSendBuddyIcon() ) ); + TQObject::connect( engine(), TQ_SIGNAL( iconServerConnected() ), + this, TQ_SLOT( slotSendBuddyIcon() ) ); return; } TQByteArray imageData = iconFile.readAll(); -- cgit v1.2.1