|
Albert
|
#include <albert/queryexecution.h>
Abstract asynchronous query execution interface.
Controls the execution of a query, reports busy state and allows to fetch results on demand.
Inherits QObject.
Public Member Functions | |
| QueryExecution (QueryContext &context) | |
| Constructs a query execution for context | |
| virtual void | cancel ()=0 |
| Cancels the query processing. | |
| virtual void | fetchMore ()=0 |
| Fetches more results. | |
| virtual bool | canFetchMore () const =0 |
Returns true if there are more results to fetch, otherwise returns false. | |
| virtual bool | isActive () const =0 |
Returns true if the query is being processed, otherwise returns false. | |
Public Attributes | |
| const uint | id |
| The unique id of this query execution. | |
| const QueryContext & | context |
| The query context of this query execution. | |
| QueryResults | results |
| The results of this query. | |
Signals | |
| void | activeChanged (bool active) |
| Emitted when query processing started or finished. | |
| albert::QueryExecution::QueryExecution | ( | QueryContext & | context | ) |
Constructs a query execution for context
|
signal |
Emitted when query processing started or finished.
true.
|
pure virtual |
Cancels the query processing.
|
pure virtual |
Returns true if there are more results to fetch, otherwise returns false.
|
pure virtual |
Fetches more results.
|
pure virtual |
Returns true if the query is being processed, otherwise returns false.
| const QueryContext& albert::QueryExecution::context |
The query context of this query execution.
| const uint albert::QueryExecution::id |
The unique id of this query execution.
| QueryResults albert::QueryExecution::results |
The results of this query.