QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
OnboardLogController Class Reference

#include <OnboardLogController.h>

Inheritance diagram for OnboardLogController:
Collaboration diagram for OnboardLogController:

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

Detailed Description

Definition at line 18 of file OnboardLogController.h.

Constructor & Destructor Documentation

◆ OnboardLogController()

OnboardLogController::OnboardLogController ( QObject * parent = nullptr)
explicit

◆ ~OnboardLogController()

OnboardLogController::~OnboardLogController ( )

Definition at line 47 of file OnboardLogController.cc.

Member Function Documentation

◆ allLogsSelected()

bool OnboardLogController::allLogsSelected ( ) const

◆ cancel()

void OnboardLogController::cancel ( )

Definition at line 572 of file OnboardLogController.cc.

Referenced by OnboardLogFtpDownloadTest.

◆ cancelCompression()

void OnboardLogController::cancelCompression ( )

Cancel compression.

Definition at line 1373 of file OnboardLogController.cc.

◆ compressing()

bool OnboardLogController::compressing ( ) const
inline

Definition at line 56 of file OnboardLogController.h.

◆ compressingChanged

void OnboardLogController::compressingChanged ( )
signal

◆ compressionComplete

void OnboardLogController::compressionComplete ( const QString & outputPath,
const QString & error )
signal

◆ compressionProgress()

float OnboardLogController::compressionProgress ( ) const
inline

Definition at line 57 of file OnboardLogController.h.

◆ compressionProgressChanged

void OnboardLogController::compressionProgressChanged ( )
signal

◆ compressLogFile()

bool OnboardLogController::compressLogFile ( const QString & logPath)

Compress a single log file.

Definition at line 1366 of file OnboardLogController.cc.

◆ compressLogs()

bool OnboardLogController::compressLogs ( ) const
inline

Definition at line 54 of file OnboardLogController.h.

References compressLogs().

Referenced by compressLogs().

◆ compressLogsChanged

void OnboardLogController::compressLogsChanged ( )
signal

Referenced by setCompressLogs().

◆ download()

void OnboardLogController::download ( const QString & path = QString())

◆ downloadingLogsChanged

void OnboardLogController::downloadingLogsChanged ( )
signal

◆ eraseAll()

void OnboardLogController::eraseAll ( )

◆ eraseSelected()

void OnboardLogController::eraseSelected ( )

◆ refresh()

void OnboardLogController::refresh ( )

Definition at line 525 of file OnboardLogController.cc.

References selectionChanged().

Referenced by eraseAll(), and OnboardLogFtpDownloadTest.

◆ requestingListChanged

void OnboardLogController::requestingListChanged ( )
signal

◆ selectAll()

◆ selectedCount()

int OnboardLogController::selectedCount ( ) const

◆ selectionChanged

void OnboardLogController::selectionChanged ( )
signal

Referenced by refresh(), and selectAll().

◆ setCompressLogs()

void OnboardLogController::setCompressLogs ( bool compress)

Definition at line 1358 of file OnboardLogController.cc.

References compressLogsChanged().

◆ setSortAscending()

void OnboardLogController::setSortAscending ( bool ascending)

Definition at line 679 of file OnboardLogController.cc.

References sortAscendingChanged().

Referenced by toggleSortByDate().

◆ sortAscending()

bool OnboardLogController::sortAscending ( ) const
inline

Definition at line 59 of file OnboardLogController.h.

◆ sortAscendingChanged

void OnboardLogController::sortAscendingChanged ( )
signal

Referenced by setSortAscending().

◆ toggleSortByDate()

void OnboardLogController::toggleSortByDate ( )

Definition at line 674 of file OnboardLogController.cc.

References setSortAscending().

Referenced by OnboardLogFtpDownloadTest.

◆ transport()

QString OnboardLogController::transport ( ) const
inline

Transport currently used to list/download logs: "messages" (LOG_* messages) or "ftp" (MAVLink FTP).

Definition at line 63 of file OnboardLogController.h.

◆ transportChanged

void OnboardLogController::transportChanged ( )
signal

◆ OnboardLogDownloadTest

friend class OnboardLogDownloadTest
friend

Definition at line 38 of file OnboardLogController.h.

References OnboardLogDownloadTest.

Referenced by OnboardLogDownloadTest.

◆ OnboardLogFtpDownloadTest

friend class OnboardLogFtpDownloadTest
friend

The documentation for this class was generated from the following files: