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

#include <VideoRecordingList.h>

Inheritance diagram for VideoRecordingList:
Collaboration diagram for VideoRecordingList:

Signals

void directoryChanged ()
void recordingsChanged ()

Public Member Functions

 VideoRecordingList (QObject *parent=nullptr)
QString directory () const
 AppSettings::videoSavePath() until set.
void setDirectory (const QString &directory)
QVariantList recordings () const
Q_INVOKABLE bool remove (const QString &path)

Detailed Description

The video recordings in a directory, newest first, for the Video Recordings page. Follows recordings being added and removed.

Definition at line 11 of file VideoRecordingList.h.

Constructor & Destructor Documentation

◆ VideoRecordingList()

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

Member Function Documentation

◆ directory()

QString VideoRecordingList::directory ( ) const
inline

AppSettings::videoSavePath() until set.

Definition at line 23 of file VideoRecordingList.h.

Referenced by recordingsChanged(), and setDirectory().

◆ directoryChanged

void VideoRecordingList::directoryChanged ( )
signal

◆ recordings()

QVariantList VideoRecordingList::recordings ( ) const
inline

Each recording as a map: "name" (the file name), "path", "url", "size" (bytes), "modified" (a QDateTime) and "subtitles", the url of its telemetry subtitle file (SubtitleWriter), empty without one.

Definition at line 29 of file VideoRecordingList.h.

◆ recordingsChanged

void VideoRecordingList::recordingsChanged ( )
signal

References directory().

◆ remove()

bool VideoRecordingList::remove ( const QString & path)

Deletes the recording at path, one of recordings(), with its subtitle file. False, with a warning logged, when the recording remains.

Definition at line 82 of file VideoRecordingList.cc.

References SubtitleWriter::subtitleFile().

◆ setDirectory()

void VideoRecordingList::setDirectory ( const QString & directory)

Definition at line 31 of file VideoRecordingList.cc.

References directory().


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