API Documentation
|
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>
Protected Member Functions | |
void | execute () |
void | _setupButton (Button *button) |
Protected Attributes | |
Buffer< QPointer< Button > > | m_buttons |
DynamicPointer< LocalApplicationLauncher > | m_launcher |
std::function< void()> | m_callback_function |
std::function< void()> | m_launch_function |
bool | m_is_enabled = true |
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
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 ) |
|
protected |
Button * createButton | ( | ) |
|
protected |
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 |
|
protected |
|
protected |
|
protected |