diff options
Diffstat (limited to 'kopete/protocols/jabber/jabbertransport.cpp')
-rw-r--r-- | kopete/protocols/jabber/jabbertransport.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kopete/protocols/jabber/jabbertransport.cpp b/kopete/protocols/jabber/jabbertransport.cpp index 218c9aae..26d16b28 100644 --- a/kopete/protocols/jabber/jabbertransport.cpp +++ b/kopete/protocols/jabber/jabbertransport.cpp @@ -123,11 +123,11 @@ JabberTransport::~JabberTransport () KActionMenu *JabberTransport::actionMenu () { - KActionMenu *menu = new KActionMenu( accountId(), myself()->onlinetqStatus().iconFor( this ), this ); + KActionMenu *menu = new KActionMenu( accountId(), myself()->onlineStatus().iconFor( this ), this ); TQString nick = myself()->property( Kopete::Global::Properties::self()->nickName()).value().toString(); - menu->popupMenu()->insertTitle( myself()->onlinetqStatus().iconFor( myself() ), - nick.isNull() ? accountLabel() : i18n( "%2 <%1>" ).tqarg( accountLabel(), nick ) + menu->popupMenu()->insertTitle( myself()->onlineStatus().iconFor( myself() ), + nick.isNull() ? accountLabel() : i18n( "%2 <%1>" ).arg( accountLabel(), nick ) ); TQPtrList<KAction> *customActions = myself()->customContextMenuActions( ); @@ -203,44 +203,44 @@ void JabberTransport::setOnlineStatus( const Kopete::OnlineStatus& status , con return; } - XMPP::tqStatus xmpptqStatus ( "", reason ); + XMPP::Status xmppStatus ( "", reason ); switch ( status.internalStatus () ) { case JabberProtocol::JabberFreeForChat: - xmpptqStatus.setShow ( "chat" ); + xmppStatus.setShow ( "chat" ); break; case JabberProtocol::JabberOnline: - xmpptqStatus.setShow ( "" ); + xmppStatus.setShow ( "" ); break; case JabberProtocol::JabberAway: - xmpptqStatus.setShow ( "away" ); + xmppStatus.setShow ( "away" ); break; case JabberProtocol::JabberXA: - xmpptqStatus.setShow ( "xa" ); + xmppStatus.setShow ( "xa" ); break; case JabberProtocol::JabberDND: - xmpptqStatus.setShow ( "dnd" ); + xmppStatus.setShow ( "dnd" ); break; case JabberProtocol::JabberInvisible: - xmpptqStatus.setIsInvisible ( true ); + xmppStatus.setIsInvisible ( true ); break; } if ( !isConnected () ) { // we are not connected yet, so connect now - m_initialPresence = xmpptqStatus; + m_initialPresence = xmppStatus; connect (); } else { - setPresence ( xmpptqStatus ); + setPresence ( xmppStatus ); } #endif } @@ -277,7 +277,7 @@ void JabberTransport::removeAllContacts( ) /* if ( ! task->success ()) KMessageBox::queuedMessageBox ( 0L, KMessageBox::Error, - i18n ("An error occured when trying to remove the transport:\n%1").tqarg(task->statusString()), + i18n ("An error occured when trying to remove the transport:\n%1").arg(task->statusString()), i18n ("Jabber Service Unregistration")); */ //we don't really care, we remove everithing anyway. @@ -328,7 +328,7 @@ void JabberTransport::eatContacts( ) { XMPP::RosterItem item=contact->rosterItem(); Kopete::MetaContact *mc=contact->metaContact(); - Kopete::OnlineStatus status = contact->onlinetqStatus(); + Kopete::OnlineStatus status = contact->onlineStatus(); kdDebug(JABBER_DEBUG_GLOBAL) << k_funcinfo << item.jid().full() << " will be soon eat - " << contact << endl; delete contact; Kopete::Contact *c2=account()->contactPool()->addContact( item , mc , false ); //not sure this is false; |