2
Kopete Groupwise Protocol
3
searchusertask.h - high level search for users on the server - spawns PollSearchResultsTasks
5
Copyright (c) 2005 SUSE Linux Products GmbH http://www.suse.com
7
Based on Iris, Copyright (C) 2003 Justin Karneges <justin@affinix.com>
9
Kopete (c) 2002-2005 by the Kopete developers <kopete-devel@kde.org>
11
*************************************************************************
13
* This library is free software; you can redistribute it and/or *
14
* modify it under the terms of the GNU Lesser General Public *
15
* License as published by the Free Software Foundation; either *
16
* version 2 of the License, or (at your option) any later version. *
18
*************************************************************************
21
#ifndef SEARCHUSERTASK_H
22
#define SEARCHUSERTASK_H
24
#include "libgroupwise_export.h"
25
#include "requesttask.h"
30
This Task performs user searching on the server
34
class LIBGROUPWISE_EXPORT SearchUserTask : public RequestTask
38
SearchUserTask(Task* parent);
42
* Create the search query
43
* @param query a list of search terms
45
void search( const QList<GroupWise::UserSearchQueryTerm> & query);
47
* If the query was accepted, start a timer to poll for results using PollSearchResultsTask
49
virtual bool take( Transfer * transfer );
51
* Access the results of the search
53
QList< GroupWise::ContactDetails > results();
55
void slotPollForResults();
56
void slotGotPollResults();
58
QString m_queryHandle; // used to identify our query to the server, so we can poll for its results
59
QTimer * m_resultsPollTimer;
60
QList< GroupWise::ContactDetails > m_results;