Albert
|
#include <albert/triggerqueryhandler.h>
Abstract trigger query handler.
If the trigger matches this handler is the only query handler chosen to process the user query. Inherit this class if you dont want your results to be reordered or if you want to display your items of a long running query as soon as they are available.
Public Member Functions | |
virtual QString | synopsis () const |
The synopsis, displayed on empty query. | |
virtual bool | allowTriggerRemap () const |
Enable user remapping of the trigger. | |
virtual QString | defaultTrigger () const |
The default (not user defined) trigger. | |
virtual void | setTrigger (const QString &) |
Setter for the user defined trigger. | |
virtual bool | supportsFuzzyMatching () const |
Fuzzy matching capability. | |
virtual void | setFuzzyMatching (bool enabled) |
Fuzzy matching behavior. | |
virtual void | handleTriggerQuery (Query *)=0 |
The trigger query processing function. | |
Public Member Functions inherited from albert::Extension | |
virtual QString | id () const =0 |
The identifier of this extension. | |
virtual QString | name () const =0 |
Pretty, human readable name. | |
virtual QString | description () const =0 |
Brief description of this extension. | |
Protected Member Functions | |
~TriggerQueryHandler () override | |
Protected Member Functions inherited from albert::Extension | |
virtual | ~Extension () |
|
overrideprotected |
|
virtual |
Enable user remapping of the trigger.
|
virtual |
The default (not user defined) trigger.
|
pure virtual |
The trigger query processing function.
Implemented in albert::GlobalQueryHandler.
|
virtual |
|
virtual |
Setter for the user defined trigger.
Reimplement this if you need this information.
|
virtual |
|
virtual |
The synopsis, displayed on empty query.
Use this to give the user hints about accepted query strings.