diff options
Diffstat (limited to 'kopete/protocols/groupwise/libgroupwise/tasks/searchusertask.cpp')
-rw-r--r-- | kopete/protocols/groupwise/libgroupwise/tasks/searchusertask.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
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; } |