diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/protocols/jabber/jabberbookmarks.cpp | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-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/jabber/jabberbookmarks.cpp')
-rw-r--r-- | kopete/protocols/jabber/jabberbookmarks.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/kopete/protocols/jabber/jabberbookmarks.cpp b/kopete/protocols/jabber/jabberbookmarks.cpp index 720705b2..661f0974 100644 --- a/kopete/protocols/jabber/jabberbookmarks.cpp +++ b/kopete/protocols/jabber/jabberbookmarks.cpp @@ -26,9 +26,9 @@ #include "xmpp_tasks.h" -JabberBookmarks::JabberBookmarks(JabberAccount *parent) : QObject(parent) , m_account(parent) +JabberBookmarks::JabberBookmarks(JabberAccount *parent) : TQObject(parent) , m_account(parent) { - connect( m_account , SIGNAL( isConnectedChanged() ) , this , SLOT( accountConnected() ) ); + connect( m_account , TQT_SIGNAL( isConnectedChanged() ) , this , TQT_SLOT( accountConnected() ) ); } void JabberBookmarks::accountConnected() @@ -38,34 +38,34 @@ void JabberBookmarks::accountConnected() XMPP::JT_PrivateStorage * task = new XMPP::JT_PrivateStorage ( m_account->client()->rootTask ()); task->get( "storage" , "storage:bookmarks" ); - QObject::connect ( task, SIGNAL ( finished () ), this, SLOT ( slotReceivedBookmarks() ) ); + TQObject::connect ( task, TQT_SIGNAL ( finished () ), this, TQT_SLOT ( slotReceivedBookmarks() ) ); task->go ( true ); } void JabberBookmarks::slotReceivedBookmarks( ) { XMPP::JT_PrivateStorage * task = (XMPP::JT_PrivateStorage*)(sender()); - m_storage=QDomDocument("storage"); + m_storage=TQDomDocument("storage"); m_conferencesJID.clear(); if(task->success()) { - QDomElement storage_e=task->element(); + TQDomElement storage_e=task->element(); if(!storage_e.isNull() && storage_e.tagName() == "storage") { storage_e=m_storage.importNode(storage_e,true).toElement(); m_storage.appendChild(storage_e); - for(QDomNode n = storage_e.firstChild(); !n.isNull(); n = n.nextSibling()) + for(TQDomNode n = storage_e.firstChild(); !n.isNull(); n = n.nextSibling()) { - QDomElement i = n.toElement(); + TQDomElement i = n.toElement(); if(i.isNull()) continue; if(i.tagName() == "conference") { - QString jid=i.attribute("jid"); - QString password; - for(QDomNode n = i.firstChild(); !n.isNull(); n = n.nextSibling()) { - QDomElement e = n.toElement(); + TQString jid=i.attribute("jid"); + TQString password; + for(TQDomNode n = i.firstChild(); !n.isNull(); n = n.nextSibling()) { + TQDomElement e = n.toElement(); if(e.isNull()) continue; else if(e.tagName() == "nick") @@ -78,7 +78,7 @@ void JabberBookmarks::slotReceivedBookmarks( ) if(i.attribute("autojoin") == "true") { XMPP::Jid x_jid(jid); - QString nick=x_jid.resource(); + TQString nick=x_jid.resource(); if(nick.isEmpty()) nick=m_account->myself()->nickName(); @@ -101,7 +101,7 @@ void JabberBookmarks::insertGroupChat(const XMPP::Jid &jid) return; } - QDomElement storage_e=m_storage.documentElement(); + TQDomElement storage_e=m_storage.documentElement(); if(storage_e.isNull()) { storage_e=m_storage.createElement("storage"); @@ -109,13 +109,13 @@ void JabberBookmarks::insertGroupChat(const XMPP::Jid &jid) storage_e.setAttribute("xmlns","storage:bookmarks"); } - QDomElement conference=m_storage.createElement("conference"); + TQDomElement conference=m_storage.createElement("conference"); storage_e.appendChild(conference); conference.setAttribute("jid",jid.userHost()); - QDomElement nick=m_storage.createElement("nick"); + TQDomElement nick=m_storage.createElement("nick"); conference.appendChild(nick); nick.appendChild(m_storage.createTextNode(jid.resource())); - QDomElement name=m_storage.createElement("name"); + TQDomElement name=m_storage.createElement("name"); conference.appendChild(name); name.appendChild(m_storage.createTextNode(jid.full())); @@ -127,15 +127,15 @@ void JabberBookmarks::insertGroupChat(const XMPP::Jid &jid) m_conferencesJID += jid.full(); } -KAction * JabberBookmarks::bookmarksAction(QObject *parent) +KAction * JabberBookmarks::bookmarksAction(TQObject *parent) { KSelectAction *groupchatBM = new KSelectAction( i18n("Groupchat bookmark") , "jabber_group" , 0 , parent , "actionBookMark" ); groupchatBM->setItems(m_conferencesJID); - QObject::connect(groupchatBM, SIGNAL(activated (const QString&)) , this, SLOT(slotJoinChatBookmark(const QString&))); + TQObject::connect(groupchatBM, TQT_SIGNAL(activated (const TQString&)) , this, TQT_SLOT(slotJoinChatBookmark(const TQString&))); return groupchatBM; } -void JabberBookmarks::slotJoinChatBookmark( const QString & _jid ) +void JabberBookmarks::slotJoinChatBookmark( const TQString & _jid ) { if(!m_account->isConnected()) return; |