|
| | SrtTransmitTab (Ui::Dialog &ui, QWidget *parent=nullptr) |
| | Construct a new SRT transmit tab, wire up the widgets and load the saved rows.
|
|
| ~SrtTransmitTab () final |
| | Stop all the streams.
|
|
| SrtTransmitTab (const SrtTransmitTab &)=delete |
|
SrtTransmitTab & | operator= (const SrtTransmitTab &)=delete |
|
| SrtTransmitTab (SrtTransmitTab &&)=delete |
|
SrtTransmitTab & | operator= (SrtTransmitTab &&)=delete |
| int | activeCount () const |
| | The number of streams being transmitted.
|
| 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.
|
|
|
int | insertRow (const toolx::streams::SrtTransmitConfig &config) |
| | Add a row to the table and return its index.
|
|
toolx::streams::SrtTransmitConfig | configOfRow (int row) const |
| | Read the settings of a row.
|
|
int | idOfRow (int row) const |
| | The id of the stream in a row.
|
|
void | toggle (int row) |
| | Start or stop the stream of a row after its checkbox changed.
|
|
void | lockRow (int row, bool locked) |
| | Allow or prevent editing the settings of a row (the pattern can always change).
|
|
void | setStateText (int row, const QString &text, bool good, bool bad) |
| | Show the state of a row.
|
|
void | updateStates () |
| | Refresh the state column from the running streams.
|
|
void | updateButtons () |
| | Enable the buttons that apply to the selection and update the count.
|
|
std::string | localAddress (const toolx::streams::SrtLinkConfig &link) const |
| | The address of this machine, for the receiver of a listening transmitter.
|
|
void | save () const |
| | Save the rows.
|
|
void | load () |
| | Load the saved rows.
|
|
|
Ui::Dialog & | m_ui |
| | The main dialogue UI.
|
|
QWidget * | m_parent |
| | Parent widget for message boxes.
|
|
std::map< int, std::unique_ptr< toolx::streams::SrtGenerator > > | m_streams |
| | The running streams keyed by row id.
|
|
std::map< int, uint64_t > | m_last_bytes |
| | Bytes sent at the last refresh, to show the bit rate.
|
|
QTimer | m_timer |
| | Refreshes the state column.
|
|
int | m_next_id = 1 |
| | The id given to the next stream.
|
|
bool | m_loading = false |
| | Set while the table is changed by the program so the edits are not acted on.
|
Manages the table of SRT transmit streams.
Each enabled row runs an SrtGenerator. SRT has no discovery, so the "Copy to Receive" button turns the selected rows into the matching rows of the SRT receive table. The rows (including the passphrase) are saved between runs, the enabled state is not.