diff options
Diffstat (limited to 'kopete/protocols/groupwise/libgroupwise/tasks')
70 files changed, 235 insertions, 202 deletions
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/chatcountstask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/chatcountstask.cpp index fb028c44..08f04b40 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/chatcountstask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/chatcountstask.cpp @@ -26,7 +26,7 @@ using namespace GroupWise; -ChatCountsTask::ChatCountsTask(Task* parent): RequestTask(parent) +ChatCountsTask::ChatCountsTask(Task* tqparent): RequestTask(tqparent) { Field::FieldList lst; createTransfer( "chatcounts", lst ); @@ -59,9 +59,9 @@ bool ChatCountsTask::take( Transfer * transfer ) } Field::FieldList counts = resultsArray->fields(); const Field::FieldListIterator end = counts.end(); - for ( Field::FieldListIterator it = counts.find( NM_A_FA_CHAT ); + for ( Field::FieldListIterator it = counts.tqfind( NM_A_FA_CHAT ); it != end; - it = counts.find( ++it, NM_A_FA_CHAT ) ) + it = counts.tqfind( ++it, NM_A_FA_CHAT ) ) { Field::MultiField * mf = static_cast<Field::MultiField *>( *it ); Field::FieldList chat = mf->fields(); diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/chatcountstask.h b/kopete/protocols/groupwise/libgroupwise/tasks/chatcountstask.h index 6197352d..9a052dac 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/chatcountstask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/chatcountstask.h @@ -34,8 +34,9 @@ Get the current number of users in each chat on the server class ChatCountsTask : public RequestTask { Q_OBJECT + TQ_OBJECT public: - ChatCountsTask(Task* parent); + ChatCountsTask(Task* tqparent); ~ChatCountsTask(); bool take( Transfer * transfer ); /** diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/chatpropertiestask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/chatpropertiestask.cpp index 7f60f3c5..fe8cf20c 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/chatpropertiestask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/chatpropertiestask.cpp @@ -25,7 +25,7 @@ using namespace GroupWise; -ChatPropertiesTask::ChatPropertiesTask(Task* parent): RequestTask(parent) +ChatPropertiesTask::ChatPropertiesTask(Task* tqparent): RequestTask(tqparent) { } @@ -82,7 +82,7 @@ bool ChatPropertiesTask::take( Transfer * transfer ) m_description = sf->value().toString(); else if ( sf->tag() == NM_A_DISCLAIMER ) m_disclaimer = sf->value().toString(); - else if ( sf->tag() == NM_A_QUERY ) + else if ( sf->tag() == NM_A_TQUERY ) m_query = sf->value().toString(); else if ( sf->tag() == NM_A_ARCHIVE ) m_archive = sf->value().toString(); diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/chatpropertiestask.h b/kopete/protocols/groupwise/libgroupwise/tasks/chatpropertiestask.h index d52661f3..dfb73139 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/chatpropertiestask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/chatpropertiestask.h @@ -35,8 +35,9 @@ Get the current number of users in each chat on the server class ChatPropertiesTask : public RequestTask { Q_OBJECT + TQ_OBJECT public: - ChatPropertiesTask(Task* parent); + ChatPropertiesTask(Task* tqparent); ~ChatPropertiesTask(); /** * Specify which chatroom to get properties for diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/conferencetask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/conferencetask.cpp index c88e22b4..de78465f 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/conferencetask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/conferencetask.cpp @@ -23,8 +23,8 @@ #include "conferencetask.h" -ConferenceTask::ConferenceTask( Task* parent ) - : EventTask( parent ) +ConferenceTask::ConferenceTask( Task* tqparent ) + : EventTask( tqparent ) { // register all the events that this task monitors registerEvent( GroupWise::ConferenceClosed ); @@ -53,10 +53,10 @@ ConferenceTask::~ConferenceTask() void ConferenceTask::dumpConferenceEvent( ConferenceEvent & evt ) { - client()->debug( TQString( "Conference Event - guid: %1 user: %2 timestamp: %3:%4:%5" ).arg - ( evt.guid ).arg( evt.user.ascii() ).arg( evt.timeStamp.time().hour() ).arg - ( evt.timeStamp.time().minute() ).arg( evt.timeStamp.time().second() ) ); - client()->debug( TQString( " flags: %1" ).arg( evt.flags, 8 ) ); + client()->debug( TQString( "Conference Event - guid: %1 user: %2 timestamp: %3:%4:%5" ).tqarg + ( evt.guid ).tqarg( evt.user.ascii() ).tqarg( evt.timeStamp.time().hour() ).tqarg + ( evt.timeStamp.time().minute() ).tqarg( evt.timeStamp.time().second() ) ); + client()->debug( TQString( " flags: %1" ).tqarg( evt.flags, 8 ) ); } bool ConferenceTask::take( Transfer * transfer ) @@ -103,7 +103,7 @@ bool ConferenceTask::take( Transfer * transfer ) Q_ASSERT( incomingEvent->hasMessage() ); event.message = incomingEvent->message(); client()->debug( "ReceiveMessage" ); - client()->debug( TQString( "message: %1" ).arg( event.message ) ); + client()->debug( TQString( "message: %1" ).tqarg( event.message ) ); if ( !queueWhileAwaitingData( event ) ) emit message( event ); break; @@ -119,7 +119,7 @@ bool ConferenceTask::take( Transfer * transfer ) Q_ASSERT( incomingEvent->hasMessage() ); event.message = incomingEvent->message(); client()->debug( "ConferenceInvite" ); - client()->debug( TQString( "message: %1" ).arg( event.message ) ); + client()->debug( TQString( "message: %1" ).tqarg( event.message ) ); if ( !queueWhileAwaitingData( event ) ) emit invited( event ); break; @@ -139,14 +139,14 @@ bool ConferenceTask::take( Transfer * transfer ) Q_ASSERT( incomingEvent->hasMessage() ); event.message = incomingEvent->message(); client()->debug( "ReceiveAutoReply" ); - client()->debug( TQString( "message: %1" ).arg( event.message.ascii() ) ); + client()->debug( TQString( "message: %1" ).tqarg( event.message.ascii() ) ); emit autoReply( event ); break; case GroupWise::ReceivedBroadcast: Q_ASSERT( incomingEvent->hasMessage() ); event.message = incomingEvent->message(); client()->debug( "ReceivedBroadCast" ); - client()->debug( TQString( "message: %1" ).arg( event.message ) ); + client()->debug( TQString( "message: %1" ).tqarg( event.message ) ); if ( !queueWhileAwaitingData( event ) ) emit broadcast( event ); break; @@ -154,11 +154,11 @@ bool ConferenceTask::take( Transfer * transfer ) Q_ASSERT( incomingEvent->hasMessage() ); event.message = incomingEvent->message(); client()->debug( "ReceivedSystemBroadCast" ); - client()->debug( TQString( "message: %1" ).arg( event.message ) ); + client()->debug( TQString( "message: %1" ).tqarg( event.message ) ); emit systemBroadcast( event ); break; default: - client()->debug( TQString( "WARNING: didn't handle registered event %1, on conference %2" ).arg( incomingEvent->eventType() ).arg( event.guid.ascii() ) ); + client()->debug( TQString( "WARNING: didn't handle registered event %1, on conference %2" ).tqarg( incomingEvent->eventType() ).tqarg( event.guid.ascii() ) ); } dumpConferenceEvent( event ); @@ -181,7 +181,7 @@ void ConferenceTask::slotReceiveUserDetails( const GroupWise::ContactDetails & d // if the details relate to event, try again to handle it if ( details.dn == (*current).user ) { - client()->debug( TQString( " - got details for event involving %1" ).arg( (*current).user ) ); + client()->debug( TQString( " - got details for event involving %1" ).tqarg( (*current).user ) ); switch ( (*current).type ) { case GroupWise::ConferenceJoined: @@ -220,7 +220,7 @@ bool ConferenceTask::queueWhileAwaitingData( const ConferenceEvent & event ) } else { - client()->debug( TQString( "ConferenceTask::queueWhileAwaitingData() - queueing event involving %1" ).arg( event.user ) ); + client()->debug( TQString( "ConferenceTask::queueWhileAwaitingData() - queueing event involving %1" ).tqarg( event.user ) ); client()->userDetailsManager()->requestDetails( event.user ); m_pendingEvents.append( event ); return true; diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/conferencetask.h b/kopete/protocols/groupwise/libgroupwise/tasks/conferencetask.h index 7f35d08b..4a1f6d19 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/conferencetask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/conferencetask.h @@ -36,8 +36,9 @@ using namespace GroupWise; class ConferenceTask : public EventTask { Q_OBJECT + TQ_OBJECT public: - ConferenceTask( Task* parent ); + ConferenceTask( Task* tqparent ); ~ConferenceTask(); bool take( Transfer * transfer ); signals: @@ -57,7 +58,7 @@ signals: protected slots: void slotReceiveUserDetails( const GroupWise::ContactDetails & ); protected: - Q_UINT32 readFlags( TQDataStream & din ); + TQ_UINT32 readFlags( TQDataStream & din ); TQString readMessage( TQDataStream & din ); /** * Checks to see if we need more data from the client before we can propagate this event diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/connectiontask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/connectiontask.cpp index 3d041208..3778e80a 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/connectiontask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/connectiontask.cpp @@ -21,7 +21,7 @@ #include "connectiontask.h" -ConnectionTask::ConnectionTask(Task* parent): EventTask(parent) +ConnectionTask::ConnectionTask(Task* tqparent): EventTask(tqparent) { registerEvent( GroupWise::UserDisconnect ); registerEvent( GroupWise::ServerDisconnect ); diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/connectiontask.h b/kopete/protocols/groupwise/libgroupwise/tasks/connectiontask.h index 95df34f9..da7507b1 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/connectiontask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/connectiontask.h @@ -31,8 +31,9 @@ This task monitors connection related events, currently 'connected elsewhere' di class ConnectionTask : public EventTask { Q_OBJECT + TQ_OBJECT public: - ConnectionTask(Task* parent); + ConnectionTask(Task* tqparent); ~ConnectionTask(); bool take( Transfer * transfer ); signals: diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/createconferencetask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/createconferencetask.cpp index 01d2fa05..e87ee0f4 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/createconferencetask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/createconferencetask.cpp @@ -24,7 +24,7 @@ #include "createconferencetask.h" -CreateConferenceTask::CreateConferenceTask(Task* parent): RequestTask(parent), m_confId( 0 ), m_guid( BLANK_GUID ) +CreateConferenceTask::CreateConferenceTask(Task* tqparent): RequestTask(tqparent), m_confId( 0 ), m_guid( BLANK_GUID ) { } diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/createconferencetask.h b/kopete/protocols/groupwise/libgroupwise/tasks/createconferencetask.h index de66f734..c43e5725 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/createconferencetask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/createconferencetask.h @@ -31,8 +31,9 @@ This task is responsible for creating a conference at the server, and confirming class CreateConferenceTask : public RequestTask { Q_OBJECT + TQ_OBJECT public: - CreateConferenceTask(Task* parent); + CreateConferenceTask(Task* tqparent); ~CreateConferenceTask(); /** * Set up a create conference request diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/createcontactinstancetask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/createcontactinstancetask.cpp index d41db4a9..ae1a6984 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/createcontactinstancetask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/createcontactinstancetask.cpp @@ -21,7 +21,7 @@ #include "createcontactinstancetask.h" -CreateContactInstanceTask::CreateContactInstanceTask(Task* parent) : NeedFolderTask(parent) +CreateContactInstanceTask::CreateContactInstanceTask(Task* tqparent) : NeedFolderTask(tqparent) { // make the client tell the client app (Kopete) when we receive a contact connect( this, TQT_SIGNAL( gotContactAdded( const ContactItem & ) ), client(), TQT_SIGNAL( contactReceived( const ContactItem & ) ) ); @@ -31,9 +31,9 @@ CreateContactInstanceTask::~CreateContactInstanceTask() { } -void CreateContactInstanceTask::contactFromUserId( const TQString & userId, const TQString & displayName, const int parentFolder ) +void CreateContactInstanceTask::contactFromUserId( const TQString & userId, const TQString & displayName, const int tqparentFolder ) { - contact( new Field::SingleField( NM_A_SZ_USERID, 0, NMFIELD_TYPE_UTF8, userId ), displayName, parentFolder ); + contact( new Field::SingleField( NM_A_SZ_USERID, 0, NMFIELD_TYPE_UTF8, userId ), displayName, tqparentFolder ); } void CreateContactInstanceTask::contactFromUserIdAndFolder( const TQString & userId, const TQString & displayName, const int folderSequence, const TQString & folderDisplayName ) @@ -46,9 +46,9 @@ void CreateContactInstanceTask::contactFromUserIdAndFolder( const TQString & use m_folderDisplayName = folderDisplayName; } -void CreateContactInstanceTask::contactFromDN( const TQString & dn, const TQString & displayName, const int parentFolder ) +void CreateContactInstanceTask::contactFromDN( const TQString & dn, const TQString & displayName, const int tqparentFolder ) { - contact( new Field::SingleField( NM_A_SZ_DN, 0, NMFIELD_TYPE_UTF8, dn ), displayName, parentFolder ); + contact( new Field::SingleField( NM_A_SZ_DN, 0, NMFIELD_TYPE_UTF8, dn ), displayName, tqparentFolder ); } void CreateContactInstanceTask::contactFromDNAndFolder( const TQString & dn, const TQString & displayName, const int folderSequence, const TQString & folderDisplayName ) @@ -61,10 +61,10 @@ void CreateContactInstanceTask::contactFromDNAndFolder( const TQString & dn, con m_folderDisplayName = folderDisplayName; } -void CreateContactInstanceTask::contact( Field::SingleField * id, const TQString & displayName, const int parentFolder ) +void CreateContactInstanceTask::contact( Field::SingleField * id, const TQString & displayName, const int tqparentFolder ) { Field::FieldList lst; - lst.append( new Field::SingleField( NM_A_SZ_PARENT_ID, 0, NMFIELD_TYPE_UTF8, TQString::number( parentFolder ) ) ); + lst.append( new Field::SingleField( NM_A_SZ_PARENT_ID, 0, NMFIELD_TYPE_UTF8, TQString::number( tqparentFolder ) ) ); // this is either a user Id or a DN lst.append( id ); if ( displayName.isEmpty() ) // fallback so that the contact is created diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/createcontactinstancetask.h b/kopete/protocols/groupwise/libgroupwise/tasks/createcontactinstancetask.h index 6c960a4c..84347964 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/createcontactinstancetask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/createcontactinstancetask.h @@ -24,26 +24,27 @@ #include "needfoldertask.h" /** -Creates a contact on the server. The response to this action is handled by its parent +Creates a contact on the server. The response to this action is handled by its tqparent @author SUSE AG */ class CreateContactInstanceTask : public NeedFolderTask { Q_OBJECT + TQ_OBJECT public: - CreateContactInstanceTask(Task* parent); + CreateContactInstanceTask(Task* tqparent); ~CreateContactInstanceTask(); /** * Sets up the request message. */ - void contactFromUserId( const TQString & userId, const TQString & displayName, const int parentFolder ); - void contactFromDN( const TQString & dn, const TQString & displayName, const int parentFolder ); + void contactFromUserId( const TQString & userId, const TQString & displayName, const int tqparentFolder ); + void contactFromDN( const TQString & dn, const TQString & displayName, const int tqparentFolder ); void contactFromUserIdAndFolder( const TQString & userId, const TQString & displayName, const int folderSequence, const TQString & folderDisplayName ); void contactFromDNAndFolder( const TQString & dn, const TQString & displayName, const int folderSequence, const TQString & folderDisplayName ); void onGo(); protected: - void contact( Field::SingleField * id, const TQString & displayName, const int parentFolder ); + void contact( Field::SingleField * id, const TQString & displayName, const int tqparentFolder ); void onFolderCreated(); private: TQString m_userId; diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/createcontacttask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/createcontacttask.cpp index 0d167236..4e9d3e8a 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/createcontacttask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/createcontacttask.cpp @@ -24,7 +24,7 @@ #include "createcontacttask.h" -CreateContactTask::CreateContactTask(Task* parent): Task(parent) +CreateContactTask::CreateContactTask(Task* tqparent): Task(tqparent) { } @@ -71,7 +71,7 @@ void CreateContactTask::onGo() // create contacts on the server for ( ; it != end; ++it ) { - client()->debug( TQString( " - 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" ).tqarg( (*it).name ).tqarg( (*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 @@ -112,8 +112,8 @@ 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( 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 ) ); + client()->debug( TQString( "CreateContactTask::slotContactAdded() - Contact Instance %1 was created on the server, with objectId %2 in folder %3" ).tqarg + ( addedContact.displayName ).tqarg( addedContact.id ).tqarg( addedContact.tqparentId ) ); if ( m_dn.isEmpty() ) m_dn = addedContact.dn; @@ -123,7 +123,7 @@ void CreateContactTask::slotContactAdded( const ContactItem & addedContact ) m_folders.pop_back(); // clear the topLevel flag once the corresponding server side entry has been successfully created - if ( addedContact.parentId == 0 ) + if ( addedContact.tqparentId == 0 ) m_topLevel = false; if ( m_folders.isEmpty() && !m_topLevel ) diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/createcontacttask.h b/kopete/protocols/groupwise/libgroupwise/tasks/createcontacttask.h index 2a46a51c..8b973361 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/createcontacttask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/createcontacttask.h @@ -42,8 +42,9 @@ using namespace GroupWise; class CreateContactTask : public Task { Q_OBJECT + TQ_OBJECT public: - CreateContactTask(Task* parent); + CreateContactTask(Task* tqparent); ~CreateContactTask(); /** * Get the userId of the contact just created @@ -64,7 +65,7 @@ public: * @param topLevel is the folder also in the top level folder? */ void contactFromUserId( const TQString & userId, const TQString & displayName, const int firstSeqNo, const TQValueList< FolderItem > folders, bool topLevel ); - //void contactFromDN( const TQString & dn, const TQString & displayName, const int parentFolder ); + //void contactFromDN( const TQString & dn, const TQString & displayName, const int tqparentFolder ); /** * This task doesn't do any I/O itself, so this take prints an error and returns false; */ diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/createfoldertask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/createfoldertask.cpp index c6e6a78a..363882d8 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/createfoldertask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/createfoldertask.cpp @@ -20,7 +20,7 @@ #include "createfoldertask.h" -CreateFolderTask::CreateFolderTask(Task* parent): ModifyContactListTask(parent) +CreateFolderTask::CreateFolderTask(Task* tqparent): ModifyContactListTask(tqparent) { } @@ -29,10 +29,10 @@ CreateFolderTask::~CreateFolderTask() { } -void CreateFolderTask::folder( const int parentId, const int sequence, const TQString & displayName ) +void CreateFolderTask::folder( const int tqparentId, const int sequence, const TQString & displayName ) { Field::FieldList lst; - lst.append( new Field::SingleField( NM_A_SZ_PARENT_ID, 0, NMFIELD_TYPE_UTF8, TQString::number( parentId ) ) ); + lst.append( new Field::SingleField( NM_A_SZ_PARENT_ID, 0, NMFIELD_TYPE_UTF8, TQString::number( tqparentId ) ) ); lst.append( new Field::SingleField( NM_A_SZ_DISPLAY_NAME, 0, NMFIELD_TYPE_UTF8, displayName ) ); lst.append( new Field::SingleField( NM_A_SZ_SEQUENCE_NUMBER, 0, NMFIELD_TYPE_UTF8, TQString::number( sequence ) ) ); createTransfer( "createfolder", lst ); diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/createfoldertask.h b/kopete/protocols/groupwise/libgroupwise/tasks/createfoldertask.h index cac19900..4befdf40 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/createfoldertask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/createfoldertask.h @@ -31,10 +31,11 @@ Creates a folder on the server class CreateFolderTask : public ModifyContactListTask { Q_OBJECT + TQ_OBJECT public: - CreateFolderTask(Task* parent); + CreateFolderTask(Task* tqparent); ~CreateFolderTask(); - void folder( const int parentId, const int sequence, const TQString & displayName ); + void folder( const int tqparentId, const int sequence, const TQString & displayName ); }; #endif diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/deleteitemtask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/deleteitemtask.cpp index 04ce1fb4..4559c1f7 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/deleteitemtask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/deleteitemtask.cpp @@ -20,7 +20,7 @@ #include "deleteitemtask.h" -DeleteItemTask::DeleteItemTask(Task* parent): ModifyContactListTask(parent) +DeleteItemTask::DeleteItemTask(Task* tqparent): ModifyContactListTask(tqparent) { } @@ -29,7 +29,7 @@ DeleteItemTask::~DeleteItemTask() { } -void DeleteItemTask::item( const int parentFolder, const int objectId ) +void DeleteItemTask::item( const int tqparentFolder, const int objectId ) { if ( objectId == 0 ) { @@ -37,7 +37,7 @@ void DeleteItemTask::item( const int parentFolder, const int objectId ) return; } Field::FieldList lst; - lst.append( new Field::SingleField( NM_A_SZ_PARENT_ID, 0, NMFIELD_TYPE_UTF8, TQString::number( parentFolder ) ) ); + lst.append( new Field::SingleField( NM_A_SZ_PARENT_ID, 0, NMFIELD_TYPE_UTF8, TQString::number( tqparentFolder ) ) ); // this is either a user Id or a DN lst.append( new Field::SingleField( NM_A_SZ_OBJECT_ID, 0, NMFIELD_TYPE_UTF8, TQString::number( objectId ) ) ); createTransfer( "deletecontact", lst ); diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/deleteitemtask.h b/kopete/protocols/groupwise/libgroupwise/tasks/deleteitemtask.h index f249c2f5..15ea9702 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/deleteitemtask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/deleteitemtask.h @@ -29,10 +29,11 @@ class DeleteItemTask : public ModifyContactListTask { Q_OBJECT + TQ_OBJECT public: - DeleteItemTask(Task* parent); + DeleteItemTask(Task* tqparent); ~DeleteItemTask(); - void item( const int parentFolder, const int objectId ); + void item( const int tqparentFolder, const int objectId ); }; #endif diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/eventtask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/eventtask.cpp index c6bd2d85..8af45d93 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/eventtask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/eventtask.cpp @@ -21,8 +21,8 @@ #include "gwfield.h" #include "eventtask.h" -EventTask::EventTask( Task * parent ) -: Task( parent ) +EventTask::EventTask( Task * tqparent ) +: Task( tqparent ) { } @@ -40,7 +40,7 @@ bool EventTask::forMe( Transfer * transfer, EventTransfer*& event ) const { // see if we are supposed to handle this kind of event // consider speeding this up by having 1 handler per event - return ( m_eventCodes.find( event->eventType() ) != m_eventCodes.end() ); + return ( m_eventCodes.tqfind( event->eventType() ) != m_eventCodes.end() ); } return false; } diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/eventtask.h b/kopete/protocols/groupwise/libgroupwise/tasks/eventtask.h index 609728a4..5de20281 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/eventtask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/eventtask.h @@ -31,8 +31,9 @@ class Transfer; class EventTask : public Task { Q_OBJECT + TQ_OBJECT public: - EventTask( Task *parent ); + EventTask( Task *tqparent ); protected: bool forMe( Transfer * transfer, EventTransfer *& event ) const; void registerEvent( GroupWise::Event e ); diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.cpp index 8104ec24..81898ca2 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.cpp @@ -29,7 +29,7 @@ using namespace GroupWise; -GetChatSearchResultsTask::GetChatSearchResultsTask(Task* parent): RequestTask(parent) +GetChatSearchResultsTask::GetChatSearchResultsTask(Task* tqparent): RequestTask(tqparent) { } @@ -42,7 +42,7 @@ void GetChatSearchResultsTask::poll( int queryHandle ) { Field::FieldList lst; lst.append( new Field::SingleField( NM_A_UD_OBJECT_ID, 0, NMFIELD_TYPE_UDWORD, queryHandle ) ); - lst.append( new Field::SingleField( NM_A_UD_QUERY_COUNT, 0, NMFIELD_TYPE_UDWORD, 10 ) ); + lst.append( new Field::SingleField( NM_A_UD_TQUERY_COUNT, 0, NMFIELD_TYPE_UDWORD, 10 ) ); createTransfer( "getchatsearchresults", lst ); } @@ -62,7 +62,7 @@ bool GetChatSearchResultsTask::take( Transfer * transfer ) // look for the status code Field::FieldList responseFields = response->fields(); Field::SingleField * sf = responseFields.findSingleField( NM_A_UW_STATUS ); - m_queryStatus = (SearchResultCode)sf->value().toInt(); + m_querytqStatus = (SearchResultCode)sf->value().toInt(); Field::MultiField * resultsArray = responseFields.findMultiField( NM_A_FA_RESULTS ); if ( !resultsArray ) @@ -72,9 +72,9 @@ bool GetChatSearchResultsTask::take( Transfer * transfer ) } Field::FieldList matches = resultsArray->fields(); const Field::FieldListIterator end = matches.end(); - for ( Field::FieldListIterator it = matches.find( NM_A_FA_CHAT ); + for ( Field::FieldListIterator it = matches.tqfind( NM_A_FA_CHAT ); it != end; - it = matches.find( ++it, NM_A_FA_CHAT ) ) + it = matches.tqfind( ++it, NM_A_FA_CHAT ) ) { Field::MultiField * mf = static_cast<Field::MultiField *>( *it ); Field::FieldList chat = mf->fields(); @@ -82,12 +82,12 @@ bool GetChatSearchResultsTask::take( Transfer * transfer ) m_results.append( cd ); } - if ( m_queryStatus != DataRetrieved ) - setError( m_queryStatus ); + if ( m_querytqStatus != DataRetrieved ) + setError( m_querytqStatus ); else { kdDebug ( GROUPWISE_DEBUG_GLOBAL ) << " we won!" << endl; - setSuccess( m_queryStatus ); + setSuccess( m_querytqStatus ); } return true; } @@ -97,9 +97,9 @@ TQValueList< GroupWise::ChatroomSearchResult > GetChatSearchResultsTask::results return m_results; } -int GetChatSearchResultsTask::queryStatus() +int GetChatSearchResultsTask::querytqStatus() { - return m_queryStatus; + return m_querytqStatus; } GroupWise::ChatroomSearchResult GetChatSearchResultsTask::extractChatDetails( Field::FieldList & fields ) diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.h b/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.h index e85c1e74..dcafb3e7 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.h @@ -35,17 +35,18 @@ Search results are polled on the server, using the search handle returned by the class GetChatSearchResultsTask : public RequestTask { Q_OBJECT + TQ_OBJECT public: enum SearchResultCode { Completed=2, Cancelled=4, Error=5, GettingData=8, DataRetrieved=9 }; - GetChatSearchResultsTask(Task* parent); + GetChatSearchResultsTask(Task* tqparent); ~GetChatSearchResultsTask(); void poll( int queryHandle); bool take( Transfer * transfer ); - int queryStatus(); + int querytqStatus(); TQValueList< GroupWise::ChatroomSearchResult > results(); private: GroupWise::ChatroomSearchResult extractChatDetails( Field::FieldList & fields ); - SearchResultCode m_queryStatus; + SearchResultCode m_querytqStatus; TQValueList< GroupWise::ChatroomSearchResult > m_results; }; diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/getdetailstask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/getdetailstask.cpp index 61753d84..27a0c7f0 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/getdetailstask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/getdetailstask.cpp @@ -26,8 +26,8 @@ using namespace GroupWise; -GetDetailsTask::GetDetailsTask( Task * parent ) - : RequestTask( parent ) +GetDetailsTask::GetDetailsTask( Task * tqparent ) + : RequestTask( tqparent ) { } @@ -58,9 +58,9 @@ bool GetDetailsTask::take( Transfer * transfer ) // parse received details and signal like billio Field::MultiField * container = 0; Field::FieldListIterator end = detailsFields.end(); - for ( Field::FieldListIterator it = detailsFields.find( NM_A_FA_RESULTS ); + for ( Field::FieldListIterator it = detailsFields.tqfind( NM_A_FA_RESULTS ); it != end; - it = detailsFields.find( ++it, NM_A_FA_RESULTS ) ) + it = detailsFields.tqfind( ++it, NM_A_FA_RESULTS ) ) { container = static_cast<Field::MultiField *>( *it ); ContactDetails cd = extractUserDetails( container ); diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/getdetailstask.h b/kopete/protocols/groupwise/libgroupwise/tasks/getdetailstask.h index 747b494f..c45ad0e9 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/getdetailstask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/getdetailstask.h @@ -34,8 +34,9 @@ using namespace GroupWise; class GetDetailsTask : public RequestTask { Q_OBJECT + TQ_OBJECT public: - GetDetailsTask( Task * parent ); + GetDetailsTask( Task * tqparent ); ~GetDetailsTask(); bool take( Transfer * transfer ); void userDNs( const TQStringList & userDNs ); diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.cpp index 153746ea..68063261 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.cpp @@ -22,7 +22,7 @@ #include "getstatustask.h" -GetStatusTask::GetStatusTask(Task* parent): RequestTask(parent) +GetStatusTask::GetStatusTask(Task* tqparent): RequestTask(tqparent) { } @@ -52,7 +52,7 @@ bool GetStatusTask::take( Transfer * transfer ) responseFields.dump( true ); // parse received details and signal like billio Field::SingleField * sf = 0; - Q_UINT16 status; + TQ_UINT16 status; sf = responseFields.findSingleField( NM_A_SZ_STATUS ); if ( sf ) { @@ -60,8 +60,8 @@ bool GetStatusTask::take( Transfer * transfer ) // This must be because the sender is not on our contact list but has sent us a message. // TODO: Check that the change to sending DNs above has fixed this problem. status = sf->value().toInt(); - // unfortunately getstatus doesn't give us an away message so we pass TQString::null here - emit gotStatus( m_userDN, status, TQString::null ); + // unfortunately getstatus doesn't give us an away message so we pass TQString() here + emit gottqStatus( m_userDN, status, TQString() ); setSuccess(); } else diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.h b/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.h index 6294f053..9188fdd4 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.h @@ -30,13 +30,14 @@ class GetStatusTask : public RequestTask { Q_OBJECT + TQ_OBJECT public: - GetStatusTask(Task* parent); + GetStatusTask(Task* tqparent); ~GetStatusTask(); void userDN( const TQString & dn ); bool take( Transfer * transfer ); signals: - void gotStatus( const TQString & contactId, Q_UINT16 status, const TQString & statusText ); + void gottqStatus( const TQString & contactId, TQ_UINT16 status, const TQString & statusText ); private: TQString m_userDN; }; diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/joinchattask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/joinchattask.cpp index a14d6eec..35fab516 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/joinchattask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/joinchattask.cpp @@ -25,7 +25,7 @@ #include "joinchattask.h" -JoinChatTask::JoinChatTask(Task* parent): RequestTask(parent) +JoinChatTask::JoinChatTask(Task* tqparent): RequestTask(tqparent) { } @@ -59,9 +59,9 @@ bool JoinChatTask::take( Transfer * transfer ) Field::SingleField * contact = 0; Field::FieldList contactList = participants->fields(); const Field::FieldListIterator end = contactList.end(); - for ( Field::FieldListIterator it = contactList.find( NM_A_SZ_DN ); + for ( Field::FieldListIterator it = contactList.tqfind( NM_A_SZ_DN ); it != end; - it = contactList.find( ++it, NM_A_SZ_DN ) ) + it = contactList.tqfind( ++it, NM_A_SZ_DN ) ) { contact = static_cast<Field::SingleField *>( *it ); if ( contact ) @@ -83,9 +83,9 @@ bool JoinChatTask::take( Transfer * transfer ) Field::SingleField * contact = 0; Field::FieldList contactList = invitees->fields(); const Field::FieldListIterator end = contactList.end(); - for ( Field::FieldListIterator it = contactList.find( NM_A_SZ_DN ); + for ( Field::FieldListIterator it = contactList.tqfind( NM_A_SZ_DN ); it != end; - it = contactList.find( ++it, NM_A_SZ_DN ) ) + it = contactList.tqfind( ++it, NM_A_SZ_DN ) ) { contact = static_cast<Field::SingleField *>( *it ); if ( contact ) diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/joinchattask.h b/kopete/protocols/groupwise/libgroupwise/tasks/joinchattask.h index 9d6babe5..654d1a64 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/joinchattask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/joinchattask.h @@ -34,8 +34,9 @@ Sends Join Conference messages when the user accepts an invitation class JoinChatTask : public RequestTask { Q_OBJECT + TQ_OBJECT public: - JoinChatTask(Task* parent); + JoinChatTask(Task* tqparent); ~JoinChatTask(); void join( const TQString & displayName ); bool take( Transfer * transfer ); diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.cpp index b7b1f1cc..63a57fda 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.cpp @@ -25,7 +25,7 @@ #include "joinconferencetask.h" -JoinConferenceTask::JoinConferenceTask(Task* parent): RequestTask(parent) +JoinConferenceTask::JoinConferenceTask(Task* tqparent): RequestTask(tqparent) { } @@ -59,9 +59,9 @@ bool JoinConferenceTask::take( Transfer * transfer ) Field::SingleField * contact = 0; Field::FieldList contactList = participants->fields(); const Field::FieldListIterator end = contactList.end(); - for ( Field::FieldListIterator it = contactList.find( NM_A_SZ_DN ); + for ( Field::FieldListIterator it = contactList.tqfind( NM_A_SZ_DN ); it != end; - it = contactList.find( ++it, NM_A_SZ_DN ) ) + it = contactList.tqfind( ++it, NM_A_SZ_DN ) ) { contact = static_cast<Field::SingleField *>( *it ); if ( contact ) @@ -85,9 +85,9 @@ bool JoinConferenceTask::take( Transfer * transfer ) Field::SingleField * contact = 0; Field::FieldList contactList = invitees->fields(); const Field::FieldListIterator end = contactList.end(); - for ( Field::FieldListIterator it = contactList.find( NM_A_SZ_DN ); + for ( Field::FieldListIterator it = contactList.tqfind( NM_A_SZ_DN ); it != end; - it = contactList.find( ++it, NM_A_SZ_DN ) ) + it = contactList.tqfind( ++it, NM_A_SZ_DN ) ) { contact = static_cast<Field::SingleField *>( *it ); if ( contact ) @@ -128,14 +128,14 @@ bool JoinConferenceTask::take( Transfer * transfer ) void JoinConferenceTask::slotReceiveUserDetails( const ContactDetails & details ) { - client()->debug( TQString( "JoinConferenceTask::slotReceiveUserDetails() - got %1" ).arg( details.dn ) ); + client()->debug( TQString( "JoinConferenceTask::slotReceiveUserDetails() - got %1" ).tqarg( details.dn ) ); TQStringList::Iterator it = m_unknowns.begin(); TQStringList::Iterator end = m_unknowns.end(); while( it != end ) { TQString current = *it; ++it; - client()->debug( TQString( " - can we remove %1?" ).arg(current ) ); + client()->debug( TQString( " - can we remove %1?" ).tqarg(current ) ); if ( current == details.dn ) { client()->debug( " - it's gone!" ); @@ -143,7 +143,7 @@ void JoinConferenceTask::slotReceiveUserDetails( const ContactDetails & details break; } } - client()->debug( TQString( " - now %1 unknowns").arg( m_unknowns.count() ) ); + client()->debug( TQString( " - now %1 unknowns").tqarg( m_unknowns.count() ) ); if ( m_unknowns.empty() ) { client()->debug( " - finished()" ); diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.h b/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.h index d95e5084..29f34679 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.h @@ -34,8 +34,9 @@ Sends Join Conference messages when the user accepts an invitation class JoinConferenceTask : public RequestTask { Q_OBJECT + TQ_OBJECT public: - JoinConferenceTask(Task* parent); + JoinConferenceTask(Task* tqparent); ~JoinConferenceTask(); void join( const ConferenceGuid & guid ); bool take( Transfer * transfer ); diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/keepalivetask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/keepalivetask.cpp index ac84ac2b..d3c75055 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/keepalivetask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/keepalivetask.cpp @@ -24,7 +24,7 @@ #include "requestfactory.h" #include "keepalivetask.h" -KeepAliveTask::KeepAliveTask(Task* parent): RequestTask(parent) +KeepAliveTask::KeepAliveTask(Task* tqparent): RequestTask(tqparent) { } diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/keepalivetask.h b/kopete/protocols/groupwise/libgroupwise/tasks/keepalivetask.h index 04f9a352..dffe1059 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/keepalivetask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/keepalivetask.h @@ -29,8 +29,9 @@ class KeepAliveTask : public RequestTask { Q_OBJECT + TQ_OBJECT public: - KeepAliveTask(Task* parent); + KeepAliveTask(Task* tqparent); ~KeepAliveTask(); void setup(); }; diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/leaveconferencetask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/leaveconferencetask.cpp index d2d58b83..516c74c3 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/leaveconferencetask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/leaveconferencetask.cpp @@ -20,7 +20,7 @@ #include "leaveconferencetask.h" -LeaveConferenceTask::LeaveConferenceTask(Task* parent): RequestTask(parent) +LeaveConferenceTask::LeaveConferenceTask(Task* tqparent): RequestTask(tqparent) { } diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/leaveconferencetask.h b/kopete/protocols/groupwise/libgroupwise/tasks/leaveconferencetask.h index 65ebe540..72262b9e 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/leaveconferencetask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/leaveconferencetask.h @@ -31,8 +31,9 @@ Tells the server that you are leaving a conference (closed the chatwindow) class LeaveConferenceTask : public RequestTask { Q_OBJECT + TQ_OBJECT public: - LeaveConferenceTask(Task* parent); + LeaveConferenceTask(Task* tqparent); ~LeaveConferenceTask(); void leave( const GroupWise::ConferenceGuid & guid ); }; 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 ) ) diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/logintask.h b/kopete/protocols/groupwise/libgroupwise/tasks/logintask.h index 3d745bf9..b099be6a 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/logintask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/logintask.h @@ -31,8 +31,9 @@ using namespace GroupWise; class LoginTask : public RequestTask { Q_OBJECT + TQ_OBJECT public: - LoginTask( Task * parent ); + LoginTask( Task * tqparent ); ~LoginTask(); /** * Get the login fields ready to go @@ -57,7 +58,7 @@ signals: void gotContact( const ContactItem & ); void gotContactUserDetails( const GroupWise::ContactDetails & ); void gotPrivacySettings( bool locked, bool defaultDeny, const TQStringList & allowList, const TQStringList & denyList ); - void gotCustomStatus( const GroupWise::CustomStatus & ); + void gotCustomtqStatus( const GroupWise::CustomtqStatus & ); void gotKeepalivePeriod( int ); }; diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/modifycontactlisttask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/modifycontactlisttask.cpp index 10233a18..703c0582 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/modifycontactlisttask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/modifycontactlisttask.cpp @@ -23,7 +23,7 @@ #include "gwerror.h" #include "modifycontactlisttask.h" -ModifyContactListTask::ModifyContactListTask(Task* parent): RequestTask(parent) +ModifyContactListTask::ModifyContactListTask(Task* tqparent): RequestTask(tqparent) { } @@ -92,7 +92,7 @@ void ModifyContactListTask::processContactChange( Field::MultiField * container 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 ); @@ -125,9 +125,9 @@ void ModifyContactListTask::processFolderChange( Field::MultiField * container ) // 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(); if ( container->method() == NMFIELD_METHOD_ADD ) emit gotFolderAdded( folder ); else if ( container->method() == NMFIELD_METHOD_DELETE ) diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/modifycontactlisttask.h b/kopete/protocols/groupwise/libgroupwise/tasks/modifycontactlisttask.h index 2f5a4939..62d02bfa 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/modifycontactlisttask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/modifycontactlisttask.h @@ -24,7 +24,7 @@ #include "requesttask.h" /** -This is the parent of all tasks that manipulate the contact list. The server responds to each one in the same way, and this task contains a take() to process this response. +This is the tqparent of all tasks that manipulate the contact list. The server responds to each one in the same way, and this task contains a take() to process this response. @author SUSE AG */ @@ -34,8 +34,9 @@ using namespace GroupWise; class ModifyContactListTask : public RequestTask { Q_OBJECT + TQ_OBJECT public: - ModifyContactListTask(Task* parent); + ModifyContactListTask(Task* tqparent); ~ModifyContactListTask(); bool take( Transfer * transfer ); signals: diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/movecontacttask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/movecontacttask.cpp index 4a24f44f..044a4e24 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/movecontacttask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/movecontacttask.cpp @@ -22,7 +22,7 @@ #include "movecontacttask.h" -MoveContactTask::MoveContactTask(Task* parent): NeedFolderTask(parent) +MoveContactTask::MoveContactTask(Task* tqparent): NeedFolderTask(tqparent) { // make the client tell the client app (Kopete) when we receive a contact connect( this, TQT_SIGNAL( gotContactAdded( const ContactItem & ) ), client(), TQT_SIGNAL( contactReceived( const ContactItem & ) ) ); @@ -39,7 +39,7 @@ void MoveContactTask::moveContact( const ContactItem & contact, const int newPar // TODO: - write a contact_item_to_fields method and factor duplicate code like this out Field::FieldList contactFields; contactFields.append( new Field::SingleField( NM_A_SZ_OBJECT_ID, 0, NMFIELD_TYPE_UTF8, contact.id ) ); - contactFields.append( new Field::SingleField( NM_A_SZ_PARENT_ID, 0, NMFIELD_TYPE_UTF8, contact.parentId ) ); + contactFields.append( new Field::SingleField( NM_A_SZ_PARENT_ID, 0, NMFIELD_TYPE_UTF8, contact.tqparentId ) ); contactFields.append( new Field::SingleField( NM_A_SZ_SEQUENCE_NUMBER, 0, NMFIELD_TYPE_UTF8, contact.sequence ) ); if ( !contact.dn.isNull() ) contactFields.append( new Field::SingleField( NM_A_SZ_DN, 0, NMFIELD_TYPE_UTF8, contact.dn ) ); diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/movecontacttask.h b/kopete/protocols/groupwise/libgroupwise/tasks/movecontacttask.h index ad3bce44..adeeb68d 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/movecontacttask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/movecontacttask.h @@ -31,8 +31,9 @@ Moves a contact between folders on the server class MoveContactTask : public NeedFolderTask { Q_OBJECT + TQ_OBJECT public: - MoveContactTask(Task* parent); + MoveContactTask(Task* tqparent); ~MoveContactTask(); void moveContact( const ContactItem & contact, const int newParent ); void moveContactToNewFolder( const ContactItem & contact, const int newSequenceNumber, const TQString & folderDisplayName ); diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/needfoldertask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/needfoldertask.cpp index 12c7382a..842ef31c 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/needfoldertask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/needfoldertask.cpp @@ -15,7 +15,7 @@ #include "needfoldertask.h" -NeedFolderTask::NeedFolderTask(Task* parent): ModifyContactListTask(parent) +NeedFolderTask::NeedFolderTask(Task* tqparent): ModifyContactListTask(tqparent) { } @@ -38,7 +38,7 @@ void NeedFolderTask::slotFolderAdded( const FolderItem & addedFolder ) // if this is the folder we were trying to create if ( m_folderDisplayName == addedFolder.name ) { - client()->debug( TQString( "NeedFolderTask::slotFolderAdded() - Folder %1 was created on the server, now has objectId %2" ).arg( addedFolder.name ).arg( addedFolder.id ) ); + client()->debug( TQString( "NeedFolderTask::slotFolderAdded() - Folder %1 was created on the server, now has objectId %2" ).tqarg( addedFolder.name ).tqarg( addedFolder.id ) ); m_folderId = addedFolder.id; } } diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/needfoldertask.h b/kopete/protocols/groupwise/libgroupwise/tasks/needfoldertask.h index d1ad1a1e..167197e0 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/needfoldertask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/needfoldertask.h @@ -22,8 +22,9 @@ This Task is the ancestor of Tasks that may need to create a folder on the serve class NeedFolderTask : public ModifyContactListTask { Q_OBJECT + TQ_OBJECT public: - NeedFolderTask(Task* parent); + NeedFolderTask(Task* tqparent); ~NeedFolderTask(); void createFolder(); virtual void onFolderCreated() = 0; diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.cpp index d65a5a20..ae0f9456 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.cpp @@ -27,7 +27,7 @@ using namespace GroupWise; -PollSearchResultsTask::PollSearchResultsTask(Task* parent): RequestTask(parent) +PollSearchResultsTask::PollSearchResultsTask(Task* tqparent): RequestTask(tqparent) { } @@ -59,7 +59,7 @@ bool PollSearchResultsTask::take( Transfer * transfer ) // look for the status code Field::FieldList responseFields = response->fields(); Field::SingleField * sf = responseFields.findSingleField( NM_A_SZ_STATUS ); - m_queryStatus = sf->value().toInt(); + m_querytqStatus = sf->value().toInt(); Field::MultiField * resultsArray = responseFields.findMultiField( NM_A_FA_RESULTS ); if ( !resultsArray ) @@ -69,9 +69,9 @@ bool PollSearchResultsTask::take( Transfer * transfer ) } Field::FieldList matches = resultsArray->fields(); const Field::FieldListIterator end = matches.end(); - for ( Field::FieldListIterator it = matches.find( NM_A_FA_CONTACT ); + for ( Field::FieldListIterator it = matches.tqfind( NM_A_FA_CONTACT ); it != end; - it = matches.find( ++it, NM_A_FA_CONTACT ) ) + it = matches.tqfind( ++it, NM_A_FA_CONTACT ) ) { Field::MultiField * mf = static_cast<Field::MultiField *>( *it ); Field::FieldList contact = mf->fields(); @@ -79,7 +79,7 @@ bool PollSearchResultsTask::take( Transfer * transfer ) m_results.append( cd ); } - // first field: NM_A_SZ_STATUS contains + // first field: NM_A_SZ_STATUS tqcontains #define SEARCH_PENDING 0 #define SEARCH_INPROGRESS 1 #define SEARCH_COMPLETED 2 @@ -90,10 +90,10 @@ bool PollSearchResultsTask::take( Transfer * transfer ) // followed by NM_A_FA_RESULTS, looks like a getdetails // add an accessor to get at the results list of ContactItems, probably - if ( m_queryStatus != 2 ) - setError( m_queryStatus ); + if ( m_querytqStatus != 2 ) + setError( m_querytqStatus ); else - setSuccess( m_queryStatus ); + setSuccess( m_querytqStatus ); return true; } @@ -102,9 +102,9 @@ TQValueList< GroupWise::ContactDetails > PollSearchResultsTask::results() return m_results; } -int PollSearchResultsTask::queryStatus() +int PollSearchResultsTask::querytqStatus() { - return m_queryStatus; + return m_querytqStatus; } GroupWise::ContactDetails PollSearchResultsTask::extractUserDetails( Field::FieldList & fields ) @@ -155,7 +155,7 @@ GroupWise::ContactDetails PollSearchResultsTask::extractUserDetails( Field::Fiel Field::MultiField * propList = dynamic_cast<Field::MultiField*>( *it ); if ( propList ) { - 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 ) diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.h b/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.h index c03f75bb..a882a9b3 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.h @@ -35,17 +35,18 @@ Search results are polled on the server, using the search handle supplied by the class PollSearchResultsTask : public RequestTask { Q_OBJECT + TQ_OBJECT public: enum SearchResultCode { Pending=0, InProgess=1, Completed=2, TimeOut=3, Cancelled=4, Error=5 }; - PollSearchResultsTask(Task* parent); + PollSearchResultsTask(Task* tqparent); ~PollSearchResultsTask(); void poll( const TQString & queryHandle); bool take( Transfer * transfer ); - int queryStatus(); + int querytqStatus(); TQValueList< GroupWise::ContactDetails > results(); GroupWise::ContactDetails extractUserDetails( Field::FieldList & fields ); private: - int m_queryStatus; + int m_querytqStatus; TQValueList< GroupWise::ContactDetails > m_results; }; diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/privacyitemtask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/privacyitemtask.cpp index 508b3306..2c9ac7ef 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/privacyitemtask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/privacyitemtask.cpp @@ -20,7 +20,7 @@ #include "privacyitemtask.h" -PrivacyItemTask::PrivacyItemTask( Task* parent) : RequestTask( parent ) +PrivacyItemTask::PrivacyItemTask( Task* tqparent) : RequestTask( tqparent ) { } diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/privacyitemtask.h b/kopete/protocols/groupwise/libgroupwise/tasks/privacyitemtask.h index 401dc765..de894186 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/privacyitemtask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/privacyitemtask.h @@ -31,8 +31,9 @@ Adds a contact to the server side allow or deny lists class PrivacyItemTask : public RequestTask { Q_OBJECT + TQ_OBJECT public: - PrivacyItemTask( Task* parent); + PrivacyItemTask( Task* tqparent); ~PrivacyItemTask(); void allow( const TQString & dn ); void deny( const TQString & dn ); diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/rejectinvitetask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/rejectinvitetask.cpp index 2b252ff5..9a3f8780 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/rejectinvitetask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/rejectinvitetask.cpp @@ -20,7 +20,7 @@ #include "rejectinvitetask.h" -RejectInviteTask::RejectInviteTask(Task* parent): RequestTask(parent) +RejectInviteTask::RejectInviteTask(Task* tqparent): RequestTask(tqparent) { } diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/rejectinvitetask.h b/kopete/protocols/groupwise/libgroupwise/tasks/rejectinvitetask.h index b82f4e77..b7ee62f0 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/rejectinvitetask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/rejectinvitetask.h @@ -31,8 +31,9 @@ Used to reject an invitation to join a conference class RejectInviteTask : public RequestTask { Q_OBJECT + TQ_OBJECT public: - RejectInviteTask(Task* parent); + RejectInviteTask(Task* tqparent); ~RejectInviteTask(); void reject( const GroupWise::ConferenceGuid & guid ); diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/requesttask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/requesttask.cpp index 44f54124..12645297 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/requesttask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/requesttask.cpp @@ -26,8 +26,8 @@ #include "requesttask.h" -RequestTask::RequestTask( Task * parent ) -: Task( parent ) +RequestTask::RequestTask( Task * tqparent ) +: Task( tqparent ) { } @@ -50,7 +50,7 @@ void RequestTask::onGo() { if ( transfer() ) { - client()->debug( TQString( "%1::onGo() - sending %2 fields" ).arg( className() ).arg( static_cast<Request *>( transfer() )->command() ) ); + client()->debug( TQString( "%1::onGo() - sending %2 fields" ).tqarg( className() ).tqarg( static_cast<Request *>( transfer() )->command() ) ); send( static_cast<Request *>( transfer() ) ); } else diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/requesttask.h b/kopete/protocols/groupwise/libgroupwise/tasks/requesttask.h index 71101fab..e12bd741 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/requesttask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/requesttask.h @@ -28,8 +28,9 @@ class Transfer; class RequestTask : public Task { Q_OBJECT + TQ_OBJECT public: - RequestTask( Task *parent ); + RequestTask( Task *tqparent ); bool take( Transfer * transfer ); virtual void onGo(); protected: diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/searchchattask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/searchchattask.cpp index 87694eb4..e0e56634 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/searchchattask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/searchchattask.cpp @@ -40,7 +40,7 @@ using namespace GroupWise; -SearchChatTask::SearchChatTask(Task* parent): RequestTask(parent), m_polls( 0 ) +SearchChatTask::SearchChatTask(Task* tqparent): RequestTask(tqparent), m_polls( 0 ) { } @@ -91,9 +91,9 @@ void SearchChatTask::slotPollForResults() void SearchChatTask::slotGotPollResults() { GetChatSearchResultsTask * gcsrt = (GetChatSearchResultsTask *)sender(); - kdDebug( GROUPWISE_DEBUG_GLOBAL ) << k_funcinfo << "status code is " << gcsrt->queryStatus() << endl; + kdDebug( GROUPWISE_DEBUG_GLOBAL ) << k_funcinfo << "status code is " << gcsrt->querytqStatus() << endl; m_polls++; - switch ( gcsrt->queryStatus() ) + switch ( gcsrt->querytqStatus() ) { case GetChatSearchResultsTask::GettingData: if ( m_polls < GW_POLL_MAXIMUM ) // restart timer diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/searchchattask.h b/kopete/protocols/groupwise/libgroupwise/tasks/searchchattask.h index ea887657..4d010ffe 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/searchchattask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/searchchattask.h @@ -35,10 +35,11 @@ This Task searches for chatrooms on the server class SearchChatTask : public RequestTask { Q_OBJECT + TQ_OBJECT public: enum SearchType { FetchAll=0, SinceLastSearch }; - SearchChatTask(Task* parent); + SearchChatTask(Task* tqparent); ~SearchChatTask(); /** diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/searchusertask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/searchusertask.cpp index 1b64c47d..2d0522c3 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/searchusertask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/searchusertask.cpp @@ -39,7 +39,7 @@ using namespace GroupWise; -SearchUserTask::SearchUserTask(Task* parent): RequestTask(parent), m_polls( 0 ) +SearchUserTask::SearchUserTask(Task* tqparent): RequestTask(tqparent), m_polls( 0 ) { } @@ -50,7 +50,7 @@ SearchUserTask::~SearchUserTask() void SearchUserTask::search( const TQValueList<UserSearchQueryTerm> & query ) { - m_queryHandle = TQString::number( TQDateTime::currentDateTime().toTime_t () ); + m_queryHandle = TQString::number( TQDateTime::tqcurrentDateTime().toTime_t () ); Field::FieldList lst; if ( query.isEmpty() ) { @@ -102,9 +102,9 @@ void SearchUserTask::slotPollForResults() void SearchUserTask::slotGotPollResults() { PollSearchResultsTask * psrt = (PollSearchResultsTask *)sender(); - kdDebug( GROUPWISE_DEBUG_GLOBAL ) << k_funcinfo << "status code is " << psrt->queryStatus() << endl; + kdDebug( GROUPWISE_DEBUG_GLOBAL ) << k_funcinfo << "status code is " << psrt->querytqStatus() << endl; m_polls++; - switch ( psrt->queryStatus() ) + switch ( psrt->querytqStatus() ) { case PollSearchResultsTask::Pending: case PollSearchResultsTask::InProgess: diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/searchusertask.h b/kopete/protocols/groupwise/libgroupwise/tasks/searchusertask.h index d5347c73..5e79ac2f 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/searchusertask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/searchusertask.h @@ -33,8 +33,9 @@ This Task performs user searching on the server class SearchUserTask : public RequestTask { Q_OBJECT + TQ_OBJECT public: - SearchUserTask(Task* parent); + SearchUserTask(Task* tqparent); ~SearchUserTask(); /** diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/sendinvitetask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/sendinvitetask.cpp index 9fa7d65e..60d9f986 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/sendinvitetask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/sendinvitetask.cpp @@ -20,7 +20,7 @@ #include "sendinvitetask.h" -SendInviteTask::SendInviteTask(Task* parent): RequestTask(parent) +SendInviteTask::SendInviteTask(Task* tqparent): RequestTask(tqparent) { } diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/sendinvitetask.h b/kopete/protocols/groupwise/libgroupwise/tasks/sendinvitetask.h index b08c7259..70672e3e 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/sendinvitetask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/sendinvitetask.h @@ -33,7 +33,7 @@ This sends an invitation to a conference class SendInviteTask : public RequestTask { public: - SendInviteTask(Task* parent); + SendInviteTask(Task* tqparent); ~SendInviteTask(); void invite( const GroupWise::ConferenceGuid & guid, const TQStringList & invitees, const GroupWise::OutgoingMessage & msg ); private: diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/sendmessagetask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/sendmessagetask.cpp index fdf1173f..13e65435 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/sendmessagetask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/sendmessagetask.cpp @@ -20,7 +20,7 @@ #include "sendmessagetask.h" -SendMessageTask::SendMessageTask(Task* parent): RequestTask(parent) +SendMessageTask::SendMessageTask(Task* tqparent): RequestTask(tqparent) { } diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/sendmessagetask.h b/kopete/protocols/groupwise/libgroupwise/tasks/sendmessagetask.h index 44559e15..95175d77 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/sendmessagetask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/sendmessagetask.h @@ -32,7 +32,7 @@ Sends messages to a particular conference on the server class SendMessageTask : public RequestTask { public: - SendMessageTask(Task* parent); + SendMessageTask(Task* tqparent); ~SendMessageTask(); void message( const TQStringList & recipientDNList, const OutgoingMessage & msg ); diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/setstatustask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/setstatustask.cpp index bf463407..696ffffa 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/setstatustask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/setstatustask.cpp @@ -22,7 +22,7 @@ using namespace GroupWise; -SetStatusTask::SetStatusTask(Task* parent): RequestTask(parent) +SetStatusTask::SetStatusTask(Task* tqparent): RequestTask(tqparent) { } @@ -30,20 +30,20 @@ SetStatusTask::~SetStatusTask() { } -void SetStatusTask::status( Status newStatus, const TQString &awayMessage, const TQString &autoReply ) +void SetStatusTask::status( tqStatus newtqStatus, const TQString &awayMessage, const TQString &autoReply ) { - if ( newStatus > GroupWise::Invalid ) + if ( newtqStatus > GroupWise::Invalid ) { - setError( 1, "Invalid Status" ); + setError( 1, "Invalid tqStatus" ); return; } - m_status = newStatus; + m_status = newtqStatus; m_awayMessage = awayMessage; m_autoReply = autoReply; Field::FieldList lst; - lst.append( new Field::SingleField( NM_A_SZ_STATUS, 0, NMFIELD_TYPE_UTF8, TQString::number( newStatus ) ) ); + lst.append( new Field::SingleField( NM_A_SZ_STATUS, 0, NMFIELD_TYPE_UTF8, TQString::number( newtqStatus ) ) ); if ( !awayMessage.isNull() ) lst.append( new Field::SingleField( NM_A_SZ_STATUS_TEXT, 0, NMFIELD_TYPE_UTF8, awayMessage ) ); if ( !autoReply.isNull() ) @@ -51,7 +51,7 @@ void SetStatusTask::status( Status newStatus, const TQString &awayMessage, const createTransfer( "setstatus", lst ); } -Status SetStatusTask::requestedStatus() const +tqStatus SetStatusTask::requestedtqStatus() const { return m_status; } diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/setstatustask.h b/kopete/protocols/groupwise/libgroupwise/tasks/setstatustask.h index 4e41e681..72eaf9a4 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/setstatustask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/setstatustask.h @@ -30,15 +30,16 @@ class SetStatusTask : public RequestTask { Q_OBJECT + TQ_OBJECT public: - SetStatusTask(Task* parent); + SetStatusTask(Task* tqparent); ~SetStatusTask(); - void status( GroupWise::Status newStatus, const TQString &awayMessage, const TQString &autoReply ); - GroupWise::Status requestedStatus() const; + void status( GroupWise::tqStatus newtqStatus, const TQString &awayMessage, const TQString &autoReply ); + GroupWise::tqStatus requestedtqStatus() const; TQString awayMessage() const; TQString autoReply() const; private: - GroupWise::Status m_status; + GroupWise::tqStatus m_status; TQString m_awayMessage; TQString m_autoReply; }; diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/statustask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/statustask.cpp index e7272402..fa360a45 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/statustask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/statustask.cpp @@ -22,7 +22,7 @@ #include "statustask.h" -StatusTask::StatusTask(Task* parent): EventTask(parent) +StatusTask::StatusTask(Task* tqparent): EventTask(tqparent) { registerEvent( GroupWise::StatusChange ); } @@ -37,8 +37,8 @@ bool StatusTask::take( Transfer * transfer ) if ( forMe( transfer, event ) ) { client()->debug( "Got a status change!" ); - client()->debug( TQString( "%1 changed status to %2, message: %3" ).arg( event->source() ).arg( event->status() ).arg( event->statusText() ) ); - emit gotStatus( event->source().lower(), event->status(), event->statusText() ); + client()->debug( TQString( "%1 changed status to %2, message: %3" ).tqarg( event->source() ).tqarg( event->status() ).tqarg( event->statusText() ) ); + emit gottqStatus( event->source().lower(), event->status(), event->statusText() ); return true; } else diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/statustask.h b/kopete/protocols/groupwise/libgroupwise/tasks/statustask.h index 2a57cd04..90d46bc7 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/statustask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/statustask.h @@ -29,12 +29,13 @@ class StatusTask : public EventTask { Q_OBJECT + TQ_OBJECT public: - StatusTask(Task* parent); + StatusTask(Task* tqparent); ~StatusTask(); bool take( Transfer * transfer ); signals: - void gotStatus( const TQString & contactId, Q_UINT16 status, const TQString & statusText ); + void gottqStatus( const TQString & contactId, TQ_UINT16 status, const TQString & statusText ); }; #endif diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/typingtask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/typingtask.cpp index 2a421752..f9136eca 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/typingtask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/typingtask.cpp @@ -22,7 +22,7 @@ #include "typingtask.h" -TypingTask::TypingTask(Task* parent): RequestTask(parent) +TypingTask::TypingTask(Task* tqparent): RequestTask(tqparent) { } diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/typingtask.h b/kopete/protocols/groupwise/libgroupwise/tasks/typingtask.h index 4f4da1cd..84fe6e46 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/typingtask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/typingtask.h @@ -31,9 +31,10 @@ class TypingTask : public RequestTask { Q_OBJECT + TQ_OBJECT public: - TypingTask(Task* parent); + TypingTask(Task* tqparent); ~TypingTask(); void typing( const GroupWise::ConferenceGuid & guid, const bool typing ); }; diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/updatecontacttask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/updatecontacttask.cpp index aa75441d..e1a863a7 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/updatecontacttask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/updatecontacttask.cpp @@ -24,7 +24,7 @@ using namespace GroupWise; -UpdateContactTask::UpdateContactTask(Task* parent): UpdateItemTask(parent) +UpdateContactTask::UpdateContactTask(Task* tqparent): UpdateItemTask(tqparent) { } @@ -48,7 +48,7 @@ void UpdateContactTask::renameContact( const TQString & newName, const TQValueLi { Field::FieldList contactFields; contactFields.append( new Field::SingleField( NM_A_SZ_OBJECT_ID, 0, NMFIELD_TYPE_UTF8, (*it).id ) ); - contactFields.append( new Field::SingleField( NM_A_SZ_PARENT_ID, 0, NMFIELD_TYPE_UTF8, (*it).parentId ) ); + contactFields.append( new Field::SingleField( NM_A_SZ_PARENT_ID, 0, NMFIELD_TYPE_UTF8, (*it).tqparentId ) ); contactFields.append( new Field::SingleField( NM_A_SZ_SEQUENCE_NUMBER, 0, NMFIELD_TYPE_UTF8, (*it).sequence ) ); if ( !(*it).dn.isNull() ) contactFields.append( new Field::SingleField( NM_A_SZ_DN, 0, NMFIELD_TYPE_UTF8, (*it).dn ) ); @@ -61,7 +61,7 @@ void UpdateContactTask::renameContact( const TQString & newName, const TQValueLi { Field::FieldList contactFields; contactFields.append( new Field::SingleField( NM_A_SZ_OBJECT_ID, 0, NMFIELD_TYPE_UTF8, (*it).id ) ); - contactFields.append( new Field::SingleField( NM_A_SZ_PARENT_ID, 0, NMFIELD_TYPE_UTF8, (*it).parentId ) ); + contactFields.append( new Field::SingleField( NM_A_SZ_PARENT_ID, 0, NMFIELD_TYPE_UTF8, (*it).tqparentId ) ); contactFields.append( new Field::SingleField( NM_A_SZ_SEQUENCE_NUMBER, 0, NMFIELD_TYPE_UTF8, (*it).sequence ) ); if ( !(*it).dn.isNull() ) contactFields.append( new Field::SingleField( NM_A_SZ_DN, 0, NMFIELD_TYPE_UTF8, (*it).dn ) ); diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/updatecontacttask.h b/kopete/protocols/groupwise/libgroupwise/tasks/updatecontacttask.h index 4126658e..5ced02a5 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/updatecontacttask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/updatecontacttask.h @@ -32,8 +32,9 @@ class UpdateContactTask : public UpdateItemTask { Q_OBJECT + TQ_OBJECT public: - UpdateContactTask(Task* parent); + UpdateContactTask(Task* tqparent); ~UpdateContactTask(); void renameContact( const TQString& newName, const TQValueList<GroupWise::ContactItem> & contactInstances ); TQString displayName(); diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/updatefoldertask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/updatefoldertask.cpp index 3f8ff7bf..af0785de 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/updatefoldertask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/updatefoldertask.cpp @@ -21,7 +21,7 @@ #include "updatefoldertask.h" -UpdateFolderTask::UpdateFolderTask(Task* parent): UpdateItemTask(parent) +UpdateFolderTask::UpdateFolderTask(Task* tqparent): UpdateItemTask(tqparent) { } @@ -39,7 +39,7 @@ void UpdateFolderTask::renameFolder( const TQString & newName, const GroupWise:: renamed.name = newName; // add the new version of the folder, marked add lst.append( new Field::MultiField( NM_A_FA_FOLDER, NMFIELD_METHOD_ADD, 0, NMFIELD_TYPE_ARRAY, folderToFields( renamed ) ) ); - // let our parent class package it up as a contactlist in a transfer + // let our tqparent class package it up as a contactlist in a transfer UpdateItemTask::item( lst ); } diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/updatefoldertask.h b/kopete/protocols/groupwise/libgroupwise/tasks/updatefoldertask.h index 479a6bdd..90882a3d 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/updatefoldertask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/updatefoldertask.h @@ -31,8 +31,9 @@ Renames a folder on the server class UpdateFolderTask : public UpdateItemTask { Q_OBJECT + TQ_OBJECT public: - UpdateFolderTask(Task* parent); + UpdateFolderTask(Task* tqparent); ~UpdateFolderTask(); void renameFolder( const TQString & newName, const GroupWise::FolderItem & existing ); protected: diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/updateitemtask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/updateitemtask.cpp index 1af4ef12..95edb593 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/updateitemtask.cpp +++ b/kopete/protocols/groupwise/libgroupwise/tasks/updateitemtask.cpp @@ -20,7 +20,7 @@ #include "updateitemtask.h" -UpdateItemTask::UpdateItemTask( Task* parent) : RequestTask( parent ) +UpdateItemTask::UpdateItemTask( Task* tqparent) : RequestTask( tqparent ) { } diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/updateitemtask.h b/kopete/protocols/groupwise/libgroupwise/tasks/updateitemtask.h index a087d276..a988e371 100644 --- a/kopete/protocols/groupwise/libgroupwise/tasks/updateitemtask.h +++ b/kopete/protocols/groupwise/libgroupwise/tasks/updateitemtask.h @@ -31,8 +31,9 @@ Rename a folder or contact on the server. In future may be used for changing th class UpdateItemTask : public RequestTask { Q_OBJECT + TQ_OBJECT public: - UpdateItemTask( Task* parent ); + UpdateItemTask( Task* tqparent ); ~UpdateItemTask(); void item( Field::FieldList updateItemFields ); }; |