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

#include <action.h>

Detailed Description

Action used by items.

Public Member Functions

 Action (QString id, QString text, std::function< void()> function)
 Action constructor. More...
 

Public Attributes

QString id
 Identifier of the action. More...
 
QString text
 Description of the action. More...
 
std::function< void()> function
 The action function. More...
 

Constructor & Destructor Documentation

◆ Action()

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

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

Identifier of the action.

◆ text

QString albert::Action::text

Description of the action.


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