NDEVR
API Documentation
ConnectionForwardingDialog

A table that allows the user to specify any number of ConnectionForwarding objects. More...

Collaboration diagram for ConnectionForwardingDialog:
[legend]

Public Member Functions

 ConnectionForwardingDialog (QWidget *parent=nullptr)
 Constructs a ConnectionForwardingDialog.
void clearAll ()
 Removes all connection forwarding entries from the table.
File defaultJSONFile () const
 Returns the default file path for storing forwarding configuration as JSON.
void fromJSON (const JSONNode &node)
 Populates the table from a JSON node containing forwarding entries.
JSONNode toJSON ()
 Serializes all connection forwarding entries to a JSON node.

Protected Member Functions

void updateTable ()
 Refreshes the table display to reflect the current forwarding entries.

Protected Attributes

Buffer< ConnectionForwarding * > m_connections
 The list of connection forwarding entries.
QTableWidget * m_table
 The table widget displaying forwarding entries.

Detailed Description

A table that allows the user to specify any number of ConnectionForwarding objects.


Definition at line 13 of file ConnectionForwardingDialog.h.

Constructor & Destructor Documentation

◆ ConnectionForwardingDialog()

ConnectionForwardingDialog::ConnectionForwardingDialog ( QWidget * parent = nullptr)

Constructs a ConnectionForwardingDialog.

Parameters
[in]parentThe parent widget.

Member Function Documentation

◆ defaultJSONFile()

File ConnectionForwardingDialog::defaultJSONFile ( ) const

Returns the default file path for storing forwarding configuration as JSON.

Returns
The default JSON configuration file.

◆ fromJSON()

void ConnectionForwardingDialog::fromJSON ( const JSONNode & node)

Populates the table from a JSON node containing forwarding entries.

Parameters
[in]nodeThe JSON data to deserialize.

◆ toJSON()

JSONNode ConnectionForwardingDialog::toJSON ( )

Serializes all connection forwarding entries to a JSON node.

Returns
A JSONNode containing the serialized forwarding data.

The documentation for this class was generated from the following file: