Albert
Loading...
Searching...
No Matches
triggerqueryhandler.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2024 Manuel Schneider
2// SPDX-License-Identifier: MIT
3
4#pragma once
5#include <albert/extension.h>
6#include <albert/query.h>
7
8namespace albert
9{
10
19class ALBERT_EXPORT TriggerQueryHandler : virtual public Extension
20{
21public:
25 virtual QString synopsis() const;
26
29 virtual bool allowTriggerRemap() const;
30
33 virtual QString defaultTrigger() const;
34
38 virtual void setTrigger(const QString &);
39
42 virtual bool supportsFuzzyMatching() const;
43
46 virtual void setFuzzyMatching(bool enabled);
47
50 virtual void handleTriggerQuery(Query*) = 0;
51
52protected:
53
55
56};
57
58}
Abstract extension class.
Definition extension.h:19
Common query object.
Definition query.h:20
Abstract trigger query handler.
Definition triggerqueryhandler.h:20
virtual void handleTriggerQuery(Query *)=0
The trigger query processing function.
virtual void setFuzzyMatching(bool enabled)
Fuzzy matching behavior.
virtual bool allowTriggerRemap() const
Enable user remapping of the trigger.
virtual bool supportsFuzzyMatching() const
Fuzzy matching capability.
virtual QString synopsis() const
The synopsis, displayed on empty query.
virtual void setTrigger(const QString &)
Setter for the user defined trigger.
virtual QString defaultTrigger() const
The default (not user defined) trigger.
Definition action.h:10