![]() |
ToolX 1.11.1 [e3f477f]
A GUI debug tool chain for diagnosing GVA systems
|
Manages the list of HLS streams and their player windows. More...
#include <hls_tab.h>


Public Member Functions | |
| HlsTab (Ui::Dialog &ui, QWidget *parent=nullptr) | |
| Construct a new HLS tab and wire up the widgets. | |
| ~HlsTab () final | |
| Stop all the players. | |
| HlsTab (const HlsTab &)=delete | |
| HlsTab & | operator= (const HlsTab &)=delete |
| HlsTab (HlsTab &&)=delete | |
| HlsTab & | operator= (HlsTab &&)=delete |
| QJsonArray | toJson () const |
| The table as a JSON array for the configuration file. | |
| void | fromJson (const QJsonArray &streams) |
| Replace the table with the streams of a JSON array. | |
Private Attributes | |
| Ui::Dialog & | m_ui |
| The main dialogue UI. | |
| QWidget * | m_parent |
| Parent widget for player windows. | |
| std::map< int, QPointer< HlsPlayer > > | m_players |
| The active players keyed by stream id. | |
| TabIndicator | m_indicator |
| Red dot on the tab header, visible while any stream is playing. | |
| int | m_next_id = 1 |
| The id given to the next stream. | |
| bool | m_loading = false |
| Set while the table is being filled so edits are not saved. | |
Manages the list of HLS streams and their player windows.
The names and URLs are saved between runs.
|
explicit |
Construct a new HLS tab and wire up the widgets.
| ui | the main dialogue UI |
| parent | the parent widget for the player windows |
| void HlsTab::fromJson | ( | const QJsonArray & | streams | ) |
Replace the table with the streams of a JSON array.
The open players are closed and the table is cleared.
| streams | the array made by toJson() |
| QJsonArray HlsTab::toJson | ( | ) | const |
The table as a JSON array for the configuration file.