summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/jabber/jabbertransport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/jabber/jabbertransport.cpp')
-rw-r--r--kopete/protocols/jabber/jabbertransport.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/kopete/protocols/jabber/jabbertransport.cpp b/kopete/protocols/jabber/jabbertransport.cpp
index e7a8e7d3..26d16b28 100644
--- a/kopete/protocols/jabber/jabbertransport.cpp
+++ b/kopete/protocols/jabber/jabbertransport.cpp
@@ -29,8 +29,8 @@
#include <kopeteversion.h>
-#include <qpixmap.h>
-#include <qtimer.h>
+#include <tqpixmap.h>
+#include <tqtimer.h>
#include <kaction.h>
#include <kdebug.h>
#include <klocale.h>
@@ -38,7 +38,7 @@
#include "xmpp_tasks.h"
-JabberTransport::JabberTransport (JabberAccount * parentAccount, const XMPP::RosterItem & item, const QString& gateway_type)
+JabberTransport::JabberTransport (JabberAccount * parentAccount, const XMPP::RosterItem & item, const TQString& gateway_type)
: Kopete::Account ( parentAccount->protocol(), parentAccount->accountId()+"/"+ item.jid().bare() )
{
m_status=Creating;
@@ -53,7 +53,7 @@ JabberTransport::JabberTransport (JabberAccount * parentAccount, const XMPP::Ros
setColor( account()->color() );
#if KOPETE_IS_VERSION(0,11,51) //setCustomIcon is new in kopete 0.12
- QString cIcon;
+ TQString cIcon;
if(gateway_type=="msn")
cIcon="jabber_gateway_msn";
else if(gateway_type=="icq")
@@ -83,18 +83,18 @@ JabberTransport::JabberTransport (JabberAccount * parentAccount, const XMPP::Ros
configGroup()->writeEntry("GatewayJID" , item.jid().full() );
- QTimer::singleShot(0, this, SLOT(eatContacts()));
+ TQTimer::singleShot(0, this, TQT_SLOT(eatContacts()));
m_status=Normal;
}
-JabberTransport::JabberTransport( JabberAccount * parentAccount, const QString & _accountId )
+JabberTransport::JabberTransport( JabberAccount * parentAccount, const TQString & _accountId )
: Kopete::Account ( parentAccount->protocol(), _accountId )
{
m_status=Creating;
m_account = parentAccount;
- const QString contactJID_s = configGroup()->readEntry("GatewayJID");
+ const TQString contactJID_s = configGroup()->readEntry("GatewayJID");
if(contactJID_s.isEmpty())
{
@@ -124,13 +124,13 @@ JabberTransport::~JabberTransport ()
KActionMenu *JabberTransport::actionMenu ()
{
KActionMenu *menu = new KActionMenu( accountId(), myself()->onlineStatus().iconFor( this ), this );
- QString nick = myself()->property( Kopete::Global::Properties::self()->nickName()).value().toString();
+ TQString nick = myself()->property( Kopete::Global::Properties::self()->nickName()).value().toString();
menu->popupMenu()->insertTitle( myself()->onlineStatus().iconFor( myself() ),
nick.isNull() ? accountLabel() : i18n( "%2 <%1>" ).arg( accountLabel(), nick )
);
- QPtrList<KAction> *customActions = myself()->customContextMenuActions( );
+ TQPtrList<KAction> *customActions = myself()->customContextMenuActions( );
if( customActions && !customActions->isEmpty() )
{
menu->popupMenu()->insertSeparator();
@@ -147,28 +147,28 @@ KActionMenu *JabberTransport::actionMenu ()
m_actionMenu->popupMenu()->insertSeparator();
m_actionMenu->insert(new KAction (i18n ("Join Groupchat..."), "jabber_group", 0,
- this, SLOT (slotJoinNewChat ()), this, "actionJoinChat"));
+ this, TQT_SLOT (slotJoinNewChat ()), this, "actionJoinChat"));
m_actionMenu->popupMenu()->insertSeparator();
m_actionMenu->insert ( new KAction ( i18n ("Services..."), "jabber_serv_on", 0,
- this, SLOT ( slotGetServices () ), this, "actionJabberServices") );
+ this, TQT_SLOT ( slotGetServices () ), this, "actionJabberServices") );
m_actionMenu->insert ( new KAction ( i18n ("Send Raw Packet to Server..."), "mail_new", 0,
- this, SLOT ( slotSendRaw () ), this, "actionJabberSendRaw") );
+ this, TQT_SLOT ( slotSendRaw () ), this, "actionJabberSendRaw") );
m_actionMenu->insert ( new KAction ( i18n ("Edit User Info..."), "identity", 0,
- this, SLOT ( slotEditVCard () ), this, "actionEditVCard") );
+ this, TQT_SLOT ( slotEditVCard () ), this, "actionEditVCard") );
return m_actionMenu;*/
}
-bool JabberTransport::createContact (const QString & contactId, Kopete::MetaContact * metaContact)
+bool JabberTransport::createContact (const TQString & contactId, Kopete::MetaContact * metaContact)
{
#if 0 //TODO
// collect all group names
- QStringList groupNames;
+ TQStringList groupNames;
Kopete::GroupList groupList = metaContact->groups();
for(Kopete::Group *group = groupList.first(); group; group = groupList.next())
groupNames += group->displayName();
@@ -188,7 +188,7 @@ bool JabberTransport::createContact (const QString & contactId, Kopete::MetaCon
}
-void JabberTransport::setOnlineStatus( const Kopete::OnlineStatus& status , const QString &reason)
+void JabberTransport::setOnlineStatus( const Kopete::OnlineStatus& status , const TQString &reason)
{
#if 0
if( status.status() == Kopete::OnlineStatus::Offline )
@@ -263,7 +263,7 @@ bool JabberTransport::removeAccount( )
m_status = Removing;
XMPP::JT_Register *task = new XMPP::JT_Register ( m_account->client()->rootTask () );
- QObject::connect ( task, SIGNAL ( finished () ), this, SLOT ( removeAllContacts() ) );
+ TQObject::connect ( task, TQT_SIGNAL ( finished () ), this, TQT_SLOT ( removeAllContacts() ) );
//JabberContact *my=static_cast<JabberContact*>(myself());
task->unreg ( myself()->contactId() );
@@ -282,7 +282,7 @@ void JabberTransport::removeAllContacts( )
*/ //we don't really care, we remove everithing anyway.
kdDebug(JABBER_DEBUG_GLOBAL) << k_funcinfo << "delete all contacts of the transport"<< endl;
- QDictIterator<Kopete::Contact> it( contacts() );
+ TQDictIterator<Kopete::Contact> it( contacts() );
for( ; it.current(); ++it )
{
XMPP::JT_Roster * rosterTask = new XMPP::JT_Roster ( account()->client()->rootTask () );
@@ -293,11 +293,11 @@ void JabberTransport::removeAllContacts( )
Kopete::AccountManager::self()->removeAccount( this ); //this will delete this
}
-QString JabberTransport::legacyId( const XMPP::Jid & jid )
+TQString JabberTransport::legacyId( const XMPP::Jid & jid )
{
if(jid.node().isEmpty())
- return QString();
- QString node = jid.node();
+ return TQString();
+ TQString node = jid.node();
return node.replace("%","@");
}
@@ -319,8 +319,8 @@ void JabberTransport::eatContacts( )
* - Olivier 2006-01-17 -
*/
kdDebug(JABBER_DEBUG_GLOBAL) << k_funcinfo << endl;
- QDict<Kopete::Contact> cts=account()->contacts();
- QDictIterator<Kopete::Contact> it( cts );
+ TQDict<Kopete::Contact> cts=account()->contacts();
+ TQDictIterator<Kopete::Contact> it( cts );
for( ; it.current(); ++it )
{
JabberContact *contact=dynamic_cast<JabberContact*>(it.current());