QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
AppMessages.cc
Go to the documentation of this file.
1#include "AppMessages.h"
2
3#include "QGCApplication.h"
4
5#include <QtCore/QString>
6
7namespace QGC {
8
9void showAppMessage(const QString &message, const QString &title)
10{
11 if (auto *const app = qgcApp()) {
12 app->showAppMessage(message, title);
13 }
14}
15
16void showCriticalVehicleMessage(const QString &message)
17{
18 if (auto *const app = qgcApp()) {
19 app->showCriticalVehicleMessage(message);
20 }
21}
22
23void showRebootAppMessage(const QString &message, const QString &title)
24{
25 if (auto *const app = qgcApp()) {
26 app->showRebootAppMessage(message, title);
27 }
28}
29
31{
32 auto *const app = qgcApp();
33 return app && app->runningUnitTests();
34}
35
36}
#define qgcApp()
bool runningUnitTests()
void showRebootAppMessage(const QString &message, const QString &title)
Modal reboot-required message. Debounced within 2 minutes.
void showCriticalVehicleMessage(const QString &message)
void showAppMessage(const QString &message, const QString &title)
Modal application message. Queued if the UI isn't ready yet.
Definition AppMessages.cc:9