summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/groupwise/libgroupwise/userdetailsmanager.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/protocols/groupwise/libgroupwise/userdetailsmanager.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-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/groupwise/libgroupwise/userdetailsmanager.cpp')
-rw-r--r--kopete/protocols/groupwise/libgroupwise/userdetailsmanager.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/kopete/protocols/groupwise/libgroupwise/userdetailsmanager.cpp b/kopete/protocols/groupwise/libgroupwise/userdetailsmanager.cpp
index 2527968e..ceb29632 100644
--- a/kopete/protocols/groupwise/libgroupwise/userdetailsmanager.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/userdetailsmanager.cpp
@@ -21,7 +21,7 @@
#include "userdetailsmanager.h"
UserDetailsManager::UserDetailsManager( Client * parent, const char *name)
- : QObject(parent, name), m_client( parent )
+ : TQObject(parent, name), m_client( parent )
{
}
@@ -29,30 +29,30 @@ UserDetailsManager::~UserDetailsManager()
{
}
-void UserDetailsManager::dump( const QStringList & list )
+void UserDetailsManager::dump( const TQStringList & list )
{
- for ( QStringList::ConstIterator it = list.begin(); it != list.end(); ++it )
+ for ( TQStringList::ConstIterator it = list.begin(); it != list.end(); ++it )
{
- m_client->debug( QString( " - %1" ).arg (*it) );
+ m_client->debug( TQString( " - %1" ).arg (*it) );
}
}
-bool UserDetailsManager::known( const QString & dn )
+bool UserDetailsManager::known( const TQString & dn )
{
if ( dn == m_client->userDN() )
return true;
// TODO: replace with m_detailsMap.contains( dn );
- QStringList::Iterator found = m_detailsMap.keys().find( dn );
+ TQStringList::Iterator found = m_detailsMap.keys().find( dn );
// we always know the local user's details, so don't look them up
return ( found !=m_detailsMap.keys().end() );
}
-ContactDetails UserDetailsManager::details( const QString & dn )
+ContactDetails UserDetailsManager::details( const TQString & dn )
{
return m_detailsMap[ dn ];
}
-QStringList UserDetailsManager::knownDNs()
+TQStringList UserDetailsManager::knownDNs()
{
return m_detailsMap.keys();
}
@@ -61,23 +61,23 @@ void UserDetailsManager::addDetails( const ContactDetails & details )
{
//qDebug( "UserDetailsManager::addContact, got %s, we now know: ", details.dn.ascii() );
m_detailsMap.insert( details.dn, details );
-/* QStringList keys = m_detailsMap.keys();
+/* TQStringList keys = m_detailsMap.keys();
dump( keys );
qDebug( "UserDetailsManager::addContact, pending: " );
dump( m_pendingDNs );*/
}
-void UserDetailsManager::removeContact( const QString & dn )
+void UserDetailsManager::removeContact( const TQString & dn )
{
m_detailsMap.remove( dn );
}
-void UserDetailsManager::requestDetails( const QStringList & dnList, bool onlyUnknown )
+void UserDetailsManager::requestDetails( const TQStringList & dnList, bool onlyUnknown )
{
// build a list of DNs that are not already subject to a pending request
- QStringList requestList;
- QValueListConstIterator<QString> end = dnList.end();
- for ( QValueListConstIterator<QString> it = dnList.begin(); it != end; ++it )
+ TQStringList requestList;
+ TQValueListConstIterator<TQString> end = dnList.end();
+ for ( TQValueListConstIterator<TQString> it = dnList.begin(); it != end; ++it )
{
// don't request our own details
if ( *it == m_client->userDN() )
@@ -85,10 +85,10 @@ void UserDetailsManager::requestDetails( const QStringList & dnList, bool onlyUn
// don't request details we already have unless the caller specified this
if ( onlyUnknown && known( *it ) )
break;
- QStringList::Iterator found = m_pendingDNs.find( *it );
+ TQStringList::Iterator found = m_pendingDNs.find( *it );
if ( found == m_pendingDNs.end() )
{
- m_client->debug( QString( "UserDetailsManager::requestDetails - including %1" ).arg( (*it) ) );
+ m_client->debug( TQString( "UserDetailsManager::requestDetails - including %1" ).arg( (*it) ) );
requestList.append( *it );
m_pendingDNs.append( *it );
}
@@ -97,8 +97,8 @@ void UserDetailsManager::requestDetails( const QStringList & dnList, bool onlyUn
{
GetDetailsTask * gdt = new GetDetailsTask( m_client->rootTask() );
gdt->userDNs( requestList );
- connect( gdt, SIGNAL( gotContactUserDetails( const GroupWise::ContactDetails & ) ),
- SLOT( slotReceiveContactDetails( const GroupWise::ContactDetails & ) ) );
+ connect( gdt, TQT_SIGNAL( gotContactUserDetails( const GroupWise::ContactDetails & ) ),
+ TQT_SLOT( slotReceiveContactDetails( const GroupWise::ContactDetails & ) ) );
// TODO: connect to gdt's finished() signal, check for failures, expand gdt to maintain a list of not found DNs?
gdt->go( true );
}
@@ -108,10 +108,10 @@ void UserDetailsManager::requestDetails( const QStringList & dnList, bool onlyUn
}
}
-void UserDetailsManager::requestDetails( const QString & dn, bool onlyUnknown )
+void UserDetailsManager::requestDetails( const TQString & dn, bool onlyUnknown )
{
- m_client->debug( QString( "UserDetailsManager::requestDetails for %1" ).arg( dn ) );
- QStringList list;
+ m_client->debug( TQString( "UserDetailsManager::requestDetails for %1" ).arg( dn ) );
+ TQStringList list;
list.append( dn );
requestDetails( list, onlyUnknown );
}