|
QGroundControl
Ground Control Station for MAVLink Drones
|
Functions | |
| std::optional< int > | initialize (int argc, char *argv[], const QGCCommandLineParser::CommandLineParseResult &args) |
| Initialize platform: run safety checks and configure environment. | |
| void | setupPostApp () |
| Complete platform setup after application exists. | |
| int | showMultipleInstanceError (int argc, char *argv[]) |
| Show error dialog when another instance is already running. | |
| bool | checkSingleInstance (bool allowMultiple) |
| Check if another instance is already running (single instance guard) | |
| bool Platform::checkSingleInstance | ( | bool | allowMultiple | ) |
Check if another instance is already running (single instance guard)
| allowMultiple | If true, skip the check and allow multiple instances |
Definition at line 243 of file Platform.cc.
References RunGuard::tryToRun().
Referenced by initialize().
| std::optional< int > Platform::initialize | ( | int | argc, |
| char * | argv[], | ||
| const QGCCommandLineParser::CommandLineParseResult & | args | ||
| ) |
Initialize platform: run safety checks and configure environment.
| argc | Argument count (for error dialogs) |
| argv | Argument values (for error dialogs) |
| args | Parsed command line arguments |
Definition at line 135 of file Platform.cc.
References QGCCommandLineParser::CommandLineParseResult::allowMultiple, checkSingleInstance(), QGCCommandLineParser::CommandLineParseResult::listTests, QGCCommandLineParser::CommandLineParseResult::quietWindowsAsserts, QGCCommandLineParser::CommandLineParseResult::runningUnitTests, showMultipleInstanceError(), QGCCommandLineParser::CommandLineParseResult::useDesktopGL, and QGCCommandLineParser::CommandLineParseResult::useSwRast.
Referenced by main().
| void Platform::setupPostApp | ( | ) |
Complete platform setup after application exists.
Definition at line 200 of file Platform.cc.
References AndroidInterface::checkStoragePermissions(), and SignalHandler::setupSignalHandlers().
Referenced by main().
| int Platform::showMultipleInstanceError | ( | int | argc, |
| char * | argv[] | ||
| ) |
Show error dialog when another instance is already running.
Definition at line 232 of file Platform.cc.
Referenced by initialize().