#include <VideoRecordingList.h>
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) |
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.
|
explicit |
Definition at line 17 of file VideoRecordingList.cc.
References SettingsManager::appSettings(), SettingsManager::instance(), AppSettings::savePathsChanged(), VideoRecordingList(), and AppSettings::videoSavePath().
Referenced by VideoRecordingList().
|
inline |
AppSettings::videoSavePath() until set.
Definition at line 23 of file VideoRecordingList.h.
Referenced by recordingsChanged(), and setDirectory().
|
signal |
|
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.
|
signal |
References directory().
| 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().
| void VideoRecordingList::setDirectory | ( | const QString & | directory | ) |
Definition at line 31 of file VideoRecordingList.cc.
References directory().