API Documentation
Loading...
Searching...
No Matches
ApplicationLauncherButtonManager Class Reference

Creates a button for launching a 3rd party application. While the application is running the button is pressed. When application terminates button is unpressed automatically. More...

#include <ApplicationLauncherButton.h>

Collaboration diagram for ApplicationLauncherButtonManager:
[legend]

Public Member Functions

 ApplicationLauncherButtonManager ()
 
 ApplicationLauncherButtonManager (const DynamicPointer< LocalApplicationLauncher > &launcher)
 
 ApplicationLauncherButtonManager (const File &application_file, const String &args=String())
 
 ApplicationLauncherButtonManager (Button *button)
 
 ApplicationLauncherButtonManager (Button *button, const File &application_file, const String &args=String())
 
 ApplicationLauncherButtonManager (Button *button, const DynamicPointer< LocalApplicationLauncher > &launcher)
 
void setAppFinishedCallback (std::function< void()> callback)
 
void setAppLaunchCallback (std::function< void()> callback)
 
void setMakeChildProcess (bool is_child_process)
 
void setApplication (DynamicPointer< LocalApplicationLauncher > launcher)
 
void setEnabled (bool enabled)
 
const DynamicPointer< LocalApplicationLauncher > & launcher () const
 
void launch ()
 
void killProcess ()
 
void setEnvironment (const String &env)
 
void setArgs (const String &args)
 
void setIconToApp (Button *button)
 
void setNameToApp (Button *button)
 
ButtoncreateButton ()
 
void setupButton (Button *button)
 

Protected Member Functions

void execute ()
 
void _setupButton (Button *button)
 

Protected Attributes

Buffer< QPointer< Button > > m_buttons
 
DynamicPointer< LocalApplicationLauncherm_launcher
 
std::function< void()> m_callback_function
 
std::function< void()> m_launch_function
 
bool m_is_enabled = true
 

Detailed Description

Creates a button for launching a 3rd party application. While the application is running the button is pressed. When application terminates button is unpressed automatically.


Class: ApplicationLauncherButtonManager

autotoc_md773

Constructor & Destructor Documentation

◆ ApplicationLauncherButtonManager() [1/6]

◆ ApplicationLauncherButtonManager() [2/6]

◆ ApplicationLauncherButtonManager() [3/6]

ApplicationLauncherButtonManager ( const File & application_file,
const String & args = String() )

◆ ApplicationLauncherButtonManager() [4/6]

◆ ApplicationLauncherButtonManager() [5/6]

ApplicationLauncherButtonManager ( Button * button,
const File & application_file,
const String & args = String() )

◆ ApplicationLauncherButtonManager() [6/6]

Member Function Documentation

◆ _setupButton()

void _setupButton ( Button * button)
protected

◆ createButton()

Button * createButton ( )

◆ execute()

void execute ( )
protected

◆ killProcess()

void killProcess ( )

◆ launch()

void launch ( )

◆ launcher()

const DynamicPointer< LocalApplicationLauncher > & launcher ( ) const

◆ setAppFinishedCallback()

void setAppFinishedCallback ( std::function< void()> callback)

◆ setAppLaunchCallback()

void setAppLaunchCallback ( std::function< void()> callback)

◆ setApplication()

void setApplication ( DynamicPointer< LocalApplicationLauncher > launcher)

◆ setArgs()

void setArgs ( const String & args)

◆ setEnabled()

void setEnabled ( bool enabled)

◆ setEnvironment()

void setEnvironment ( const String & env)

◆ setIconToApp()

void setIconToApp ( Button * button)

◆ setMakeChildProcess()

void setMakeChildProcess ( bool is_child_process)

◆ setNameToApp()

void setNameToApp ( Button * button)

◆ setupButton()

void setupButton ( Button * button)

Member Data Documentation

◆ m_buttons

Buffer<QPointer<Button> > m_buttons
protected

◆ m_callback_function

std::function<void()> m_callback_function
protected

◆ m_is_enabled

bool m_is_enabled = true
protected

◆ m_launch_function

std::function<void()> m_launch_function
protected

◆ m_launcher


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