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


Public Member Functions | |
| RtspTab (Ui::Dialog &ui, QWidget *parent=nullptr) | |
| Construct a new RTSP tab and wire up the widgets. | |
| ~RtspTab () final | |
| Stop all the players. | |
| RtspTab (const RtspTab &)=delete | |
| RtspTab & | operator= (const RtspTab &)=delete |
| RtspTab (RtspTab &&)=delete | |
| RtspTab & | operator= (RtspTab &&)=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< RtspPlayer > > | 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 RTSP camera streams and their player windows.
The names, URLs and user names are saved between runs. Passwords are not saved.
|
explicit |
Construct a new RTSP tab and wire up the widgets.
| ui | the main dialogue UI |
| parent | the parent widget for the player windows |
| void RtspTab::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 RtspTab::toJson | ( | ) | const |
The table as a JSON array for the configuration file.