Albert
Loading...
Searching...
No Matches
albert::Action Class Referencefinal

#include <albert/action.h>

Detailed Description

Action used by result items (Item).

Public Member Functions

 Action (QString id, QString text, std::function< void()> function, bool hideOnActivation=true) noexcept
 Action constructor.
 

Public Attributes

QString id
 The identifier.
 
QString text
 The description.
 
std::function< void()> function
 The action.
 
bool hide_on_activation
 The activation behavior.
 

Constructor & Destructor Documentation

◆ Action()

albert::Action::Action ( QString  id,
QString  text,
std::function< void()>  function,
bool  hideOnActivation = true 
)
noexcept

Action constructor.

Parameters
idThe identifier.
textThe description.
functionThe action.
hideOnActivationThe activation behavior.

Member Data Documentation

◆ function

std::function<void()> albert::Action::function

The action.

◆ hide_on_activation

bool albert::Action::hide_on_activation

The activation behavior.

◆ id

QString albert::Action::id

The identifier.

◆ text

QString albert::Action::text

The description.


The documentation for this class was generated from the following file: