|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <OnboardLogController.h>
Inheritance diagram for OnboardLogController:
Collaboration diagram for OnboardLogController:Signals | |
| void | requestingListChanged () |
| void | downloadingLogsChanged () |
| void | selectionChanged () |
| void | compressLogsChanged () |
| void | sortAscendingChanged () |
| void | compressingChanged () |
| void | compressionProgressChanged () |
| void | compressionComplete (const QString &outputPath, const QString &error) |
Public Member Functions | |
| OnboardLogController (QObject *parent=nullptr) | |
| ~OnboardLogController () | |
| Q_INVOKABLE void | refresh () |
| Q_INVOKABLE void | download (const QString &path=QString()) |
| Q_INVOKABLE void | eraseAll () |
| Q_INVOKABLE void | cancel () |
| Q_INVOKABLE void | selectAll (bool select) |
| Q_INVOKABLE int | selectedCount () const |
| Q_INVOKABLE void | toggleSortByDate () |
| bool | compressLogs () const |
| void | setCompressLogs (bool compress) |
| bool | compressing () const |
| float | compressionProgress () const |
| bool | allLogsSelected () const |
| bool | sortAscending () const |
| void | setSortAscending (bool ascending) |
| Q_INVOKABLE bool | compressLogFile (const QString &logPath) |
| Compress a single log file. | |
| Q_INVOKABLE void | cancelCompression () |
| Cancel compression. | |
Friends | |
| class | OnboardLogDownloadTest |
Definition at line 14 of file OnboardLogController.h.
|
explicit |
Definition at line 22 of file OnboardLogController.cc.
References MultiVehicleManager::activeVehicleChanged(), and MultiVehicleManager::instance().
| OnboardLogController::~OnboardLogController | ( | ) |
Definition at line 37 of file OnboardLogController.cc.
| bool OnboardLogController::allLogsSelected | ( | ) | const |
Definition at line 520 of file OnboardLogController.cc.
References QmlObjectListModel::count(), QGCOnboardLogEntry::received(), QGCOnboardLogEntry::selected(), and QmlObjectListModel::value().
| void OnboardLogController::cancel | ( | ) |
Definition at line 469 of file OnboardLogController.cc.
| void OnboardLogController::cancelCompression | ( | ) |
Cancel compression.
Definition at line 776 of file OnboardLogController.cc.
|
inline |
Definition at line 48 of file OnboardLogController.h.
|
signal |
|
signal |
|
inline |
Definition at line 49 of file OnboardLogController.h.
|
signal |
| bool OnboardLogController::compressLogFile | ( | const QString & | logPath | ) |
Compress a single log file.
Definition at line 769 of file OnboardLogController.cc.
|
inline |
Definition at line 46 of file OnboardLogController.h.
|
signal |
Referenced by setCompressLogs().
| void OnboardLogController::download | ( | const QString & | path = QString() | ) |
Definition at line 42 of file OnboardLogController.cc.
References SettingsManager::appSettings(), SettingsManager::instance(), and AppSettings::logSavePath().
|
signal |
| void OnboardLogController::eraseAll | ( | ) |
Definition at line 612 of file OnboardLogController.cc.
References Vehicle::defaultComponentId(), MAVLinkProtocol::getComponentId(), MAVLinkProtocol::getSystemId(), Vehicle::id(), MAVLinkProtocol::instance(), VehicleLinkManager::primaryLink(), refresh(), Vehicle::sendMessageOnLinkThreadSafe(), and Vehicle::vehicleLinkManager().
| void OnboardLogController::refresh | ( | ) |
Definition at line 445 of file OnboardLogController.cc.
References QmlObjectListModel::clearAndDeleteContents(), and selectionChanged().
Referenced by eraseAll().
|
signal |
| void OnboardLogController::selectAll | ( | bool | select | ) |
Definition at line 487 of file OnboardLogController.cc.
References QmlObjectListModel::count(), QGCOnboardLogEntry::received(), QGCOnboardLogEntry::selected(), selectionChanged(), QGCOnboardLogEntry::setSelected(), and QmlObjectListModel::value().
| int OnboardLogController::selectedCount | ( | ) | const |
Definition at line 506 of file OnboardLogController.cc.
References QmlObjectListModel::count(), QGCOnboardLogEntry::received(), QGCOnboardLogEntry::selected(), and QmlObjectListModel::value().
|
signal |
Referenced by refresh(), and selectAll().
| void OnboardLogController::setCompressLogs | ( | bool | compress | ) |
Definition at line 761 of file OnboardLogController.cc.
References compressLogsChanged().
| void OnboardLogController::setSortAscending | ( | bool | ascending | ) |
Definition at line 543 of file OnboardLogController.cc.
References sortAscendingChanged().
Referenced by toggleSortByDate().
|
inline |
Definition at line 51 of file OnboardLogController.h.
|
signal |
Referenced by setSortAscending().
| void OnboardLogController::toggleSortByDate | ( | ) |
Definition at line 538 of file OnboardLogController.cc.
References setSortAscending().
|
friend |
Definition at line 32 of file OnboardLogController.h.