summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/groupwise/gwcontact.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/groupwise/gwcontact.cpp')
-rw-r--r--kopete/protocols/groupwise/gwcontact.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kopete/protocols/groupwise/gwcontact.cpp b/kopete/protocols/groupwise/gwcontact.cpp
index 6dbb8c1b..d15c76b9 100644
--- a/kopete/protocols/groupwise/gwcontact.cpp
+++ b/kopete/protocols/groupwise/gwcontact.cpp
@@ -25,7 +25,7 @@
*************************************************************************
*/
-#include <qmap.h>
+#include <tqmap.h>
#include <kaction.h>
#include <kdebug.h>
@@ -46,7 +46,7 @@
using namespace GroupWise;
-GroupWiseContact::GroupWiseContact( Kopete::Account* account, const QString &dn,
+GroupWiseContact::GroupWiseContact( Kopete::Account* account, const TQString &dn,
Kopete::MetaContact *parent,
const int objectId, const int parentId, const int sequence )
: Kopete::Contact( account, GroupWiseProtocol::dnToDotted( dn ), parent ), m_objectId( objectId ), m_parentId( parentId ),
@@ -56,8 +56,8 @@ GroupWiseContact::GroupWiseContact( Kopete::Account* account, const QString &dn,
{
m_dn = dn;
}
- connect( static_cast< GroupWiseAccount *>( account ), SIGNAL( privacyChanged( const QString &, bool ) ),
- SLOT( receivePrivacyChanged( const QString &, bool ) ) );
+ connect( static_cast< GroupWiseAccount *>( account ), TQT_SIGNAL( privacyChanged( const TQString &, bool ) ),
+ TQT_SLOT( receivePrivacyChanged( const TQString &, bool ) ) );
setOnlineStatus( ( parent && parent->isTemporary() ) ? protocol()->groupwiseUnknown : protocol()->groupwiseOffline );
}
@@ -70,7 +70,7 @@ GroupWiseContact::~GroupWiseContact()
account()->client()->userDetailsManager()->removeContact( contactId() );
}
-QString GroupWiseContact::dn() const
+TQString GroupWiseContact::dn() const
{
return m_dn;
}
@@ -94,7 +94,7 @@ void GroupWiseContact::updateDetails( const ContactDetails & details )
m_serverProperties = details.properties;
- QMap<QString, QString>::Iterator it;
+ TQMap<TQString, TQString>::Iterator it;
// work phone number
if ( ( it = m_serverProperties.find( "telephoneNumber" ) )
!= m_serverProperties.end() )
@@ -143,7 +143,7 @@ bool GroupWiseContact::isReachable()
return false;
}
-void GroupWiseContact::serialize( QMap< QString, QString > &serializedData, QMap< QString, QString > & /* addressBookData */ )
+void GroupWiseContact::serialize( TQMap< TQString, TQString > &serializedData, TQMap< TQString, TQString > & /* addressBookData */ )
{
serializedData[ "DN" ] = m_dn;
}
@@ -155,18 +155,18 @@ Kopete::ChatSession * GroupWiseContact::manager( Kopete::Contact::CanCreateFlags
Kopete::ContactPtrList chatMembers;
chatMembers.append( this );
- return account()->chatSession( chatMembers, QString::null, canCreate );
+ return account()->chatSession( chatMembers, TQString::null, canCreate );
}
-QPtrList<KAction> *GroupWiseContact::customContextMenuActions()
+TQPtrList<KAction> *GroupWiseContact::customContextMenuActions()
{
- QPtrList<KAction> *m_actionCollection = new QPtrList<KAction>;
+ TQPtrList<KAction> *m_actionCollection = new TQPtrList<KAction>;
// Block/unblock Contact
- QString label = account()->isContactBlocked( m_dn ) ? i18n( "Unblock User" ) : i18n( "Block User" );
+ TQString label = account()->isContactBlocked( m_dn ) ? i18n( "Unblock User" ) : i18n( "Block User" );
if( !m_actionBlock )
{
- m_actionBlock = new KAction( label, "msn_blocked",0, this, SLOT( slotBlock() ),
+ m_actionBlock = new KAction( label, "msn_blocked",0, this, TQT_SLOT( slotBlock() ),
this, "actionBlock" );
}
else
@@ -183,7 +183,7 @@ void GroupWiseContact::slotUserInfo()
new GroupWiseContactProperties( this, Kopete::UI::Global::mainWidget(), "gwcontactproperties" );
}
-QMap< QString, QString > GroupWiseContact::serverProperties()
+TQMap< TQString, TQString > GroupWiseContact::serverProperties()
{
return m_serverProperties;
}
@@ -218,7 +218,7 @@ void GroupWiseContact::slotBlock()
}
}
-void GroupWiseContact::receivePrivacyChanged( const QString & dn, bool allow )
+void GroupWiseContact::receivePrivacyChanged( const TQString & dn, bool allow )
{
Q_UNUSED( allow );
if ( dn == m_dn ) // set the online status back to itself. this will set the blocking state
@@ -236,7 +236,7 @@ void GroupWiseContact::setOnlineStatus( const Kopete::OnlineStatus& status )
if ( account()->isContactBlocked( m_dn ) && status.internalStatus() < 15 )
{
Kopete::Contact::setOnlineStatus(Kopete::OnlineStatus(status.status() , (status.weight()==0) ? 0 : (status.weight() -1) ,
- protocol() , status.internalStatus()+15 , QString::fromLatin1("msn_blocked"),
+ protocol() , status.internalStatus()+15 , TQString::fromLatin1("msn_blocked"),
i18n("%1|Blocked").arg( status.description() ) ) );
}
else