summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/groupwise/libgroupwise/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/groupwise/libgroupwise/tasks')
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/chatcountstask.cpp6
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/chatcountstask.h6
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/chatpropertiestask.cpp4
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/chatpropertiestask.h30
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/conferencetask.cpp32
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/conferencetask.h6
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/createconferencetask.cpp6
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/createconferencetask.h2
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/createcontactinstancetask.cpp14
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/createcontactinstancetask.h16
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/createcontacttask.cpp24
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/createcontacttask.h20
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/createfoldertask.cpp6
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/createfoldertask.h2
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/deleteitemtask.cpp4
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/eventtask.h4
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.cpp2
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.h6
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/getdetailstask.cpp14
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/getdetailstask.h2
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.cpp6
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.h6
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/joinchattask.cpp12
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/joinchattask.h14
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.cpp24
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.h10
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/logintask.cpp24
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/logintask.h4
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/movecontacttask.cpp6
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/movecontacttask.h6
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/needfoldertask.cpp8
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/needfoldertask.h2
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.cpp16
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.h8
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/privacyitemtask.cpp10
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/privacyitemtask.h14
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/requesttask.cpp4
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/requesttask.h2
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/searchchattask.cpp14
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/searchchattask.h6
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/searchusertask.cpp20
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/searchusertask.h10
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/sendinvitetask.cpp6
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/sendinvitetask.h4
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/sendmessagetask.cpp6
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/sendmessagetask.h2
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/setstatustask.cpp8
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/setstatustask.h10
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/statustask.cpp2
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/statustask.h2
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/typingtask.cpp2
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/updatecontacttask.cpp10
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/updatecontacttask.h6
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/updatefoldertask.cpp2
-rw-r--r--kopete/protocols/groupwise/libgroupwise/tasks/updatefoldertask.h2
55 files changed, 247 insertions, 247 deletions
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/chatcountstask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/chatcountstask.cpp
index 9e9837f7..fb028c44 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/chatcountstask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/chatcountstask.cpp
@@ -16,7 +16,7 @@
*************************************************************************
*/
-#include <qmap.h>
+#include <tqmap.h>
#include <kdebug.h>
#include "gwfield.h"
@@ -65,7 +65,7 @@ bool ChatCountsTask::take( Transfer * transfer )
{
Field::MultiField * mf = static_cast<Field::MultiField *>( *it );
Field::FieldList chat = mf->fields();
- QString roomName;
+ TQString roomName;
int participants;
// read the supplied fields, set metadata and status.
Field::SingleField * sf;
@@ -79,7 +79,7 @@ bool ChatCountsTask::take( Transfer * transfer )
return true;
}
-QMap< QString, int > ChatCountsTask::results()
+TQMap< TQString, int > ChatCountsTask::results()
{
return m_results;
}
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/chatcountstask.h b/kopete/protocols/groupwise/libgroupwise/tasks/chatcountstask.h
index c80a219a..6197352d 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/chatcountstask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/chatcountstask.h
@@ -19,7 +19,7 @@
#ifndef CHATCOUNTSTASK_H
#define CHATCOUNTSTASK_H
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
#include "gwerror.h"
#include "gwfield.h"
@@ -41,9 +41,9 @@ class ChatCountsTask : public RequestTask
/**
* Contains a list of all the chatrooms that have participants on the server. If a chatroom exists but is empty, this task does not return a result, so update the participants count to 0.
*/
- QMap< QString, int > results();
+ TQMap< TQString, int > results();
private:
- QMap< QString, int > m_results;
+ TQMap< TQString, int > m_results;
};
#endif
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/chatpropertiestask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/chatpropertiestask.cpp
index 66b2da42..7f60f3c5 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/chatpropertiestask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/chatpropertiestask.cpp
@@ -34,7 +34,7 @@ ChatPropertiesTask::~ChatPropertiesTask()
{
}
-void ChatPropertiesTask::setChat( const QString &displayName )
+void ChatPropertiesTask::setChat( const TQString &displayName )
{
Field::FieldList lst;
m_chat = displayName;
@@ -131,7 +131,7 @@ bool ChatPropertiesTask::take( Transfer * transfer )
return true;
}
-QValueList< ChatContact > ChatPropertiesTask::aclEntries()
+TQValueList< ChatContact > ChatPropertiesTask::aclEntries()
{
return m_aclEntries;
}
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/chatpropertiestask.h b/kopete/protocols/groupwise/libgroupwise/tasks/chatpropertiestask.h
index c9f890dd..d52661f3 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/chatpropertiestask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/chatpropertiestask.h
@@ -19,8 +19,8 @@
#ifndef CHATPROPERTIESTASK_H
#define CHATPROPERTIESTASK_H
-#include <qdatetime.h>
-#include <qvaluelist.h>
+#include <tqdatetime.h>
+#include <tqvaluelist.h>
#include "gwchatrooms.h"
#include "gwerror.h"
#include "gwfield.h"
@@ -41,24 +41,24 @@ class ChatPropertiesTask : public RequestTask
/**
* Specify which chatroom to get properties for
*/
- void setChat( const QString & );
+ void setChat( const TQString & );
bool take( Transfer * transfer );
/**
* Contains a list of the ACL entries for the specified chatroom
*/
- QValueList< GroupWise::ChatContact > aclEntries();
- QString m_chat;
- QString m_ownerDn;
- QString m_description;
- QString m_disclaimer;
- QString m_query;
- QString m_archive;
- QString m_maxUsers;
- QString m_topic;
- QString m_creatorDn;
- QDateTime m_creationTime;
+ TQValueList< GroupWise::ChatContact > aclEntries();
+ TQString m_chat;
+ TQString m_ownerDn;
+ TQString m_description;
+ TQString m_disclaimer;
+ TQString m_query;
+ TQString m_archive;
+ TQString m_maxUsers;
+ TQString m_topic;
+ TQString m_creatorDn;
+ TQDateTime m_creationTime;
uint m_rights;
- QValueList< GroupWise::ChatContact > m_aclEntries;
+ TQValueList< GroupWise::ChatContact > m_aclEntries;
};
#endif
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/conferencetask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/conferencetask.cpp
index 9773a622..c88e22b4 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/conferencetask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/conferencetask.cpp
@@ -42,8 +42,8 @@ ConferenceTask::ConferenceTask( Task* parent )
registerEvent( GroupWise::ReceivedSystemBroadcast );
// listen to the UserDetailsManager telling us that user details are available
- connect( client()->userDetailsManager(), SIGNAL( gotContactDetails( const GroupWise::ContactDetails & ) ),
- SLOT( slotReceiveUserDetails( const GroupWise::ContactDetails & ) ) );
+ connect( client()->userDetailsManager(), TQT_SIGNAL( gotContactDetails( const GroupWise::ContactDetails & ) ),
+ TQT_SLOT( slotReceiveUserDetails( const GroupWise::ContactDetails & ) ) );
}
@@ -53,10 +53,10 @@ ConferenceTask::~ConferenceTask()
void ConferenceTask::dumpConferenceEvent( ConferenceEvent & evt )
{
- client()->debug( QString( "Conference Event - guid: %1 user: %2 timestamp: %3:%4:%5" ).arg
+ 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( QString( " flags: %1" ).arg( evt.flags, 8 ) );
+ client()->debug( TQString( " flags: %1" ).arg( 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( QString( "message: %1" ).arg( event.message ) );
+ client()->debug( TQString( "message: %1" ).arg( 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( QString( "message: %1" ).arg( event.message ) );
+ client()->debug( TQString( "message: %1" ).arg( 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( QString( "message: %1" ).arg( event.message.ascii() ) );
+ client()->debug( TQString( "message: %1" ).arg( event.message.ascii() ) );
emit autoReply( event );
break;
case GroupWise::ReceivedBroadcast:
Q_ASSERT( incomingEvent->hasMessage() );
event.message = incomingEvent->message();
client()->debug( "ReceivedBroadCast" );
- client()->debug( QString( "message: %1" ).arg( event.message ) );
+ client()->debug( TQString( "message: %1" ).arg( 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( QString( "message: %1" ).arg( event.message ) );
+ client()->debug( TQString( "message: %1" ).arg( event.message ) );
emit systemBroadcast( event );
break;
default:
- client()->debug( QString( "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" ).arg( incomingEvent->eventType() ).arg( event.guid.ascii() ) );
}
dumpConferenceEvent( event );
@@ -172,16 +172,16 @@ void ConferenceTask::slotReceiveUserDetails( const GroupWise::ContactDetails & d
client()->debug( "ConferenceTask::slotReceiveUserDetails()" );
// dequeue any events which are deliverable now we have these details
- QValueListIterator< ConferenceEvent > end = m_pendingEvents.end();
- QValueListIterator< ConferenceEvent > it = m_pendingEvents.begin();
+ TQValueListIterator< ConferenceEvent > end = m_pendingEvents.end();
+ TQValueListIterator< ConferenceEvent > it = m_pendingEvents.begin();
while ( it != end )
{
- QValueListIterator< ConferenceEvent > current = it;
+ TQValueListIterator< ConferenceEvent > current = it;
++it;
// if the details relate to event, try again to handle it
if ( details.dn == (*current).user )
{
- client()->debug( QString( " - got details for event involving %1" ).arg( (*current).user ) );
+ client()->debug( TQString( " - got details for event involving %1" ).arg( (*current).user ) );
switch ( (*current).type )
{
case GroupWise::ConferenceJoined:
@@ -204,7 +204,7 @@ void ConferenceTask::slotReceiveUserDetails( const GroupWise::ContactDetails & d
client()->debug( "Queued an event while waiting for more data, but didn't write a handler for the dequeue!" );
}
m_pendingEvents.remove( current );
- client()->debug( QString( "Event handled - now %1 pending events" ).arg
+ client()->debug( TQString( "Event handled - now %1 pending events" ).arg
( (uint)m_pendingEvents.count() ) );
}
}
@@ -220,7 +220,7 @@ bool ConferenceTask::queueWhileAwaitingData( const ConferenceEvent & event )
}
else
{
- client()->debug( QString( "ConferenceTask::queueWhileAwaitingData() - queueing event involving %1" ).arg( event.user ) );
+ client()->debug( TQString( "ConferenceTask::queueWhileAwaitingData() - queueing event involving %1" ).arg( 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 42f4fc2b..7f35d08b 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/conferencetask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/conferencetask.h
@@ -57,8 +57,8 @@ signals:
protected slots:
void slotReceiveUserDetails( const GroupWise::ContactDetails & );
protected:
- Q_UINT32 readFlags( QDataStream & din );
- QString readMessage( QDataStream & din );
+ Q_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
* and queues the event if so
@@ -68,7 +68,7 @@ protected:
void dumpConferenceEvent( ConferenceEvent & evt );
private:
// A list of events which are waiting for more data from the server before they can be exposed to the client
- QValueList< ConferenceEvent > m_pendingEvents;
+ TQValueList< ConferenceEvent > m_pendingEvents;
};
#endif
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/createconferencetask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/createconferencetask.cpp
index 8be16888..01d2fa05 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/createconferencetask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/createconferencetask.cpp
@@ -33,7 +33,7 @@ CreateConferenceTask::~CreateConferenceTask()
{
}
-void CreateConferenceTask::conference( const int confId, const QStringList &participants )
+void CreateConferenceTask::conference( const int confId, const TQStringList &participants )
{
m_confId = confId;
Field::FieldList lst, tmp;
@@ -41,8 +41,8 @@ void CreateConferenceTask::conference( const int confId, const QStringList &part
tmp.append( new Field::SingleField( NM_A_SZ_OBJECT_ID, 0, NMFIELD_TYPE_UTF8, m_guid ) );
lst.append( new Field::MultiField( NM_A_FA_CONVERSATION, NMFIELD_METHOD_VALID, 0, NMFIELD_TYPE_ARRAY, tmp ) );
// series of participants (may be empty )
- QValueListConstIterator<QString> end = participants.end();
- for ( QValueListConstIterator<QString> it = participants.begin(); it != end; ++it )
+ TQValueListConstIterator<TQString> end = participants.end();
+ for ( TQValueListConstIterator<TQString> it = participants.begin(); it != end; ++it )
lst.append( new Field::SingleField( NM_A_SZ_DN, 0, NMFIELD_TYPE_DN, *it ) );
lst.append( new Field::SingleField( NM_A_SZ_DN, 0, NMFIELD_TYPE_DN, client()->userDN() ) );
createTransfer( "createconf", lst );
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/createconferencetask.h b/kopete/protocols/groupwise/libgroupwise/tasks/createconferencetask.h
index 48d5702e..de66f734 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/createconferencetask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/createconferencetask.h
@@ -39,7 +39,7 @@ public:
* @param confId The client-unique conference Id.
* @param participants A list of Novell DNs of the people taking part in the conference.
*/
- void conference( const int confId, const QStringList &participants );
+ void conference( const int confId, const TQStringList &participants );
bool take( Transfer * transfer );
int clientConfId() const;
GroupWise::ConferenceGuid conferenceGUID() const;
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/createcontactinstancetask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/createcontactinstancetask.cpp
index 832b5900..d41db4a9 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/createcontactinstancetask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/createcontactinstancetask.cpp
@@ -24,19 +24,19 @@
CreateContactInstanceTask::CreateContactInstanceTask(Task* parent) : NeedFolderTask(parent)
{
// make the client tell the client app (Kopete) when we receive a contact
- connect( this, SIGNAL( gotContactAdded( const ContactItem & ) ), client(), SIGNAL( contactReceived( const ContactItem & ) ) );
+ connect( this, TQT_SIGNAL( gotContactAdded( const ContactItem & ) ), client(), TQT_SIGNAL( contactReceived( const ContactItem & ) ) );
}
CreateContactInstanceTask::~CreateContactInstanceTask()
{
}
-void CreateContactInstanceTask::contactFromUserId( const QString & userId, const QString & displayName, const int parentFolder )
+void CreateContactInstanceTask::contactFromUserId( const TQString & userId, const TQString & displayName, const int parentFolder )
{
contact( new Field::SingleField( NM_A_SZ_USERID, 0, NMFIELD_TYPE_UTF8, userId ), displayName, parentFolder );
}
-void CreateContactInstanceTask::contactFromUserIdAndFolder( const QString & userId, const QString & displayName, const int folderSequence, const QString & folderDisplayName )
+void CreateContactInstanceTask::contactFromUserIdAndFolder( const TQString & userId, const TQString & displayName, const int folderSequence, const TQString & folderDisplayName )
{
// record the user details
m_userId = userId;
@@ -46,12 +46,12 @@ void CreateContactInstanceTask::contactFromUserIdAndFolder( const QString & user
m_folderDisplayName = folderDisplayName;
}
-void CreateContactInstanceTask::contactFromDN( const QString & dn, const QString & displayName, const int parentFolder )
+void CreateContactInstanceTask::contactFromDN( const TQString & dn, const TQString & displayName, const int parentFolder )
{
contact( new Field::SingleField( NM_A_SZ_DN, 0, NMFIELD_TYPE_UTF8, dn ), displayName, parentFolder );
}
-void CreateContactInstanceTask::contactFromDNAndFolder( const QString & dn, const QString & displayName, const int folderSequence, const QString & folderDisplayName )
+void CreateContactInstanceTask::contactFromDNAndFolder( const TQString & dn, const TQString & displayName, const int folderSequence, const TQString & folderDisplayName )
{
// record the user details
m_dn = dn;
@@ -61,10 +61,10 @@ void CreateContactInstanceTask::contactFromDNAndFolder( const QString & dn, cons
m_folderDisplayName = folderDisplayName;
}
-void CreateContactInstanceTask::contact( Field::SingleField * id, const QString & displayName, const int parentFolder )
+void CreateContactInstanceTask::contact( Field::SingleField * id, const TQString & displayName, const int parentFolder )
{
Field::FieldList lst;
- lst.append( new Field::SingleField( NM_A_SZ_PARENT_ID, 0, NMFIELD_TYPE_UTF8, QString::number( parentFolder ) ) );
+ lst.append( new Field::SingleField( NM_A_SZ_PARENT_ID, 0, NMFIELD_TYPE_UTF8, TQString::number( parentFolder ) ) );
// 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 d6be5933..6c960a4c 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/createcontactinstancetask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/createcontactinstancetask.h
@@ -37,18 +37,18 @@ public:
/**
* Sets up the request message.
*/
- void contactFromUserId( const QString & userId, const QString & displayName, const int parentFolder );
- void contactFromDN( const QString & dn, const QString & displayName, const int parentFolder );
- void contactFromUserIdAndFolder( const QString & userId, const QString & displayName, const int folderSequence, const QString & folderDisplayName );
- void contactFromDNAndFolder( const QString & dn, const QString & displayName, const int folderSequence, const QString & folderDisplayName );
+ void contactFromUserId( const TQString & userId, const TQString & displayName, const int parentFolder );
+ void contactFromDN( const TQString & dn, const TQString & displayName, const int parentFolder );
+ 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 QString & displayName, const int parentFolder );
+ void contact( Field::SingleField * id, const TQString & displayName, const int parentFolder );
void onFolderCreated();
private:
- QString m_userId;
- QString m_dn;
- QString m_displayName;
+ TQString m_userId;
+ TQString m_dn;
+ TQString m_displayName;
};
#endif
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() )
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/createcontacttask.h b/kopete/protocols/groupwise/libgroupwise/tasks/createcontacttask.h
index a9e4ab06..2a46a51c 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/createcontacttask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/createcontacttask.h
@@ -21,7 +21,7 @@
#ifndef CREATECONTACTTASK_H
#define CREATECONTACTTASK_H
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
#include "gwerror.h"
@@ -48,12 +48,12 @@ public:
/**
* Get the userId of the contact just created
*/
- QString userId();
+ TQString userId();
/**
* Get the DN of the contact just created
*/
- QString dn();
- QString displayName();
+ TQString dn();
+ TQString displayName();
/**
* Sets up the task.
@@ -63,8 +63,8 @@ public:
* @param folders A list of folders that the contact should belong to - any folders that do not exist on the server should have a objectId of 0, and will be created
* @param topLevel is the folder also in the top level folder?
*/
- void contactFromUserId( const QString & userId, const QString & displayName, const int firstSeqNo, const QValueList< FolderItem > folders, bool topLevel );
- //void contactFromDN( const QString & dn, const QString & displayName, const int parentFolder );
+ 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 );
/**
* This task doesn't do any I/O itself, so this take prints an error and returns false;
*/
@@ -78,10 +78,10 @@ protected slots:
void slotCheckContactInstanceCreated();
private:
int m_firstSequenceNumber;
- QString m_userId;
- QString m_dn;
- QString m_displayName;
- QValueList< FolderItem > m_folders;
+ TQString m_userId;
+ TQString m_dn;
+ TQString m_displayName;
+ TQValueList< FolderItem > m_folders;
bool m_topLevel;
};
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/createfoldertask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/createfoldertask.cpp
index c7e9933b..c6e6a78a 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/createfoldertask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/createfoldertask.cpp
@@ -29,12 +29,12 @@ CreateFolderTask::~CreateFolderTask()
{
}
-void CreateFolderTask::folder( const int parentId, const int sequence, const QString & displayName )
+void CreateFolderTask::folder( const int parentId, const int sequence, const TQString & displayName )
{
Field::FieldList lst;
- lst.append( new Field::SingleField( NM_A_SZ_PARENT_ID, 0, NMFIELD_TYPE_UTF8, QString::number( parentId ) ) );
+ 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_DISPLAY_NAME, 0, NMFIELD_TYPE_UTF8, displayName ) );
- lst.append( new Field::SingleField( NM_A_SZ_SEQUENCE_NUMBER, 0, NMFIELD_TYPE_UTF8, QString::number( sequence ) ) );
+ 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 f3c6ebb9..cac19900 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/createfoldertask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/createfoldertask.h
@@ -34,7 +34,7 @@ Q_OBJECT
public:
CreateFolderTask(Task* parent);
~CreateFolderTask();
- void folder( const int parentId, const int sequence, const QString & displayName );
+ void folder( const int parentId, 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 89480d10..04ce1fb4 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/deleteitemtask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/deleteitemtask.cpp
@@ -37,9 +37,9 @@ 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, QString::number( parentFolder ) ) );
+ lst.append( new Field::SingleField( NM_A_SZ_PARENT_ID, 0, NMFIELD_TYPE_UTF8, TQString::number( parentFolder ) ) );
// this is either a user Id or a DN
- lst.append( new Field::SingleField( NM_A_SZ_OBJECT_ID, 0, NMFIELD_TYPE_UTF8, QString::number( objectId ) ) );
+ 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/eventtask.h b/kopete/protocols/groupwise/libgroupwise/tasks/eventtask.h
index 50b84ac5..609728a4 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/eventtask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/eventtask.h
@@ -21,7 +21,7 @@
#ifndef GW_EVENTTASK_H
#define GW_EVENTTASK_H
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
#include "eventtransfer.h"
#include "task.h"
@@ -37,7 +37,7 @@ Q_OBJECT
bool forMe( Transfer * transfer, EventTransfer *& event ) const;
void registerEvent( GroupWise::Event e );
private:
- QValueList<int> m_eventCodes;
+ TQValueList<int> m_eventCodes;
};
#endif
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.cpp
index fe1d61f9..8104ec24 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.cpp
@@ -92,7 +92,7 @@ bool GetChatSearchResultsTask::take( Transfer * transfer )
return true;
}
-QValueList< GroupWise::ChatroomSearchResult > GetChatSearchResultsTask::results()
+TQValueList< GroupWise::ChatroomSearchResult > GetChatSearchResultsTask::results()
{
return m_results;
}
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.h b/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.h
index 31db19ed..e85c1e74 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/getchatsearchresultstask.h
@@ -21,7 +21,7 @@
#ifndef CHATSEARCHRESULTSTASK_H
#define CHATSEARCHRESULTSTASK_H
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
#include "gwchatrooms.h"
@@ -42,11 +42,11 @@ class GetChatSearchResultsTask : public RequestTask
void poll( int queryHandle);
bool take( Transfer * transfer );
int queryStatus();
- QValueList< GroupWise::ChatroomSearchResult > results();
+ TQValueList< GroupWise::ChatroomSearchResult > results();
private:
GroupWise::ChatroomSearchResult extractChatDetails( Field::FieldList & fields );
SearchResultCode m_queryStatus;
- QValueList< GroupWise::ChatroomSearchResult > m_results;
+ TQValueList< GroupWise::ChatroomSearchResult > m_results;
};
#endif
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/getdetailstask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/getdetailstask.cpp
index 0b37efb4..61753d84 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/getdetailstask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/getdetailstask.cpp
@@ -36,10 +36,10 @@ GetDetailsTask::~GetDetailsTask()
{
}
-void GetDetailsTask::userDNs( const QStringList & userDNs )
+void GetDetailsTask::userDNs( const TQStringList & userDNs )
{
Field::FieldList lst;
- for ( QStringList::ConstIterator it = userDNs.begin(); it != userDNs.end(); ++it )
+ for ( TQStringList::ConstIterator it = userDNs.begin(); it != userDNs.end(); ++it )
{
lst.append( new Field::SingleField( NM_A_SZ_DN, 0, NMFIELD_TYPE_UTF8, *it ) );
}
@@ -97,7 +97,7 @@ ContactDetails GetDetailsTask::extractUserDetails(Field::MultiField * details )
if ( ( sf = fields.findSingleField ( NM_A_SZ_MESSAGE_BODY ) ) )
cd.awayMessage = sf->value().toString();
Field::MultiField * mf;
- QMap< QString, QString > propMap;
+ TQMap< TQString, TQString > propMap;
if ( ( mf = fields.findMultiField ( NM_A_FA_INFO_DISPLAY_ARRAY ) ) )
{
Field::FieldList fl = mf->fields();
@@ -106,8 +106,8 @@ ContactDetails GetDetailsTask::extractUserDetails(Field::MultiField * details )
{
Field::SingleField * propField = dynamic_cast<Field::SingleField *>( *it );
if ( propField ) {
- QString propName = propField->tag();
- QString propValue = propField->value().toString();
+ TQString propName = propField->tag();
+ TQString propValue = propField->value().toString();
propMap.insert( propName, propValue );
} else {
Field::MultiField * mf2;
@@ -118,8 +118,8 @@ ContactDetails GetDetailsTask::extractUserDetails(Field::MultiField * details )
{
propField = dynamic_cast<Field::SingleField *>( *it2 );
if ( propField ) {
- QString propName = propField->tag();
- QString propValue = propField->value().toString();
+ TQString propName = propField->tag();
+ TQString propValue = propField->value().toString();
propMap.insert( propName, propValue );
}
}
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/getdetailstask.h b/kopete/protocols/groupwise/libgroupwise/tasks/getdetailstask.h
index d263f50b..747b494f 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/getdetailstask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/getdetailstask.h
@@ -38,7 +38,7 @@ public:
GetDetailsTask( Task * parent );
~GetDetailsTask();
bool take( Transfer * transfer );
- void userDNs( const QStringList & userDNs );
+ void userDNs( const TQStringList & userDNs );
signals:
void gotContactUserDetails( const GroupWise::ContactDetails & );
protected:
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.cpp
index dde055a6..153746ea 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.cpp
@@ -30,7 +30,7 @@ GetStatusTask::~GetStatusTask()
{
}
-void GetStatusTask::userDN( const QString & dn )
+void GetStatusTask::userDN( const TQString & dn )
{
m_userDN = dn;
// set up Transfer
@@ -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 QString::null here
- emit gotStatus( m_userDN, status, QString::null );
+ // unfortunately getstatus doesn't give us an away message so we pass TQString::null here
+ emit gotStatus( m_userDN, status, TQString::null );
setSuccess();
}
else
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.h b/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.h
index 59422342..6294f053 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/getstatustask.h
@@ -33,12 +33,12 @@ Q_OBJECT
public:
GetStatusTask(Task* parent);
~GetStatusTask();
- void userDN( const QString & dn );
+ void userDN( const TQString & dn );
bool take( Transfer * transfer );
signals:
- void gotStatus( const QString & contactId, Q_UINT16 status, const QString & statusText );
+ void gotStatus( const TQString & contactId, Q_UINT16 status, const TQString & statusText );
private:
- QString m_userDN;
+ TQString m_userDN;
};
#endif
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/joinchattask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/joinchattask.cpp
index 4e9e4f57..a14d6eec 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/joinchattask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/joinchattask.cpp
@@ -33,7 +33,7 @@ JoinChatTask::~JoinChatTask()
{
}
-void JoinChatTask::join( const QString & displayName )
+void JoinChatTask::join( const TQString & displayName )
{
m_displayName = displayName;
Field::FieldList lst, tmp;
@@ -67,7 +67,7 @@ bool JoinChatTask::take( Transfer * transfer )
if ( contact )
{
// HACK: lowercased DN
- QString dn = contact->value().toString().lower();
+ TQString dn = contact->value().toString().lower();
m_participants.append( dn );
// need to ask for details for these contacts
}
@@ -91,7 +91,7 @@ bool JoinChatTask::take( Transfer * transfer )
if ( contact )
{
// HACK: lowercased DN
- QString dn = contact->value().toString().lower();
+ TQString dn = contact->value().toString().lower();
m_invitees.append( dn );
// need to ask for details for these contacts
if ( !client()->userDetailsManager()->known( dn ) )
@@ -113,17 +113,17 @@ bool JoinChatTask::take( Transfer * transfer )
return false;
}
-QStringList JoinChatTask::participants() const
+TQStringList JoinChatTask::participants() const
{
return m_participants;
}
-QStringList JoinChatTask::invitees() const
+TQStringList JoinChatTask::invitees() const
{
return m_invitees;
}
-QString JoinChatTask::displayName() const
+TQString JoinChatTask::displayName() const
{
return m_displayName;
}
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/joinchattask.h b/kopete/protocols/groupwise/libgroupwise/tasks/joinchattask.h
index a7cc4119..9d6babe5 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/joinchattask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/joinchattask.h
@@ -37,16 +37,16 @@ class JoinChatTask : public RequestTask
public:
JoinChatTask(Task* parent);
~JoinChatTask();
- void join( const QString & displayName );
+ void join( const TQString & displayName );
bool take( Transfer * transfer );
- QStringList participants() const;
- QStringList invitees() const;
- QString displayName() const;
+ TQStringList participants() const;
+ TQStringList invitees() const;
+ TQString displayName() const;
private:
ConferenceGuid m_displayName;
- QStringList m_participants;
- QStringList m_invitees;
- QStringList m_unknowns;
+ TQStringList m_participants;
+ TQStringList m_invitees;
+ TQStringList m_unknowns;
};
#endif
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.cpp
index c2cf0f02..b7b1f1cc 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.cpp
@@ -67,7 +67,7 @@ bool JoinConferenceTask::take( Transfer * transfer )
if ( contact )
{
// HACK: lowercased DN
- QString dn = contact->value().toString().lower();
+ TQString dn = contact->value().toString().lower();
m_participants.append( dn );
// need to ask for details for these contacts
if ( !client()->userDetailsManager()->known( dn ) )
@@ -93,7 +93,7 @@ bool JoinConferenceTask::take( Transfer * transfer )
if ( contact )
{
// HACK: lowercased DN
- QString dn = contact->value().toString().lower();
+ TQString dn = contact->value().toString().lower();
m_invitees.append( dn );
// need to ask for details for these contacts
if ( !client()->userDetailsManager()->known( dn ) )
@@ -113,8 +113,8 @@ bool JoinConferenceTask::take( Transfer * transfer )
{
client()->debug( "JoinConferenceTask::slotReceiveUserDetails(), requesting details" );
connect( client()->userDetailsManager(),
- SIGNAL( gotContactDetails( const GroupWise::ContactDetails & ) ),
- SLOT( slotReceiveUserDetails( const GroupWise::ContactDetails & ) ) );
+ TQT_SIGNAL( gotContactDetails( const GroupWise::ContactDetails & ) ),
+ TQT_SLOT( slotReceiveUserDetails( const GroupWise::ContactDetails & ) ) );
client()->userDetailsManager()->requestDetails( m_unknowns );
}
}
@@ -128,14 +128,14 @@ bool JoinConferenceTask::take( Transfer * transfer )
void JoinConferenceTask::slotReceiveUserDetails( const ContactDetails & details )
{
- client()->debug( QString( "JoinConferenceTask::slotReceiveUserDetails() - got %1" ).arg( details.dn ) );
- QStringList::Iterator it = m_unknowns.begin();
- QStringList::Iterator end = m_unknowns.end();
+ client()->debug( TQString( "JoinConferenceTask::slotReceiveUserDetails() - got %1" ).arg( details.dn ) );
+ TQStringList::Iterator it = m_unknowns.begin();
+ TQStringList::Iterator end = m_unknowns.end();
while( it != end )
{
- QString current = *it;
+ TQString current = *it;
++it;
- client()->debug( QString( " - can we remove %1?" ).arg(current ) );
+ client()->debug( TQString( " - can we remove %1?" ).arg(current ) );
if ( current == details.dn )
{
client()->debug( " - it's gone!" );
@@ -143,7 +143,7 @@ void JoinConferenceTask::slotReceiveUserDetails( const ContactDetails & details
break;
}
}
- client()->debug( QString( " - now %1 unknowns").arg( m_unknowns.count() ) );
+ client()->debug( TQString( " - now %1 unknowns").arg( m_unknowns.count() ) );
if ( m_unknowns.empty() )
{
client()->debug( " - finished()" );
@@ -157,12 +157,12 @@ void JoinConferenceTask::slotReceiveUserDetails( const ContactDetails & details
// }
}
-QStringList JoinConferenceTask::participants() const
+TQStringList JoinConferenceTask::participants() const
{
return m_participants;
}
-QStringList JoinConferenceTask::invitees() const
+TQStringList JoinConferenceTask::invitees() const
{
return m_invitees;
}
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.h b/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.h
index 68316147..d95e5084 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/joinconferencetask.h
@@ -39,16 +39,16 @@ public:
~JoinConferenceTask();
void join( const ConferenceGuid & guid );
bool take( Transfer * transfer );
- QStringList participants() const;
- QStringList invitees() const;
+ TQStringList participants() const;
+ TQStringList invitees() const;
ConferenceGuid guid() const;
public slots:
void slotReceiveUserDetails( const GroupWise::ContactDetails & details );
private:
ConferenceGuid m_guid;
- QStringList m_participants;
- QStringList m_invitees;
- QStringList m_unknowns;
+ TQStringList m_participants;
+ TQStringList m_invitees;
+ TQStringList m_unknowns;
};
#endif
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/logintask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/logintask.cpp
index 1f679a6c..6a28124f 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/logintask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/logintask.cpp
@@ -36,7 +36,7 @@ LoginTask::~LoginTask()
void LoginTask::initialise()
{
- QString command = QString::fromLatin1("login:%1:%2").arg( client()->host() ).arg( client()->port() );
+ TQString command = TQString::fromLatin1("login:%1:%2").arg( client()->host() ).arg( client()->port() );
Field::FieldList lst;
lst.append( new Field::SingleField( NM_A_SZ_USERID, 0, NMFIELD_TYPE_UTF8, client()->userId() ) );
@@ -123,7 +123,7 @@ void LoginTask::extractFolder( Field::MultiField * folderContainer )
current = fl.findSingleField( NM_A_SZ_PARENT_ID );
folder.parentId = current->value().toInt();
- client()->debug( QString( "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, parent: %3, seq: %3." ).arg( folder.name ).arg( folder.id ).arg( folder.parentId ).arg( folder.sequence ) );
// tell the world about it
emit gotFolder( folder );
}
@@ -186,7 +186,7 @@ ContactDetails LoginTask::extractUserDetails( Field::FieldList & fields )
if ( ( sf = fields.findSingleField ( NM_A_SZ_MESSAGE_BODY ) ) )
cd.awayMessage = sf->value().toString();
Field::MultiField * mf;
- QMap< QString, QString > propMap;
+ TQMap< TQString, TQString > propMap;
if ( ( mf = fields.findMultiField ( NM_A_FA_INFO_DISPLAY_ARRAY ) ) )
{
Field::FieldList fl = mf->fields();
@@ -196,8 +196,8 @@ ContactDetails LoginTask::extractUserDetails( Field::FieldList & fields )
Field::SingleField * propField = dynamic_cast<Field::SingleField *>( *it );
if ( propField )
{
- QString propName = propField->tag();
- QString propValue = propField->value().toString();
+ TQString propName = propField->tag();
+ TQString propValue = propField->value().toString();
propMap.insert( propName, propValue );
}
else
@@ -206,7 +206,7 @@ ContactDetails LoginTask::extractUserDetails( Field::FieldList & fields )
if ( propList )
{
// Hello A Nagappan. GW gave us a multiple field where we previously got a single field
- QString parentName = propList->tag();
+ TQString parentName = propList->tag();
Field::FieldList propFields = propList->fields();
const Field::FieldListIterator end = propFields.end();
for ( Field::FieldListIterator it = propFields.begin(); it != end; ++it )
@@ -214,8 +214,8 @@ ContactDetails LoginTask::extractUserDetails( Field::FieldList & fields )
propField = dynamic_cast<Field::SingleField *>( *it );
if ( propField /*&& propField->tag() == parentName */)
{
- QString propValue = propField->value().toString();
- QString contents = propMap[ propField->tag() ];
+ TQString propValue = propField->value().toString();
+ TQString contents = propMap[ propField->tag() ];
if ( !contents.isEmpty() )
contents.append( ", " );
contents.append( propField->value().toString());
@@ -237,8 +237,8 @@ void LoginTask::extractPrivacy( Field::FieldList & fields )
{
bool privacyLocked = false;
bool defaultDeny = false;
- QStringList allowList;
- QStringList denyList;
+ TQStringList allowList;
+ TQStringList denyList;
// read blocking
// may be a single field or may be an array
Field::FieldListIterator it = fields.find( NM_A_LOCKED_ATTR_LIST );
@@ -280,9 +280,9 @@ void LoginTask::extractPrivacy( Field::FieldList & fields )
kdDebug( GROUPWISE_DEBUG_GLOBAL ) << "locked is " << privacyLocked << ", default is " << defaultDeny << "\nallow list is: " << allowList << "\ndeny list is: " << denyList << endl;
}
-QStringList LoginTask::readPrivacyItems( const QCString & tag, Field::FieldList & fields )
+TQStringList LoginTask::readPrivacyItems( const TQCString & tag, Field::FieldList & fields )
{
- QStringList items;
+ TQStringList items;
Field::FieldListIterator it = fields.find( tag );
if ( it != fields.end() )
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/logintask.h b/kopete/protocols/groupwise/libgroupwise/tasks/logintask.h
index 0b2acdfd..3d745bf9 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/logintask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/logintask.h
@@ -48,7 +48,7 @@ protected:
void extractContact( Field::MultiField * contactContainer );
ContactDetails extractUserDetails( Field::FieldList & fields );
void extractPrivacy( Field::FieldList & fields );
- QStringList readPrivacyItems( const QCString & tag, Field::FieldList & fields );
+ TQStringList readPrivacyItems( const TQCString & tag, Field::FieldList & fields );
void extractCustomStatuses( Field::FieldList & fields );
void extractKeepalivePeriod( Field::FieldList & fields );
signals:
@@ -56,7 +56,7 @@ signals:
void gotFolder( const FolderItem & );
void gotContact( const ContactItem & );
void gotContactUserDetails( const GroupWise::ContactDetails & );
- void gotPrivacySettings( bool locked, bool defaultDeny, const QStringList & allowList, const QStringList & denyList );
+ void gotPrivacySettings( bool locked, bool defaultDeny, const TQStringList & allowList, const TQStringList & denyList );
void gotCustomStatus( const GroupWise::CustomStatus & );
void gotKeepalivePeriod( int );
};
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/movecontacttask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/movecontacttask.cpp
index 713315ee..4a24f44f 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/movecontacttask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/movecontacttask.cpp
@@ -25,7 +25,7 @@
MoveContactTask::MoveContactTask(Task* parent): NeedFolderTask(parent)
{
// make the client tell the client app (Kopete) when we receive a contact
- connect( this, SIGNAL( gotContactAdded( const ContactItem & ) ), client(), SIGNAL( contactReceived( const ContactItem & ) ) );
+ connect( this, TQT_SIGNAL( gotContactAdded( const ContactItem & ) ), client(), TQT_SIGNAL( contactReceived( const ContactItem & ) ) );
}
@@ -52,11 +52,11 @@ void MoveContactTask::moveContact( const ContactItem & contact, const int newPar
lst.append( new Field::MultiField( NM_A_FA_CONTACT_LIST, NMFIELD_METHOD_VALID, 0, NMFIELD_TYPE_ARRAY, contactList ) );
lst.append( new Field::SingleField( NM_A_SZ_SEQUENCE_NUMBER, 0, NMFIELD_TYPE_UTF8, "-1" ) );
- lst.append( new Field::SingleField( NM_A_SZ_PARENT_ID, 0, NMFIELD_TYPE_UTF8, QString::number( newParent ) ) );
+ lst.append( new Field::SingleField( NM_A_SZ_PARENT_ID, 0, NMFIELD_TYPE_UTF8, TQString::number( newParent ) ) );
createTransfer( "movecontact", lst );
}
-void MoveContactTask::moveContactToNewFolder( const ContactItem & contact, const int newSequenceNumber, const QString & folderDisplayName )
+void MoveContactTask::moveContactToNewFolder( const ContactItem & contact, const int newSequenceNumber, const TQString & folderDisplayName )
{
client()->debug("MoveContactTask::moveContactToNewFolder()" );
m_folderSequence = newSequenceNumber;
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/movecontacttask.h b/kopete/protocols/groupwise/libgroupwise/tasks/movecontacttask.h
index f423981a..ad3bce44 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/movecontacttask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/movecontacttask.h
@@ -35,14 +35,14 @@ public:
MoveContactTask(Task* parent);
~MoveContactTask();
void moveContact( const ContactItem & contact, const int newParent );
- void moveContactToNewFolder( const ContactItem & contact, const int newSequenceNumber, const QString & folderDisplayName );
+ void moveContactToNewFolder( const ContactItem & contact, const int newSequenceNumber, const TQString & folderDisplayName );
void onGo();
protected:
void onFolderCreated();
private:
int m_targetFolder;
- QString m_dn;
- QString m_displayName;
+ TQString m_dn;
+ TQString m_displayName;
ContactItem m_contactToMove;
};
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/needfoldertask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/needfoldertask.cpp
index 810326ee..12c7382a 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/needfoldertask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/needfoldertask.cpp
@@ -27,9 +27,9 @@ void NeedFolderTask::createFolder()
{
CreateFolderTask * cct = new CreateFolderTask( client()->rootTask() );
cct->folder( 0, m_folderSequence, m_folderDisplayName );
- connect( cct, SIGNAL( gotFolderAdded( const FolderItem & ) ), client(), SIGNAL( folderReceived( const FolderItem & ) ) );
- connect( cct, SIGNAL( gotFolderAdded( const FolderItem & ) ), SLOT( slotFolderAdded( const FolderItem & ) ) );
- connect( cct, SIGNAL( finished() ), SLOT( slotFolderTaskFinished() ) );
+ connect( cct, TQT_SIGNAL( gotFolderAdded( const FolderItem & ) ), client(), TQT_SIGNAL( folderReceived( const FolderItem & ) ) );
+ connect( cct, TQT_SIGNAL( gotFolderAdded( const FolderItem & ) ), TQT_SLOT( slotFolderAdded( const FolderItem & ) ) );
+ connect( cct, TQT_SIGNAL( finished() ), TQT_SLOT( slotFolderTaskFinished() ) );
cct->go( true );
}
@@ -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( QString( "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" ).arg( addedFolder.name ).arg( 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 8d6278df..d1ad1a1e 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/needfoldertask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/needfoldertask.h
@@ -33,7 +33,7 @@ protected slots:
protected:
int m_folderSequence;
int m_folderId;
- QString m_folderDisplayName;
+ TQString m_folderDisplayName;
};
#endif
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.cpp
index 772a0888..d65a5a20 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.cpp
@@ -36,7 +36,7 @@ PollSearchResultsTask::~PollSearchResultsTask()
{
}
-void PollSearchResultsTask::poll( const QString & queryHandle )
+void PollSearchResultsTask::poll( const TQString & queryHandle )
{
Field::FieldList lst;
lst.append( new Field::SingleField( NM_A_SZ_OBJECT_ID, 0, NMFIELD_TYPE_UTF8, queryHandle ) );
@@ -97,7 +97,7 @@ bool PollSearchResultsTask::take( Transfer * transfer )
return true;
}
-QValueList< GroupWise::ContactDetails > PollSearchResultsTask::results()
+TQValueList< GroupWise::ContactDetails > PollSearchResultsTask::results()
{
return m_results;
}
@@ -133,7 +133,7 @@ GroupWise::ContactDetails PollSearchResultsTask::extractUserDetails( Field::Fiel
if ( ( sf = fields.findSingleField ( NM_A_SZ_MESSAGE_BODY ) ) )
cd.awayMessage = sf->value().toString();
Field::MultiField * mf;
- QMap< QString, QString > propMap;
+ TQMap< TQString, TQString > propMap;
if ( ( mf = fields.findMultiField ( NM_A_FA_INFO_DISPLAY_ARRAY ) ) )
{
Field::FieldList fl = mf->fields();
@@ -146,8 +146,8 @@ GroupWise::ContactDetails PollSearchResultsTask::extractUserDetails( Field::Fiel
Field::SingleField * propField = dynamic_cast<Field::SingleField *>( *it );
if ( propField )
{
- QString propName = propField->tag();
- QString propValue = propField->value().toString();
+ TQString propName = propField->tag();
+ TQString propValue = propField->value().toString();
propMap.insert( propName, propValue );
}
else
@@ -155,7 +155,7 @@ GroupWise::ContactDetails PollSearchResultsTask::extractUserDetails( Field::Fiel
Field::MultiField * propList = dynamic_cast<Field::MultiField*>( *it );
if ( propList )
{
- QString parentName = propList->tag();
+ TQString parentName = propList->tag();
Field::FieldList propFields = propList->fields();
const Field::FieldListIterator end = propFields.end();
for ( Field::FieldListIterator it = propFields.begin(); it != end; ++it )
@@ -163,8 +163,8 @@ GroupWise::ContactDetails PollSearchResultsTask::extractUserDetails( Field::Fiel
propField = dynamic_cast<Field::SingleField *>( *it );
if ( propField )
{
- QString propValue = propField->value().toString();
- QString contents = propMap[ propField->tag() ];
+ TQString propValue = propField->value().toString();
+ TQString contents = propMap[ propField->tag() ];
if ( !contents.isEmpty() )
contents.append( ", " );
contents.append( propField->value().toString());
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.h b/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.h
index 11f810c0..c03f75bb 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/pollsearchresultstask.h
@@ -21,7 +21,7 @@
#ifndef POLLSEARCHRESULTSTASK_H
#define POLLSEARCHRESULTSTASK_H
-#include <qvaluelist.h>
+#include <tqvaluelist.h>
#include "gwerror.h"
@@ -39,14 +39,14 @@ public:
enum SearchResultCode { Pending=0, InProgess=1, Completed=2, TimeOut=3, Cancelled=4, Error=5 };
PollSearchResultsTask(Task* parent);
~PollSearchResultsTask();
- void poll( const QString & queryHandle);
+ void poll( const TQString & queryHandle);
bool take( Transfer * transfer );
int queryStatus();
- QValueList< GroupWise::ContactDetails > results();
+ TQValueList< GroupWise::ContactDetails > results();
GroupWise::ContactDetails extractUserDetails( Field::FieldList & fields );
private:
int m_queryStatus;
- QValueList< GroupWise::ContactDetails > m_results;
+ TQValueList< GroupWise::ContactDetails > m_results;
};
#endif
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/privacyitemtask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/privacyitemtask.cpp
index 003a6d60..508b3306 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/privacyitemtask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/privacyitemtask.cpp
@@ -28,7 +28,7 @@ PrivacyItemTask::~PrivacyItemTask()
{
}
-QString PrivacyItemTask::dn() const
+TQString PrivacyItemTask::dn() const
{
return m_dn;
}
@@ -38,7 +38,7 @@ bool PrivacyItemTask::defaultDeny() const
return m_default;
}
-void PrivacyItemTask::allow( const QString & dn )
+void PrivacyItemTask::allow( const TQString & dn )
{
m_dn = dn;
Field::FieldList lst;
@@ -46,7 +46,7 @@ void PrivacyItemTask::allow( const QString & dn )
createTransfer( "createblock", lst );
}
-void PrivacyItemTask::deny( const QString & dn )
+void PrivacyItemTask::deny( const TQString & dn )
{
m_dn = dn;
Field::FieldList lst;
@@ -54,7 +54,7 @@ void PrivacyItemTask::deny( const QString & dn )
createTransfer( "createblock", lst );
}
-void PrivacyItemTask::removeAllow( const QString & dn )
+void PrivacyItemTask::removeAllow( const TQString & dn )
{
m_dn = dn;
Field::FieldList lst;
@@ -63,7 +63,7 @@ void PrivacyItemTask::removeAllow( const QString & dn )
}
-void PrivacyItemTask::removeDeny( const QString & dn )
+void PrivacyItemTask::removeDeny( const TQString & dn )
{
m_dn = dn;
Field::FieldList lst;
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/privacyitemtask.h b/kopete/protocols/groupwise/libgroupwise/tasks/privacyitemtask.h
index 809cb7a4..401dc765 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/privacyitemtask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/privacyitemtask.h
@@ -34,17 +34,17 @@ Q_OBJECT
public:
PrivacyItemTask( Task* parent);
~PrivacyItemTask();
- void allow( const QString & dn );
- void deny( const QString & dn );
- void removeAllow( const QString & dn );
- void removeDeny( const QString & dn );
+ void allow( const TQString & dn );
+ void deny( const TQString & dn );
+ void removeAllow( const TQString & dn );
+ void removeDeny( const TQString & dn );
void defaultPolicy( bool defaultDeny );
- QString dn() const;
+ TQString dn() const;
bool defaultDeny() const;
- // void contacts( const QStringList & contacts );
+ // void contacts( const TQStringList & contacts );
private:
bool m_default;
- QString m_dn;
+ TQString m_dn;
};
#endif
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/requesttask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/requesttask.cpp
index 3788bb6e..44f54124 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/requesttask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/requesttask.cpp
@@ -38,7 +38,7 @@ bool RequestTask::forMe( Transfer * transfer ) const
return (theResponse && theResponse->transactionId() == m_transactionId );
}
-void RequestTask::createTransfer( const QString & command, const Field::FieldList & fields )
+void RequestTask::createTransfer( const TQString & command, const Field::FieldList & fields )
{
Request * request = client()->requestFactory()->request( command );
m_transactionId = request->transactionId();
@@ -50,7 +50,7 @@ void RequestTask::onGo()
{
if ( transfer() )
{
- client()->debug( QString( "%1::onGo() - sending %2 fields" ).arg( className() ).arg( static_cast<Request *>( transfer() )->command() ) );
+ client()->debug( TQString( "%1::onGo() - sending %2 fields" ).arg( className() ).arg( 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 30ee57ed..71101fab 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/requesttask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/requesttask.h
@@ -34,7 +34,7 @@ Q_OBJECT
virtual void onGo();
protected:
bool forMe( Transfer * transfer ) const;
- void createTransfer( const QString & command, const Field::FieldList & fields );
+ void createTransfer( const TQString & command, const Field::FieldList & fields );
private:
int m_transactionId;
};
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/searchchattask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/searchchattask.cpp
index 4ee35549..87694eb4 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/searchchattask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/searchchattask.cpp
@@ -18,8 +18,8 @@
*************************************************************************
*/
-#include <qdatetime.h>
-#include <qtimer.h>
+#include <tqdatetime.h>
+#include <tqtimer.h>
#include "client.h"
#include "gwerror.h"
@@ -75,7 +75,7 @@ bool SearchChatTask::take( Transfer * transfer )
m_objectId = sf->value().toInt();
// now start the results poll timer
- QTimer::singleShot( GW_POLL_INITIAL_DELAY, this, SLOT( slotPollForResults() ) );
+ TQTimer::singleShot( GW_POLL_INITIAL_DELAY, this, TQT_SLOT( slotPollForResults() ) );
return true;
}
@@ -84,7 +84,7 @@ void SearchChatTask::slotPollForResults()
//create a PollSearchResultsTask
GetChatSearchResultsTask * gcsrt = new GetChatSearchResultsTask( client()->rootTask() );
gcsrt->poll( m_objectId );
- connect( gcsrt, SIGNAL( finished() ), SLOT( slotGotPollResults() ) );
+ connect( gcsrt, TQT_SIGNAL( finished() ), TQT_SLOT( slotGotPollResults() ) );
gcsrt->go( true );
}
@@ -97,14 +97,14 @@ void SearchChatTask::slotGotPollResults()
{
case GetChatSearchResultsTask::GettingData:
if ( m_polls < GW_POLL_MAXIMUM ) // restart timer
- QTimer::singleShot( GW_POLL_FREQUENCY_MS, this, SLOT( slotPollForResults() ) );
+ TQTimer::singleShot( GW_POLL_FREQUENCY_MS, this, TQT_SLOT( slotPollForResults() ) );
else
setSuccess( gcsrt->statusCode() );
break;
case GetChatSearchResultsTask::DataRetrieved:
// got some results, there may be more.
m_results += gcsrt->results();
- QTimer::singleShot( 0, this, SLOT( slotPollForResults() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( slotPollForResults() ) );
break;
case GetChatSearchResultsTask::Completed:
m_results += gcsrt->results();
@@ -119,7 +119,7 @@ void SearchChatTask::slotGotPollResults()
}
}
-QValueList< GroupWise::ChatroomSearchResult > SearchChatTask::results()
+TQValueList< GroupWise::ChatroomSearchResult > SearchChatTask::results()
{
return m_results;
}
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/searchchattask.h b/kopete/protocols/groupwise/libgroupwise/tasks/searchchattask.h
index 2f24e075..fe8df7f4 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/searchchattask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/searchchattask.h
@@ -52,13 +52,13 @@ class SearchChatTask : public RequestTask
/**
* Access the results of the search
*/
- QValueList< GroupWise::ChatroomSearchResult > results();
+ TQValueList< GroupWise::ChatroomSearchResult > results();
protected slots:
void slotPollForResults();
void slotGotPollResults();
private:
- QTimer * m_resultsPollTimer;
- QValueList< GroupWise::ChatroomSearchResult > m_results;
+ TQTimer * m_resultsPollTimer;
+ TQValueList< GroupWise::ChatroomSearchResult > m_results;
int m_polls;
int m_objectId; // used to identify our query to the server, so we can poll for its results
};
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/searchusertask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/searchusertask.cpp
index cd199ad8..1b64c47d 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/searchusertask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/searchusertask.cpp
@@ -18,8 +18,8 @@
*************************************************************************
*/
-#include <qdatetime.h>
-#include <qtimer.h>
+#include <tqdatetime.h>
+#include <tqtimer.h>
#include "client.h"
#include "gwerror.h"
@@ -48,9 +48,9 @@ SearchUserTask::~SearchUserTask()
{
}
-void SearchUserTask::search( const QValueList<UserSearchQueryTerm> & query )
+void SearchUserTask::search( const TQValueList<UserSearchQueryTerm> & query )
{
- m_queryHandle = QString::number( QDateTime::currentDateTime().toTime_t () );
+ m_queryHandle = TQString::number( TQDateTime::currentDateTime().toTime_t () );
Field::FieldList lst;
if ( query.isEmpty() )
{
@@ -59,8 +59,8 @@ void SearchUserTask::search( const QValueList<UserSearchQueryTerm> & query )
}
// object Id identifies the search for later reference
lst.append( new Field::SingleField( NM_A_SZ_OBJECT_ID, 0, NMFIELD_TYPE_UTF8, m_queryHandle ) );
- QValueList<UserSearchQueryTerm>::ConstIterator it = query.begin();
- const QValueList<UserSearchQueryTerm>::ConstIterator end = query.end();
+ TQValueList<UserSearchQueryTerm>::ConstIterator it = query.begin();
+ const TQValueList<UserSearchQueryTerm>::ConstIterator end = query.end();
for ( ; it != end; ++it )
{
Field::SingleField * fld = new Field::SingleField( (*it).field.ascii(), (*it).operation, 0, NMFIELD_TYPE_UTF8, (*it).argument );
@@ -86,7 +86,7 @@ bool SearchUserTask::take( Transfer * transfer )
return true;
}
// now start the results poll timer
- QTimer::singleShot( GW_POLL_INITIAL_DELAY, this, SLOT( slotPollForResults() ) );
+ TQTimer::singleShot( GW_POLL_INITIAL_DELAY, this, TQT_SLOT( slotPollForResults() ) );
return true;
}
@@ -95,7 +95,7 @@ void SearchUserTask::slotPollForResults()
//create a PollSearchResultsTask
PollSearchResultsTask * psrt = new PollSearchResultsTask( client()->rootTask() );
psrt->poll( m_queryHandle );
- connect( psrt, SIGNAL( finished() ), SLOT( slotGotPollResults() ) );
+ connect( psrt, TQT_SIGNAL( finished() ), TQT_SLOT( slotGotPollResults() ) );
psrt->go( true );
}
@@ -109,7 +109,7 @@ void SearchUserTask::slotGotPollResults()
case PollSearchResultsTask::Pending:
case PollSearchResultsTask::InProgess:
if ( m_polls < GW_POLL_MAXIMUM ) // restart timer
- QTimer::singleShot( GW_POLL_FREQUENCY_MS, this, SLOT( slotPollForResults() ) );
+ TQTimer::singleShot( GW_POLL_FREQUENCY_MS, this, TQT_SLOT( slotPollForResults() ) );
else
setSuccess( psrt->statusCode() );
break;
@@ -129,7 +129,7 @@ void SearchUserTask::slotGotPollResults()
}
}
-QValueList< GroupWise::ContactDetails > SearchUserTask::results()
+TQValueList< GroupWise::ContactDetails > SearchUserTask::results()
{
return m_results;
}
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/searchusertask.h b/kopete/protocols/groupwise/libgroupwise/tasks/searchusertask.h
index 28c09b02..e99a1236 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/searchusertask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/searchusertask.h
@@ -41,7 +41,7 @@ public:
* Create the search query
* @param query a list of search terms
*/
- void search( const QValueList<GroupWise::UserSearchQueryTerm> & query);
+ void search( const TQValueList<GroupWise::UserSearchQueryTerm> & query);
/**
* If the query was accepted, start a timer to poll for results using PollSearchResultsTask
*/
@@ -49,14 +49,14 @@ public:
/**
* Access the results of the search
*/
- QValueList< GroupWise::ContactDetails > results();
+ TQValueList< GroupWise::ContactDetails > results();
protected slots:
void slotPollForResults();
void slotGotPollResults();
private:
- QString m_queryHandle; // used to identify our query to the server, so we can poll for its results
- QTimer * m_resultsPollTimer;
- QValueList< GroupWise::ContactDetails > m_results;
+ TQString m_queryHandle; // used to identify our query to the server, so we can poll for its results
+ TQTimer * m_resultsPollTimer;
+ TQValueList< GroupWise::ContactDetails > m_results;
int m_polls;
};
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/sendinvitetask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/sendinvitetask.cpp
index b3a9614f..9fa7d65e 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/sendinvitetask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/sendinvitetask.cpp
@@ -28,13 +28,13 @@ SendInviteTask::~SendInviteTask()
{
}
-void SendInviteTask::invite( const GroupWise::ConferenceGuid & guid, const QStringList & invitees, const GroupWise::OutgoingMessage & msg)
+void SendInviteTask::invite( const GroupWise::ConferenceGuid & guid, const TQStringList & invitees, const GroupWise::OutgoingMessage & msg)
{
Field::FieldList lst, tmp;
tmp.append( new Field::SingleField( NM_A_SZ_OBJECT_ID, 0, NMFIELD_TYPE_UTF8, guid ) );
lst.append( new Field::MultiField( NM_A_FA_CONVERSATION, NMFIELD_METHOD_VALID, 0, NMFIELD_TYPE_ARRAY, tmp ) );
- QValueListConstIterator<QString> end = invitees.end();
- for ( QValueListConstIterator<QString> it = invitees.begin(); it != end; ++it )
+ TQValueListConstIterator<TQString> end = invitees.end();
+ for ( TQValueListConstIterator<TQString> it = invitees.begin(); it != end; ++it )
lst.append( new Field::SingleField( NM_A_SZ_DN, 0, NMFIELD_TYPE_DN, *it ) );
if ( !msg.message.isEmpty() )
lst.append( new Field::SingleField( NM_A_SZ_MESSAGE_BODY, 0, NMFIELD_TYPE_UTF8, msg.message ) );
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/sendinvitetask.h b/kopete/protocols/groupwise/libgroupwise/tasks/sendinvitetask.h
index c8cf1d9b..b08c7259 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/sendinvitetask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/sendinvitetask.h
@@ -35,9 +35,9 @@ class SendInviteTask : public RequestTask
public:
SendInviteTask(Task* parent);
~SendInviteTask();
- void invite( const GroupWise::ConferenceGuid & guid, const QStringList & invitees, const GroupWise::OutgoingMessage & msg );
+ void invite( const GroupWise::ConferenceGuid & guid, const TQStringList & invitees, const GroupWise::OutgoingMessage & msg );
private:
- QString m_confId;
+ TQString m_confId;
};
#endif
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/sendmessagetask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/sendmessagetask.cpp
index 290b9d9b..fdf1173f 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/sendmessagetask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/sendmessagetask.cpp
@@ -29,7 +29,7 @@ SendMessageTask::~SendMessageTask()
{
}
-void SendMessageTask::message( const QStringList & recipientDNList, const OutgoingMessage & msg )
+void SendMessageTask::message( const TQStringList & recipientDNList, const OutgoingMessage & msg )
{
// Assumes the conference is instantiated, unlike Gaim's nm_send_message
Field::FieldList lst, tmp, msgBodies;
@@ -44,8 +44,8 @@ void SendMessageTask::message( const QStringList & recipientDNList, const Outgoi
// list containing message bodies
lst.append( new Field::MultiField( NM_A_FA_MESSAGE, NMFIELD_METHOD_VALID, 0, NMFIELD_TYPE_ARRAY, msgBodies ) );
// series of participants (may be empty )
- QValueListConstIterator<QString> end = recipientDNList.end();
- for ( QValueListConstIterator<QString> it = recipientDNList.begin(); it != end; ++it )
+ TQValueListConstIterator<TQString> end = recipientDNList.end();
+ for ( TQValueListConstIterator<TQString> it = recipientDNList.begin(); it != end; ++it )
lst.append( new Field::SingleField( NM_A_SZ_DN, 0, NMFIELD_TYPE_DN, *it ) );
createTransfer( "sendmessage", lst );
}
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/sendmessagetask.h b/kopete/protocols/groupwise/libgroupwise/tasks/sendmessagetask.h
index f45e491f..44559e15 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/sendmessagetask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/sendmessagetask.h
@@ -35,7 +35,7 @@ public:
SendMessageTask(Task* parent);
~SendMessageTask();
- void message( const QStringList & recipientDNList, const OutgoingMessage & msg );
+ void message( const TQStringList & recipientDNList, const OutgoingMessage & msg );
};
#endif
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/setstatustask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/setstatustask.cpp
index 0744ff8a..bf463407 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/setstatustask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/setstatustask.cpp
@@ -30,7 +30,7 @@ SetStatusTask::~SetStatusTask()
{
}
-void SetStatusTask::status( Status newStatus, const QString &awayMessage, const QString &autoReply )
+void SetStatusTask::status( Status newStatus, const TQString &awayMessage, const TQString &autoReply )
{
if ( newStatus > GroupWise::Invalid )
{
@@ -43,7 +43,7 @@ void SetStatusTask::status( Status newStatus, const QString &awayMessage, const
m_autoReply = autoReply;
Field::FieldList lst;
- lst.append( new Field::SingleField( NM_A_SZ_STATUS, 0, NMFIELD_TYPE_UTF8, QString::number( newStatus ) ) );
+ lst.append( new Field::SingleField( NM_A_SZ_STATUS, 0, NMFIELD_TYPE_UTF8, TQString::number( newStatus ) ) );
if ( !awayMessage.isNull() )
lst.append( new Field::SingleField( NM_A_SZ_STATUS_TEXT, 0, NMFIELD_TYPE_UTF8, awayMessage ) );
if ( !autoReply.isNull() )
@@ -56,12 +56,12 @@ Status SetStatusTask::requestedStatus() const
return m_status;
}
-QString SetStatusTask::awayMessage() const
+TQString SetStatusTask::awayMessage() const
{
return m_awayMessage;
}
-QString SetStatusTask::autoReply() const
+TQString SetStatusTask::autoReply() const
{
return m_autoReply;
}
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/setstatustask.h b/kopete/protocols/groupwise/libgroupwise/tasks/setstatustask.h
index 2d3c53d7..4e41e681 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/setstatustask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/setstatustask.h
@@ -33,14 +33,14 @@ Q_OBJECT
public:
SetStatusTask(Task* parent);
~SetStatusTask();
- void status( GroupWise::Status newStatus, const QString &awayMessage, const QString &autoReply );
+ void status( GroupWise::Status newStatus, const TQString &awayMessage, const TQString &autoReply );
GroupWise::Status requestedStatus() const;
- QString awayMessage() const;
- QString autoReply() const;
+ TQString awayMessage() const;
+ TQString autoReply() const;
private:
GroupWise::Status m_status;
- QString m_awayMessage;
- QString m_autoReply;
+ TQString m_awayMessage;
+ TQString m_autoReply;
};
#endif
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/statustask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/statustask.cpp
index 8f8eccd4..e7272402 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/statustask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/statustask.cpp
@@ -37,7 +37,7 @@ bool StatusTask::take( Transfer * transfer )
if ( forMe( transfer, event ) )
{
client()->debug( "Got a status change!" );
- client()->debug( QString( "%1 changed status to %2, message: %3" ).arg( event->source() ).arg( event->status() ).arg( event->statusText() ) );
+ 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() );
return true;
}
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/statustask.h b/kopete/protocols/groupwise/libgroupwise/tasks/statustask.h
index 8e4994ff..2a57cd04 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/statustask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/statustask.h
@@ -34,7 +34,7 @@ public:
~StatusTask();
bool take( Transfer * transfer );
signals:
- void gotStatus( const QString & contactId, Q_UINT16 status, const QString & statusText );
+ void gotStatus( const TQString & contactId, Q_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 b835c525..2a421752 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/typingtask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/typingtask.cpp
@@ -36,7 +36,7 @@ void TypingTask::typing( const GroupWise::ConferenceGuid & conferenceGuid, const
Field::FieldList typingNotification, outgoingList;
typingNotification.append( new Field::SingleField( NM_A_SZ_OBJECT_ID, 0, NMFIELD_TYPE_UTF8, conferenceGuid ) );
typingNotification.append( new Field::SingleField( NM_A_SZ_TYPE, 0, NMFIELD_TYPE_UTF8,
- QString::number( typing ? GroupWise::UserTyping : GroupWise::UserNotTyping ) ) );
+ TQString::number( typing ? GroupWise::UserTyping : GroupWise::UserNotTyping ) ) );
outgoingList.append( new Field::MultiField( NM_A_FA_CONVERSATION, NMFIELD_METHOD_VALID, 0, NMFIELD_TYPE_ARRAY, typingNotification ) );
createTransfer( "sendtyping", outgoingList );
}
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/updatecontacttask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/updatecontacttask.cpp
index d8c1a68a..aa75441d 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/updatecontacttask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/updatecontacttask.cpp
@@ -33,18 +33,18 @@ UpdateContactTask::~UpdateContactTask()
{
}
-QString UpdateContactTask::displayName()
+TQString UpdateContactTask::displayName()
{
return m_name;
}
-void UpdateContactTask::renameContact( const QString & newName, const QValueList<ContactItem> & contactInstances )
+void UpdateContactTask::renameContact( const TQString & newName, const TQValueList<ContactItem> & contactInstances )
{
m_name = newName;
// build a list of delete, add fields that removes each instance on the server and then readds it with the new name
Field::FieldList lst;
- const QValueList<ContactItem>::ConstIterator end = contactInstances.end();
- for( QValueList<ContactItem>::ConstIterator it = contactInstances.begin(); it != end; ++it )
+ const TQValueList<ContactItem>::ConstIterator end = contactInstances.end();
+ for( TQValueList<ContactItem>::ConstIterator it = contactInstances.begin(); it != end; ++it )
{
Field::FieldList contactFields;
contactFields.append( new Field::SingleField( NM_A_SZ_OBJECT_ID, 0, NMFIELD_TYPE_UTF8, (*it).id ) );
@@ -57,7 +57,7 @@ void UpdateContactTask::renameContact( const QString & newName, const QValueList
lst.append(
new Field::MultiField( NM_A_FA_CONTACT, NMFIELD_METHOD_DELETE, 0, NMFIELD_TYPE_ARRAY, contactFields ) );
}
- for( QValueList<ContactItem>::ConstIterator it = contactInstances.begin(); it != end; ++it )
+ for( TQValueList<ContactItem>::ConstIterator it = contactInstances.begin(); it != end; ++it )
{
Field::FieldList contactFields;
contactFields.append( new Field::SingleField( NM_A_SZ_OBJECT_ID, 0, NMFIELD_TYPE_UTF8, (*it).id ) );
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/updatecontacttask.h b/kopete/protocols/groupwise/libgroupwise/tasks/updatecontacttask.h
index 7e6ac899..4126658e 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/updatecontacttask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/updatecontacttask.h
@@ -35,10 +35,10 @@ Q_OBJECT
public:
UpdateContactTask(Task* parent);
~UpdateContactTask();
- void renameContact( const QString& newName, const QValueList<GroupWise::ContactItem> & contactInstances );
- QString displayName();
+ void renameContact( const TQString& newName, const TQValueList<GroupWise::ContactItem> & contactInstances );
+ TQString displayName();
private:
- QString m_name;
+ TQString m_name;
};
#endif
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/updatefoldertask.cpp b/kopete/protocols/groupwise/libgroupwise/tasks/updatefoldertask.cpp
index fef5d2fe..3f8ff7bf 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/updatefoldertask.cpp
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/updatefoldertask.cpp
@@ -29,7 +29,7 @@ UpdateFolderTask::~UpdateFolderTask()
{
}
-void UpdateFolderTask::renameFolder( const QString & newName, const GroupWise::FolderItem & existing )
+void UpdateFolderTask::renameFolder( const TQString & newName, const GroupWise::FolderItem & existing )
{
Field::FieldList lst;
// add the old version of the folder, marked delete
diff --git a/kopete/protocols/groupwise/libgroupwise/tasks/updatefoldertask.h b/kopete/protocols/groupwise/libgroupwise/tasks/updatefoldertask.h
index 230bd563..479a6bdd 100644
--- a/kopete/protocols/groupwise/libgroupwise/tasks/updatefoldertask.h
+++ b/kopete/protocols/groupwise/libgroupwise/tasks/updatefoldertask.h
@@ -34,7 +34,7 @@ Q_OBJECT
public:
UpdateFolderTask(Task* parent);
~UpdateFolderTask();
- void renameFolder( const QString & newName, const GroupWise::FolderItem & existing );
+ void renameFolder( const TQString & newName, const GroupWise::FolderItem & existing );
protected:
Field::FieldList folderToFields( const GroupWise::FolderItem & folder );
};