6
#include <unity/scopes/SearchQueryBase.h>
7
#include <unity/scopes/ReplyProxyFwd.h>
9
using namespace unity::scopes;
12
* Represents an individual query.
14
* A new Query object will be constructed for each query. It is
15
* given query information, metadata about the search, and
16
* some scope-specific configuration.
18
class Query: public SearchQueryBase {
20
Query(const CannedQuery &query, const SearchMetadata &metadata);
24
void cancelled() override;
26
void run(const SearchReplyProxy &reply) override;
29
void fetchQuery(const SearchReplyProxy &reply, const CannedQuery &query);
30
bool pushResult(const SearchReplyProxy &reply, Category::SCPtr category, const Client::NewsItem &news);
35
#endif // SCOPE_QUERY_H_