ToolX 1.11.1 [e3f477f]
A GUI debug tool chain for diagnosing GVA systems
Loading...
Searching...
No Matches
recordings_tab.h
Go to the documentation of this file.
1//
2// Copyright (c) 2026, Astute Systems PTY LTD
3//
4// This file is part of the VivoeX project developed by Astute Systems.
5//
6// License. See the LICENSE file in the project root for full license details.
7//
12
13#ifndef STREAMS_RECORDINGS_TAB_H
14#define STREAMS_RECORDINGS_TAB_H
15
16#include <QObject>
17#include <QTableWidget>
18#include <QFileSystemWatcher>
19#include <QPushButton>
20#include <QLabel>
21#include <QProcess>
22
23#include "../ui_toolx.h"
24
28class RecordingsTab : public QObject {
29 Q_OBJECT
30
31 public:
38 explicit RecordingsTab(Ui::Dialog &ui, QWidget *parent = nullptr);
39
43 ~RecordingsTab() final = default;
44
45 public slots:
47 void refreshRecordings();
48
49 private slots:
51 void playSelected();
52
54 void deleteSelected();
55
57 void openFolder();
58
59 private:
61 Ui::Dialog &m_ui;
62
64 QTableWidget *m_table = nullptr;
65
67 QFileSystemWatcher m_watcher;
68
70 QString m_recordDir;
71
73 QLabel *m_statusLabel = nullptr;
74};
75
76#endif // STREAMS_RECORDINGS_TAB_H
QTableWidget * m_table
Table widget for displaying recordings.
Definition recordings_tab.h:64
QLabel * m_statusLabel
Status label showing count.
Definition recordings_tab.h:73
void deleteSelected()
Delete the selected recording(s).
Definition recordings_tab.cpp:158
QString m_recordDir
The directory containing recordings.
Definition recordings_tab.h:70
~RecordingsTab() final=default
Destroy the RecordingsTab object.
QFileSystemWatcher m_watcher
File system watcher for auto-refresh.
Definition recordings_tab.h:67
void refreshRecordings()
Refresh the recordings list from disk.
Definition recordings_tab.cpp:75
void openFolder()
Open the recordings folder in the file manager.
Definition recordings_tab.cpp:186
RecordingsTab(Ui::Dialog &ui, QWidget *parent=nullptr)
Construct a new RecordingsTab object.
Definition recordings_tab.cpp:28
void playSelected()
Play the selected recording in the default media player.
Definition recordings_tab.cpp:143
Ui::Dialog & m_ui
Reference to the main UI.
Definition recordings_tab.h:61