|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <StatusTextHandler.h>
Inheritance diagram for StatusTextHandler:
Collaboration diagram for StatusTextHandler:Signals | |
| void | newFormattedMessage (QString message) |
| void | textMessageReceived (MAV_COMPONENT componentid, MAV_SEVERITY severity, QString text, QString description) |
| void | messageCountChanged (uint32_t newCount) |
| void | messageTypeChanged () |
| void | newErrorMessage (QString message) |
Public Member Functions | |
| StatusTextHandler (QObject *parent=nullptr) | |
| ~StatusTextHandler () | |
| void | mavlinkMessageReceived (const mavlink_message_t &message) |
| void | handleHTMLEscapedTextMessage (MAV_COMPONENT componentid, MAV_SEVERITY severity, const QString &text, const QString &description) |
| void | clearMessages () |
| void | resetAllMessages () |
| void | resetErrorLevelMessages () |
| const QList< StatusText * > & | messages () const |
| QString | formattedMessages () const |
| bool | messageTypeNone () const |
| bool | messageTypeNormal () const |
| bool | messageTypeWarning () const |
| bool | messageTypeError () const |
| uint32_t | getErrorCount () const |
| uint32_t | getErrorCountTotal () const |
| uint32_t | getWarningCount () const |
| uint32_t | getNormalCount () const |
| uint32_t | messageCount () const |
Static Public Member Functions | |
| static QString | getMessageText (const mavlink_message_t &message) |
Definition at line 33 of file StatusTextHandler.h.
|
explicit |
Definition at line 32 of file StatusTextHandler.cc.
| StatusTextHandler::~StatusTextHandler | ( | ) |
Definition at line 43 of file StatusTextHandler.cc.
References clearMessages().
| void StatusTextHandler::clearMessages | ( | ) |
Definition at line 75 of file StatusTextHandler.cc.
Referenced by Vehicle::clearMessages(), and ~StatusTextHandler().
| QString StatusTextHandler::formattedMessages | ( | ) | const |
Definition at line 65 of file StatusTextHandler.cc.
References messages().
Referenced by Vehicle::formattedMessages().
|
inline |
Definition at line 63 of file StatusTextHandler.h.
Referenced by resetErrorLevelMessages().
|
inline |
Definition at line 64 of file StatusTextHandler.h.
|
static |
Definition at line 50 of file StatusTextHandler.cc.
|
inline |
Definition at line 66 of file StatusTextHandler.h.
Referenced by resetErrorLevelMessages().
|
inline |
Definition at line 65 of file StatusTextHandler.h.
Referenced by resetErrorLevelMessages().
| void StatusTextHandler::handleHTMLEscapedTextMessage | ( | MAV_COMPONENT | componentid, |
| MAV_SEVERITY | severity, | ||
| const QString & | text, | ||
| const QString & | description | ||
| ) |
Definition at line 132 of file StatusTextHandler.cc.
References StatusText::getText(), newErrorMessage(), newFormattedMessage(), StatusText::setFormatedText(), and StatusText::severityIsError().
| void StatusTextHandler::mavlinkMessageReceived | ( | const mavlink_message_t & | message | ) |
Definition at line 246 of file StatusTextHandler.cc.
|
inline |
Definition at line 67 of file StatusTextHandler.h.
Referenced by Vehicle::messageCount(), resetAllMessages(), and resetErrorLevelMessages().
|
signal |
Referenced by resetAllMessages(), and resetErrorLevelMessages().
|
inline |
Definition at line 55 of file StatusTextHandler.h.
Referenced by formattedMessages().
|
signal |
Referenced by resetAllMessages(), and resetErrorLevelMessages().
|
inline |
Definition at line 61 of file StatusTextHandler.h.
Referenced by Vehicle::messageTypeError().
|
inline |
Definition at line 58 of file StatusTextHandler.h.
Referenced by Vehicle::messageTypeNone().
|
inline |
Definition at line 59 of file StatusTextHandler.h.
Referenced by Vehicle::messageTypeNormal().
|
inline |
Definition at line 60 of file StatusTextHandler.h.
Referenced by Vehicle::messageTypeWarning().
|
signal |
Referenced by handleHTMLEscapedTextMessage().
|
signal |
Referenced by handleHTMLEscapedTextMessage().
| void StatusTextHandler::resetAllMessages | ( | ) |
Definition at line 87 of file StatusTextHandler.cc.
References messageCount(), messageCountChanged(), and messageTypeChanged().
Referenced by Vehicle::resetAllMessages().
| void StatusTextHandler::resetErrorLevelMessages | ( | ) |
Definition at line 107 of file StatusTextHandler.cc.
References getErrorCount(), getNormalCount(), getWarningCount(), messageCount(), messageCountChanged(), and messageTypeChanged().
Referenced by Vehicle::resetErrorLevelMessages().
|
signal |