#include <OnboardLogController.h>
Signals | |
| void | requestingListChanged () |
| void | downloadingLogsChanged () |
| void | transportChanged () |
| 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 | eraseSelected () |
| Q_INVOKABLE void | cancel () |
| Q_INVOKABLE void | selectAll (bool select) |
| 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) |
| QString | transport () const |
| Transport currently used to list/download logs: "messages" (LOG_* messages) or "ftp" (MAVLink FTP). | |
| Q_INVOKABLE bool | compressLogFile (const QString &logPath) |
| Compress a single log file. | |
| Q_INVOKABLE void | cancelCompression () |
| Cancel compression. | |
Friends | |
| class | OnboardLogDownloadTest |
| class | OnboardLogFtpDownloadTest |
Definition at line 18 of file OnboardLogController.h.
|
explicit |
Definition at line 32 of file OnboardLogController.cc.
References MultiVehicleManager::activeVehicleChanged(), MultiVehicleManager::instance(), and OnboardLogController().
Referenced by OnboardLogController(), and OnboardLogFtpDownloadTest.
| OnboardLogController::~OnboardLogController | ( | ) |
Definition at line 47 of file OnboardLogController.cc.
| bool OnboardLogController::allLogsSelected | ( | ) | const |
Definition at line 656 of file OnboardLogController.cc.
References QGCOnboardLogEntry::received(), and QGCOnboardLogEntry::selected().
| void OnboardLogController::cancel | ( | ) |
Definition at line 572 of file OnboardLogController.cc.
Referenced by OnboardLogFtpDownloadTest.
| void OnboardLogController::cancelCompression | ( | ) |
Cancel compression.
Definition at line 1373 of file OnboardLogController.cc.
|
inline |
Definition at line 56 of file OnboardLogController.h.
|
signal |
|
signal |
|
inline |
Definition at line 57 of file OnboardLogController.h.
|
signal |
| bool OnboardLogController::compressLogFile | ( | const QString & | logPath | ) |
Compress a single log file.
Definition at line 1366 of file OnboardLogController.cc.
|
inline |
Definition at line 54 of file OnboardLogController.h.
References compressLogs().
Referenced by compressLogs().
|
signal |
Referenced by setCompressLogs().
| void OnboardLogController::download | ( | const QString & | path = QString() | ) |
Definition at line 65 of file OnboardLogController.cc.
References SettingsManager::appSettings(), SettingsManager::instance(), and AppSettings::logSavePath().
Referenced by OnboardLogFtpDownloadTest.
|
signal |
| void OnboardLogController::eraseAll | ( | ) |
Definition at line 748 of file OnboardLogController.cc.
References MAVLinkProtocol::getComponentId(), MAVLinkProtocol::instance(), and refresh().
Referenced by OnboardLogFtpDownloadTest.
| void OnboardLogController::eraseSelected | ( | ) |
Definition at line 784 of file OnboardLogController.cc.
References QGCOnboardLogEntry::ftpPath(), and QGCOnboardLogEntry::selected().
Referenced by OnboardLogFtpDownloadTest.
| void OnboardLogController::refresh | ( | ) |
Definition at line 525 of file OnboardLogController.cc.
References selectionChanged().
Referenced by eraseAll(), and OnboardLogFtpDownloadTest.
|
signal |
| void OnboardLogController::selectAll | ( | bool | select | ) |
Definition at line 621 of file OnboardLogController.cc.
References QGCOnboardLogEntry::received(), QGCOnboardLogEntry::selected(), QGCOnboardLogEntry::selectedChanged(), selectionChanged(), and QGCOnboardLogEntry::setSelected().
Referenced by OnboardLogFtpDownloadTest.
| int OnboardLogController::selectedCount | ( | ) | const |
Definition at line 642 of file OnboardLogController.cc.
References QGCOnboardLogEntry::received(), and QGCOnboardLogEntry::selected().
Referenced by OnboardLogFtpDownloadTest.
|
signal |
Referenced by refresh(), and selectAll().
| void OnboardLogController::setCompressLogs | ( | bool | compress | ) |
Definition at line 1358 of file OnboardLogController.cc.
References compressLogsChanged().
| void OnboardLogController::setSortAscending | ( | bool | ascending | ) |
Definition at line 679 of file OnboardLogController.cc.
References sortAscendingChanged().
Referenced by toggleSortByDate().
|
inline |
Definition at line 59 of file OnboardLogController.h.
|
signal |
Referenced by setSortAscending().
| void OnboardLogController::toggleSortByDate | ( | ) |
Definition at line 674 of file OnboardLogController.cc.
References setSortAscending().
Referenced by OnboardLogFtpDownloadTest.
|
inline |
Transport currently used to list/download logs: "messages" (LOG_* messages) or "ftp" (MAVLink FTP).
Definition at line 63 of file OnboardLogController.h.
|
signal |
|
friend |
Definition at line 38 of file OnboardLogController.h.
References OnboardLogDownloadTest.
Referenced by OnboardLogDownloadTest.
|
friend |
Definition at line 39 of file OnboardLogController.h.
References cancel(), download(), eraseAll(), eraseSelected(), OnboardLogController(), OnboardLogFtpDownloadTest, refresh(), selectAll(), selectedCount(), and toggleSortByDate().
Referenced by OnboardLogFtpDownloadTest.