summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/groupwise/libgroupwise/tasks/createcontacttask.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/tasks/createcontacttask.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/tasks/createcontacttask.cpp')
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/createcontacttask.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/createcontacttask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/createcontacttask.cpp
index aac16042..0d167236 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/createcontacttask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/createcontacttask.cpp
@@ -32,17 +32,17 @@ CreateContactTask::~CreateContactTask()
{
}
-QString CreateContactTask::userId()
+TQString CreateContactTask::userId()
{
return m_userId;
}
-QString CreateContactTask::dn()
+TQString CreateContactTask::dn()
{
return m_dn;
}
-QString CreateContactTask::displayName()
+TQString CreateContactTask::displayName()
{
return m_displayName;
}
@@ -53,7 +53,7 @@ bool CreateContactTask::take( Transfer * transfer )
return false;
}
-void CreateContactTask::contactFromUserId( const QString & userId, const QString & displayName, const int firstSeqNo, const QValueList< FolderItem > folders, bool topLevel )
+void CreateContactTask::contactFromUserId( const TQString & userId, const TQString & displayName, const int firstSeqNo, const TQValueList< FolderItem > folders, bool topLevel )
{
m_userId = userId;
m_displayName = displayName;
@@ -65,19 +65,19 @@ void CreateContactTask::contactFromUserId( const QString & userId, const QString
void CreateContactTask::onGo()
{
client()->debug( "CreateContactTask::onGo() - Welcome to the Create Contact Task Show!");
- QValueList<FolderItem>::ConstIterator it = m_folders.begin();
- const QValueList<FolderItem>::ConstIterator end = m_folders.end();
+ TQValueList<FolderItem>::ConstIterator it = m_folders.begin();
+ const TQValueList<FolderItem>::ConstIterator end = m_folders.end();
// create contacts on the server
for ( ; it != end; ++it )
{
- client()->debug( QString( " - contact is in folder %1 with id %2" ).arg( (*it).name ).arg( (*it).id ) );
+ client()->debug( TQString( " - contact is in folder %1 with id %2" ).arg( (*it).name ).arg( (*it).id ) );
CreateContactInstanceTask * ccit = new CreateContactInstanceTask( client()->rootTask() );
// the add contact action may cause other contacts' sequence numbers to change
// CreateContactInstanceTask signals these changes, so we propagate the signal via the Client, to the GroupWiseAccount
// This updates our local versions of those contacts using the same mechanism by which they are updated at login.
- connect( ccit, SIGNAL( gotContactAdded( const ContactItem & ) ), SLOT( slotContactAdded( const ContactItem & ) ) );
- connect( ccit, SIGNAL( finished() ), SLOT( slotCheckContactInstanceCreated() ) );
+ connect( ccit, TQT_SIGNAL( gotContactAdded( const ContactItem & ) ), TQT_SLOT( slotContactAdded( const ContactItem & ) ) );
+ connect( ccit, TQT_SIGNAL( finished() ), TQT_SLOT( slotCheckContactInstanceCreated() ) );
if ( (*it).id == 0 ) // caller asserts that this isn't on the server...
{
ccit->contactFromDNAndFolder( m_userId, m_displayName, m_firstSequenceNumber++, ( *it ).name );
@@ -92,8 +92,8 @@ void CreateContactTask::onGo()
{
client()->debug( " - contact is in top level folder " );
CreateContactInstanceTask * ccit = new CreateContactInstanceTask( client()->rootTask() );
- connect( ccit, SIGNAL( gotContactAdded( const ContactItem & ) ), SLOT( slotContactAdded( const ContactItem & ) ) );
- connect( ccit, SIGNAL( finished() ), SLOT( slotCheckContactInstanceCreated() ) );
+ connect( ccit, TQT_SIGNAL( gotContactAdded( const ContactItem & ) ), TQT_SLOT( slotContactAdded( const ContactItem & ) ) );
+ connect( ccit, TQT_SIGNAL( finished() ), TQT_SLOT( slotCheckContactInstanceCreated() ) );
ccit->contactFromDN( m_userId, m_displayName, 0 );
ccit->go( true );
}
@@ -112,7 +112,7 @@ void CreateContactTask::slotContactAdded( const ContactItem & addedContact )
client()->debug( " - addedContact is not the one we were trying to add, ignoring it ( Account will update it )" );
return;
}
- client()->debug( QString( "CreateContactTask::slotContactAdded() - Contact Instance %1 was created on the server, with objectId %2 in folder %3" ).arg
+ client()->debug( TQString( "CreateContactTask::slotContactAdded() - Contact Instance %1 was created on the server, with objectId %2 in folder %3" ).arg
( addedContact.displayName ).arg( addedContact.id ).arg( addedContact.parentId ) );
if ( m_dn.isEmpty() )