From 3e4d718796cddcc798d9f737037ef4bad540a0af Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 20 Jan 2013 00:22:10 -0600 Subject: Rename KApplication to TDEApplication to avoid conflicts with KDE4 --- kopete/protocols/oscar/aim/aimcontact.cpp | 2 +- kopete/protocols/oscar/icq/icqcontact.cpp | 4 ++-- kopete/protocols/oscar/liboscar/chatservicetask.cpp | 4 ++-- kopete/protocols/oscar/liboscar/connection.cpp | 4 ++-- kopete/protocols/oscar/liboscar/sendmessagetask.cpp | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) (limited to 'kopete/protocols/oscar') diff --git a/kopete/protocols/oscar/aim/aimcontact.cpp b/kopete/protocols/oscar/aim/aimcontact.cpp index 5791c58d..a92f620e 100644 --- a/kopete/protocols/oscar/aim/aimcontact.cpp +++ b/kopete/protocols/oscar/aim/aimcontact.cpp @@ -238,7 +238,7 @@ void AIMContact::userInfoUpdated( const TQString& contact, const UserDetails& de if ( !mAccount->engine()->hasIconConnection() ) mAccount->engine()->requestServerRedirect( 0x0010 ); - int time = ( KApplication::random() % 10 ) * 1000; + int time = ( TDEApplication::random() % 10 ) * 1000; kdDebug(OSCAR_ICQ_DEBUG) << k_funcinfo << "updating buddy icon in " << time/1000 << " seconds" << endl; TQTimer::singleShot( time, this, TQT_SLOT( requestBuddyIcon() ) ); } diff --git a/kopete/protocols/oscar/icq/icqcontact.cpp b/kopete/protocols/oscar/icq/icqcontact.cpp index e4943c37..c54e4ffb 100644 --- a/kopete/protocols/oscar/icq/icqcontact.cpp +++ b/kopete/protocols/oscar/icq/icqcontact.cpp @@ -190,7 +190,7 @@ void ICQContact::userInfoUpdated( const TQString& contact, const UserDetails& de } else { - int time = ( KApplication::random() % 10 ) * 1000; + int time = ( TDEApplication::random() % 10 ) * 1000; kdDebug(OSCAR_ICQ_DEBUG) << k_funcinfo << "updating buddy icon in " << time/1000 << " seconds" << endl; TQTimer::singleShot( time, this, TQT_SLOT( requestBuddyIcon() ) ); @@ -235,7 +235,7 @@ void ICQContact::loggedIn() !m_requestingNickname && m_ssiItem.alias().isEmpty() ) { m_requestingNickname = true; - int time = ( KApplication::random() % 20 ) * 1000; + int time = ( TDEApplication::random() % 20 ) * 1000; kdDebug(OSCAR_ICQ_DEBUG) << k_funcinfo << "updating nickname in " << time/1000 << " seconds" << endl; TQTimer::singleShot( time, this, TQT_SLOT( requestShortInfo() ) ); } diff --git a/kopete/protocols/oscar/liboscar/chatservicetask.cpp b/kopete/protocols/oscar/liboscar/chatservicetask.cpp index 3e649b97..ec45b36c 100644 --- a/kopete/protocols/oscar/liboscar/chatservicetask.cpp +++ b/kopete/protocols/oscar/liboscar/chatservicetask.cpp @@ -63,8 +63,8 @@ void ChatServiceTask::onGo() kdDebug(OSCAR_RAW_DEBUG) << k_funcinfo << "sending '" << m_message.textArray() << "' to the " << m_room << " room" << endl; Buffer* b = new Buffer(); - b->addDWord( KApplication::random() ); //use kapp since it's convenient - b->addDWord( KApplication::random() ); + b->addDWord( TDEApplication::random() ); //use kapp since it's convenient + b->addDWord( TDEApplication::random() ); b->addWord( 0x0003 ); //this be message channel 3 mateys! arrr!! b->addDWord( 0x00010000 ); //TLV 1 - this means it's a public message b->addDWord( 0x00060000 ); //TLV 6 - enables the server sending you your message back diff --git a/kopete/protocols/oscar/liboscar/connection.cpp b/kopete/protocols/oscar/liboscar/connection.cpp index b94a9082..80bfa8d6 100644 --- a/kopete/protocols/oscar/liboscar/connection.cpp +++ b/kopete/protocols/oscar/liboscar/connection.cpp @@ -207,8 +207,8 @@ void Connection::forcedSend( Transfer* request ) const void Connection::initSequence() { - d->snacSequence = ( KApplication::random() & 0xFFFF ); - d->flapSequence = ( KApplication::random() & 0xFFFF ); + d->snacSequence = ( TDEApplication::random() & 0xFFFF ); + d->flapSequence = ( TDEApplication::random() & 0xFFFF ); } void Connection::distribute( Transfer * transfer ) const diff --git a/kopete/protocols/oscar/liboscar/sendmessagetask.cpp b/kopete/protocols/oscar/liboscar/sendmessagetask.cpp index df1a8193..3856a994 100644 --- a/kopete/protocols/oscar/liboscar/sendmessagetask.cpp +++ b/kopete/protocols/oscar/liboscar/sendmessagetask.cpp @@ -65,8 +65,8 @@ void SendMessageTask::onGo() if ( snacSubfamily == 0x0006 ) { - DWORD cookie1 = KApplication::random(); - DWORD cookie2 = KApplication::random(); + DWORD cookie1 = TDEApplication::random(); + DWORD cookie2 = TDEApplication::random(); b->addDWord( cookie1 ); b->addDWord( cookie2 ); -- cgit v1.2.1