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

Protected Attributes

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

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.


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

◆ createButton()

Button * createButton ( )

◆ 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_launch_thread

BasicThread* m_launch_thread = nullptr
protected

◆ m_launcher


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