Albert
Loading...
Searching...
No Matches
fallbackhandler.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 <QString>
6#include <albert/export.h>
7#include <albert/extension.h>
8#include <albert/item.h>
9#include <memory>
10#include <vector>
11
12namespace albert
13{
14class Item;
15
22class ALBERT_EXPORT FallbackHandler : virtual public Extension
23{
24public:
25
27 virtual std::vector<std::shared_ptr<Item>> fallbacks(const QString &) const = 0;
28
29protected:
30
31 ~FallbackHandler() override;
32
33};
34
35}
Abstract extension class.
Definition extension.h:19
Abstract fallback provider.
Definition fallbackhandler.h:23
virtual std::vector< std::shared_ptr< Item > > fallbacks(const QString &) const =0
Fallbacks provided by this handler.
Definition action.h:10