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
9
namespace
albert
10
{
11
15
class
ALBERT_EXPORT
Action
final
16
{
17
public
:
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
}
albert::Action
Action used by result items (Item).
Definition
action.h:16
albert::Action::Action
Action(QString id, QString text, std::function< void()> function, bool hideOnActivation=true) noexcept
Action constructor.
albert
Definition
action.h:10
workspace
albert
include
albert
action.h
Generated by
1.9.8