Albert
Loading...
Searching...
No Matches
action.h
Go to the documentation of this file.
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 <functional>
8
9namespace albert
10{
11
15class ALBERT_EXPORT Action final
16{
17public:
18
24 Action(QString id, QString text, std::function<void()> function, bool hideOnActivation = true) noexcept;
25
27 QString id;
28
30 QString text;
31
33 std::function<void()> function;
34
36 bool hide_on_activation;
37};
38
39}
Action used by result items (Item).
Definition action.h:16
Action(QString id, QString text, std::function< void()> function, bool hideOnActivation=true) noexcept
Action constructor.
Definition action.h:10