Albert
Loading...
Searching...
No Matches
albert::QueryExecution Class Referenceabstract

#include <albert/queryexecution.h>

Description

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 QueryContextcontext
 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.
 

Member Function Documentation

◆ activeChanged

void albert::QueryExecution::activeChanged ( bool  active)
signal

Emitted when query processing started or finished.

Note
The UI state machine expects results to be added only while active is true.

The documentation for this class was generated from the following file: