Albert
Loading...
Searching...
No Matches
query.h
1
// SPDX-FileCopyrightText: 2025 Manuel Schneider
2
// SPDX-License-Identifier: MIT
3
4
#pragma once
5
#include <QString>
6
#include <albert/export.h>
7
#include <albert/querycontext.h>
8
class
QueryEngine;
9
namespace
albert
10
{
11
class
QueryHandler;
12
class
QueryResult;
13
class
QueryResults;
14
class
QueryExecution;
15
}
// namespace albert
16
17
namespace
albert::detail
18
{
19
21
class
ALBERT_EXPORT Query :
public
albert::QueryContext
22
{
23
public
:
25
Query(UsageScoring usage_scoring,
26
std::vector<albert::QueryResult> &&fallbacks,
27
QueryHandler &handler,
28
QString trigger,
29
QString
string
);
30
32
~Query();
33
35
bool
isValid()
const override
;
36
38
QueryHandler &handler()
const override
;
39
41
QString trigger()
const override
;
42
44
QString query()
const override
;
45
47
const
UsageScoring &usageScoring()
const override
;
48
50
QueryExecution &execution()
const
;
51
53
void
cancel();
54
56
QueryResults &matches();
57
59
QueryResults &fallbacks();
60
61
private
:
62
class
Private;
63
std::unique_ptr<Private> d;
64
};
65
66
}
// namespace albert::detail
albert::QueryContext
Query interface.
Definition
querycontext.h:19
albert
The Albert namespace.
Definition
app.h:55
workspace
albert
include
albert
query.h
Generated by
1.9.8