~jpakkane/+junk/scopetemplate

« back to all changes in this revision

Viewing changes to src/demoquery.h

  • Committer: Jussi Pakkanen
  • Date: 2014-01-22 09:41:09 UTC
  • Revision ID: jussi.pakkanen@canonical.com-20140122094109-zo0i307mhcjbvjep
Updated to new class hierarchy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 * Authored by: Jussi Pakkanen <jussi.pakkanen@canonical.com>
17
17
 */
18
18
 
19
 
#include <unity/scopes/QueryBase.h>
 
19
#include <unity/scopes/SearchQuery.h>
 
20
#include <unity/scopes/ReplyProxyFwd.h>
20
21
 
21
 
class DemoQuery : public unity::scopes::QueryBase
 
22
class DemoQuery : public unity::scopes::SearchQuery
22
23
{
23
24
public:
24
25
    DemoQuery(std::string const& query);
25
26
    ~DemoQuery();
26
27
    virtual void cancelled() override;
27
28
 
28
 
    virtual void run(unity::scopes::ReplyProxy const& reply) override;
 
29
    virtual void run(unity::scopes::SearchReplyProxy const& reply) override;
29
30
 
30
31
private:
31
32
    std::string query_;