1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#ifndef SCOPE_QUERY_H_
#define SCOPE_QUERY_H_
#include <api/client.h>
#include <unity/scopes/SearchQueryBase.h>
#include <unity/scopes/ReplyProxyFwd.h>
namespace scope {
/**
* Represents an individual query.
*
* A new Query object will be constructed for each query. It is
* given query information, metadata about the search, and
* some scope-specific configuration.
*/
class Query: public unity::scopes::SearchQueryBase {
public:
Query(const unity::scopes::CannedQuery &query,
const unity::scopes::SearchMetadata &metadata, api::Config::Ptr config);
~Query() = default;
void cancelled() override;
void run(const unity::scopes::SearchReplyProxy &reply) override;
private:
api::Client client_;
};
}
#endif // SCOPE_QUERY_H_
|