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) noexcept
 Action constructor.
 

Public Attributes

QString id
 The identifier of the action.
 
QString text
 The description of the action.
 
std::function< void()> function
 The action function.
 

Constructor & Destructor Documentation

◆ Action()

albert::Action::Action ( QString  id,
QString  text,
std::function< void()>  function 
)
noexcept

Action constructor.

Parameters
idIdentifier of the action.
textDescription of the action.
functionThe action function.

Member Data Documentation

◆ function

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

The action function.

◆ id

QString albert::Action::id

The identifier of the action.

◆ text

QString albert::Action::text

The description of the action.


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