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

Information and logic for launching an application seperate from the current software. More...

#include <LocalApplicationLauncher.h>

Inheritance diagram for LocalApplicationLauncher:
[legend]
Collaboration diagram for LocalApplicationLauncher:
[legend]

Public Member Functions

bool applicationFileExists () const
 
void bringToFront ()
 
virtual void execute ()
 
Buffer< uint08findWindowIDs ()
 
bool isRunning ()
 
void killProcess ()
 
 LocalApplicationLauncher (const File &path)
 
virtual ~LocalApplicationLauncher ()
 

Static Public Member Functions

static void CallApplication (const String &application, const String &args=String(), bool wait_for_completion=true, bool windowless=false, ProgressInfo *log=nullptr)
 

Public Attributes

File application
 
String args
 
String environment
 
ProgressInfolog = nullptr
 
bool make_child_process = false
 
std::function< void()> on_complete_function
 
bool wait_for_completion = true
 
bool windowless = false
 

Protected Attributes

bool m_is_running = false
 
void * m_process_handle = nullptr
 
uint08 m_process_id = Constant<uint08>::Invalid
 

Detailed Description

Information and logic for launching an application seperate from the current software.



Constructor & Destructor Documentation

◆ LocalApplicationLauncher()

LocalApplicationLauncher ( const File & path)

◆ ~LocalApplicationLauncher()

virtual ~LocalApplicationLauncher ( )
virtual

Member Function Documentation

◆ applicationFileExists()

bool applicationFileExists ( ) const

◆ bringToFront()

void bringToFront ( )

◆ CallApplication()

static void CallApplication ( const String & application,
const String & args = String(),
bool wait_for_completion = true,
bool windowless = false,
ProgressInfo * log = nullptr )
static

◆ execute()

virtual void execute ( )
virtual

◆ findWindowIDs()

Buffer< uint08 > findWindowIDs ( )

◆ isRunning()

bool isRunning ( )

◆ killProcess()

void killProcess ( )

Member Data Documentation

◆ application

File application

◆ args

String args

◆ environment

String environment

◆ log

ProgressInfo* log = nullptr

◆ m_is_running

bool m_is_running = false
protected

◆ m_process_handle

void* m_process_handle = nullptr
protected

◆ m_process_id

uint08 m_process_id = Constant<uint08>::Invalid
protected

◆ make_child_process

bool make_child_process = false

◆ on_complete_function

std::function<void()> on_complete_function

◆ wait_for_completion

bool wait_for_completion = true

◆ windowless

bool windowless = false

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