summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/groupwise/libgroupwise/tasks/logintask.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/groupwise/libgroupwise/tasks/logintask.cpp')
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/logintask.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/logintask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/logintask.cpp
index 6a28124f..a09af45a 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/logintask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/logintask.cpp
@@ -25,8 +25,8 @@
#include "logintask.h"
-LoginTask::LoginTask( Task * parent )
- : RequestTask( parent )
+LoginTask::LoginTask( Task * tqparent )
+ : RequestTask( tqparent )
{
}
@@ -36,7 +36,7 @@ LoginTask::~LoginTask()
void LoginTask::initialise()
{
- TQString command = TQString::fromLatin1("login:%1:%2").arg( client()->host() ).arg( client()->port() );
+ TQString command = TQString::tqfromLatin1("login:%1:%2").tqarg( client()->host() ).tqarg( client()->port() );
Field::FieldList lst;
lst.append( new Field::SingleField( NM_A_SZ_USERID, 0, NMFIELD_TYPE_UTF8, client()->userId() ) );
@@ -67,7 +67,7 @@ bool LoginTask::take( Transfer * transfer )
ContactDetails cd = extractUserDetails( loginResponseFields );
emit gotMyself( cd );
- // read the privacy settings first, because this affects all contacts' apparent status
+ // read the privacy settings first, because this affects all contacts' aptqparent status
extractPrivacy( loginResponseFields );
extractCustomStatuses( loginResponseFields );
@@ -80,18 +80,18 @@ bool LoginTask::take( Transfer * transfer )
Field::FieldList contactListFields = contactList->fields();
Field::MultiField * container;
// read folders
- for ( Field::FieldListIterator it = contactListFields.find( NM_A_FA_FOLDER );
+ for ( Field::FieldListIterator it = contactListFields.tqfind( NM_A_FA_FOLDER );
it != contactListFields.end();
- it = contactListFields.find( ++it, NM_A_FA_FOLDER ) )
+ it = contactListFields.tqfind( ++it, NM_A_FA_FOLDER ) )
{
container = static_cast<Field::MultiField *>( *it );
extractFolder( container );
}
// read contacts
- for ( Field::FieldListIterator it = contactListFields.find( NM_A_FA_CONTACT );
+ for ( Field::FieldListIterator it = contactListFields.tqfind( NM_A_FA_CONTACT );
it != contactListFields.end();
- it = contactListFields.find( ++it, NM_A_FA_CONTACT ) )
+ it = contactListFields.tqfind( ++it, NM_A_FA_CONTACT ) )
{
container = static_cast<Field::MultiField *>( *it );
extractContact( container );
@@ -119,11 +119,11 @@ void LoginTask::extractFolder( Field::MultiField * folderContainer )
// name
current = fl.findSingleField( NM_A_SZ_DISPLAY_NAME );
folder.name = current->value().toString();
- // parent
+ // tqparent
current = fl.findSingleField( NM_A_SZ_PARENT_ID );
- folder.parentId = current->value().toInt();
+ folder.tqparentId = current->value().toInt();
- client()->debug( TQString( "Got folder: %1, obj: %2, parent: %3, seq: %3." ).arg( folder.name ).arg( folder.id ).arg( folder.parentId ).arg( folder.sequence ) );
+ client()->debug( TQString( "Got folder: %1, obj: %2, tqparent: %3, seq: %3." ).tqarg( folder.name ).tqarg( folder.id ).tqarg( folder.tqparentId ).tqarg( folder.sequence ) );
// tell the world about it
emit gotFolder( folder );
}
@@ -135,11 +135,11 @@ void LoginTask::extractContact( Field::MultiField * contactContainer )
ContactItem contact;
Field::SingleField * current;
Field::FieldList fl = contactContainer->fields();
- // sequence number, object and parent IDs are a numeric values but are stored as strings...
+ // sequence number, object and tqparent IDs are a numeric values but are stored as strings...
current = fl.findSingleField( NM_A_SZ_OBJECT_ID );
contact.id = current->value().toInt();
current = fl.findSingleField( NM_A_SZ_PARENT_ID );
- contact.parentId = current->value().toInt();
+ contact.tqparentId = current->value().toInt();
current = fl.findSingleField( NM_A_SZ_SEQUENCE_NUMBER );
contact.sequence = current->value().toInt();
current = fl.findSingleField( NM_A_SZ_DISPLAY_NAME );
@@ -206,13 +206,13 @@ ContactDetails LoginTask::extractUserDetails( Field::FieldList & fields )
if ( propList )
{
// Hello A Nagappan. GW gave us a multiple field where we previously got a single field
- TQString parentName = propList->tag();
+ TQString tqparentName = propList->tag();
Field::FieldList propFields = propList->fields();
const Field::FieldListIterator end = propFields.end();
for ( Field::FieldListIterator it = propFields.begin(); it != end; ++it )
{
propField = dynamic_cast<Field::SingleField *>( *it );
- if ( propField /*&& propField->tag() == parentName */)
+ if ( propField /*&& propField->tag() == tqparentName */)
{
TQString propValue = propField->value().toString();
TQString contents = propMap[ propField->tag() ];
@@ -241,12 +241,12 @@ void LoginTask::extractPrivacy( Field::FieldList & fields )
TQStringList denyList;
// read blocking
// may be a single field or may be an array
- Field::FieldListIterator it = fields.find( NM_A_LOCKED_ATTR_LIST );
+ Field::FieldListIterator it = fields.tqfind( NM_A_LOCKED_ATTR_LIST );
if ( it != fields.end() )
{
if ( Field::SingleField * sf = dynamic_cast<Field::SingleField *>( *it ) )
{
- if ( sf->value().toString().find( NM_A_BLOCKING ) )
+ if ( sf->value().toString().tqfind( NM_A_BLOCKING ) )
privacyLocked = true;
}
else if ( Field::MultiField * mf = dynamic_cast<Field::MultiField *>( *it ) )
@@ -284,7 +284,7 @@ TQStringList LoginTask::readPrivacyItems( const TQCString & tag, Field::FieldLis
{
TQStringList items;
- Field::FieldListIterator it = fields.find( tag );
+ Field::FieldListIterator it = fields.tqfind( tag );
if ( it != fields.end() )
{
if ( Field::SingleField * sf = dynamic_cast<Field::SingleField *>( *it ) )
@@ -308,7 +308,7 @@ TQStringList LoginTask::readPrivacyItems( const TQCString & tag, Field::FieldLis
void LoginTask::extractCustomStatuses( Field::FieldList & fields )
{
- Field::FieldListIterator it = fields.find( NM_A_FA_CUSTOM_STATUSES );
+ Field::FieldListIterator it = fields.tqfind( NM_A_FA_CUSTOM_STATUSES );
if ( it != fields.end() )
{
if ( Field::MultiField * mf = dynamic_cast<Field::MultiField *>( *it ) )
@@ -319,21 +319,21 @@ void LoginTask::extractCustomStatuses( Field::FieldList & fields )
Field::MultiField * mf2 = dynamic_cast<Field::MultiField *>( *custStatIt );
if ( mf2 && ( mf2->tag() == NM_A_FA_STATUS ) )
{
- GroupWise::CustomStatus custom;
+ GroupWise::CustomtqStatus custom;
Field::FieldList fl2 = mf2->fields();
for ( Field::FieldListIterator custContentIt = fl2.begin(); custContentIt != fl2.end(); ++custContentIt )
{
if ( Field::SingleField * sf3 = dynamic_cast<Field::SingleField *>( *custContentIt ) )
{
if ( sf3->tag() == NM_A_SZ_TYPE )
- custom.status = (GroupWise::Status)sf3->value().toInt();
+ custom.status = (GroupWise::tqStatus)sf3->value().toInt();
else if ( sf3->tag() == NM_A_SZ_DISPLAY_NAME )
custom.name = sf3->value().toString();
else if ( sf3->tag() == NM_A_SZ_MESSAGE_BODY )
custom.autoReply = sf3->value().toString();
}
}
- emit gotCustomStatus( custom );
+ emit gotCustomtqStatus( custom );
}
}
}
@@ -342,7 +342,7 @@ void LoginTask::extractCustomStatuses( Field::FieldList & fields )
void LoginTask::extractKeepalivePeriod( Field::FieldList & fields )
{
- Field::FieldListIterator it = fields.find( NM_A_UD_KEEPALIVE );
+ Field::FieldListIterator it = fields.tqfind( NM_A_UD_KEEPALIVE );
if ( it != fields.end() )
{
if ( Field::SingleField * sf = dynamic_cast<Field::SingleField *>( *it ) )