Unity Scopes API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
QueryCtrl.h
1 /*
2  * Copyright (C) 2013 Canonical Ltd
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License version 3 as
6  * published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Michi Henning <michi.henning@canonical.com>
17  */
18 
19 #ifndef UNITY_SCOPES_QUERYCTRL_H
20 #define UNITY_SCOPES_QUERYCTRL_H
21 
22 #include <unity/scopes/Object.h>
23 #include <unity/scopes/QueryCtrlProxyFwd.h>
24 
25 namespace unity
26 {
27 
28 namespace scopes
29 {
30 
35 class QueryCtrl : public virtual Object
36 {
37 public:
45  virtual void cancel() = 0;
46 
53  virtual ~QueryCtrl();
54 
55 protected:
57  QueryCtrl();
59 };
60 
61 } // namespace scopes
62 
63 } // namespace unity
64 
65 #endif
QueryCtrl allows a query to be cancelled.
Definition: QueryCtrl.h:35
virtual void cancel()=0
Cancels an executing query.
The root base class for all proxies.
Definition: Object.h:35
virtual ~QueryCtrl()
Destroys a QueryCtrl.