The ApplicationWrapper class is the process wrapper.
More...
#include <applicationwrapper.h>
|
|
using | AppCode = QString |
| | AppCode is used to uniquely identify applications.
|
| |
|
using | HandlingFinHook = void(*)(ApplicationWrapper *wrapper, int exit_hook, QProcess::ExitStatus status) |
| | Function pointer type for handling application finish hooks.
|
| |
|
using | ErrorDepatchHook = void(*)(ApplicationWrapper *wrapper) |
| | Function pointer type for handling depatch errors.
|
| |
|
|
void | self_depatched_success () |
| | self_depatched_success signals is using for depatch time success
|
| |
|
void | self_mission_finished () |
| | self_mission_finished mission finished
|
| |
The ApplicationWrapper class is the process wrapper.
This class manages launching, monitoring, and interacting with external applications through QProcess.
◆ ApplicationWrapper()
| ApplicationWrapper::ApplicationWrapper |
( |
QObject * |
parent, |
|
|
DesktopMainWindow * |
desktopWindow |
|
) |
| |
|
explicit |
Constructs an ApplicationWrapper instance.
- Parameters
-
| parent | The parent QObject. |
| desktopWindow | Pointer to the main desktop window. |
◆ app_code()
| AppCode ApplicationWrapper::app_code |
( |
| ) |
const |
|
inline |
Returns the installed app code.
- Returns
- The app code.
◆ app_widget()
| AppWidget * ApplicationWrapper::app_widget |
( |
| ) |
const |
|
inline |
Returns the bound application widget.
- Returns
- Pointer to the AppWidget instance.
◆ args()
| QStringList ApplicationWrapper::args |
( |
| ) |
const |
|
inline |
Returns the argument list for the application.
- Returns
- QStringList of arguments.
◆ bindAppWidget()
| void ApplicationWrapper::bindAppWidget |
( |
AppWidget * |
appWidget | ) |
|
|
inlinenoexcept |
Bind the UI widget associated with the application.
- Parameters
-
◆ depatch_app()
| void ApplicationWrapper::depatch_app |
( |
| ) |
|
|
virtual |
◆ depatchable()
| virtual bool ApplicationWrapper::depatchable |
( |
| ) |
|
|
inlinevirtual |
depatchable
- Returns
- if the app is actually internal depatchable;
◆ get_app_path()
| QString ApplicationWrapper::get_app_path |
( |
| ) |
const |
|
inline |
Returns the application executable path.
- Returns
- The application path as QString.
◆ install_args()
| void ApplicationWrapper::install_args |
( |
const QStringList & |
args | ) |
|
|
inlinenoexcept |
Sets the arguments to pass to the application on launch.
- Parameters
-
◆ install_error_handler()
Installs an error handler hook for depatch failures.
- Parameters
-
| hook | The function pointer to the error handler. |
◆ install_finhook()
Installs a hook called when the application finishes.
- Parameters
-
| hook | The function pointer to the finish hook. |
◆ process_handle()
| QProcess * ApplicationWrapper::process_handle |
( |
| ) |
const |
|
inline |
Returns the internal QProcess handle.
- Note
- Use this to access detailed process control or signals.
- Returns
- Pointer to QProcess managing the application.
◆ set_app_path()
| void ApplicationWrapper::set_app_path |
( |
const QString & |
app_path | ) |
|
|
inlinenoexcept |
Sets the file system path to the application executable.
The path must be accessible and executable for launching the process.
- Parameters
-
| app_path | The file path of the application executable. |
◆ operator==
provide a function for compares
- Parameters
-
| application_wrapper_a | |
| application_wrapper_b | |
- Returns
- results
The documentation for this class was generated from the following files: