ToolX 1.11.1 [e3f477f]
A GUI debug tool chain for diagnosing GVA systems
Loading...
Searching...
No Matches
GigEDiscoveryTab Class Reference
Inheritance diagram for GigEDiscoveryTab:
Inheritance graph
Collaboration diagram for GigEDiscoveryTab:
Collaboration graph

Data Structures

struct  Device
 A discovered device, merged from GVCP and SAP by IP address. More...
struct  Result
 A device found by the GVCP broadcast with its image format, if it could be read. More...

Public Slots

void discover ()
 Broadcast a GVCP discovery command and collect the replies.
void sapReceived (const QString name, const ::mediax::sap::SdpMessage message)
 A GigE Vision SAP announcement was received.
void playSelected ()
 Open a player for the selected device.

Public Member Functions

 GigEDiscoveryTab (Ui::Dialog &ui, SapManager *sap, QWidget *parent=nullptr)
 Construct a new GigE discovery tab and wire up the widgets.
 ~GigEDiscoveryTab () final
 Stop any discovery in progress.

Private Slots

void updateTable ()
 Redraw the table from the known devices.

Private Member Functions

void gvcpResults (const std::vector< Result > &results)
 Merge the GVCP results into the known devices (GUI thread).

Private Attributes

Ui::Dialog & m_ui
 The main dialogue UI.
QWidget * m_parent
 Parent widget for player windows.
std::map< QString, Device > m_devices
 The known devices keyed by IP address.
std::map< QString, QDateTime > m_probed
 When the image format of a device was last read (or tried), keyed by IP address.
std::set< QString > m_probe_ok
 Devices whose last read worked.
std::thread m_thread
 GVCP broadcast thread.
std::atomic< bool > m_discovering { false }
 A discovery broadcast is in progress.
std::atomic< bool > m_closing { false }
 Set when the tab is being destroyed.
QTimer m_refresh_timer
 Auto refresh timer.
QTimer m_update_timer
 Table redraw timer, keeps the status column current.

Constructor & Destructor Documentation

◆ GigEDiscoveryTab()

GigEDiscoveryTab::GigEDiscoveryTab ( Ui::Dialog & ui,
SapManager * sap,
QWidget * parent = nullptr )
explicit

Construct a new GigE discovery tab and wire up the widgets.

Parameters
uithe main dialogue UI
sapthe SAP manager that supplies the GigE SAP announcements
parentthe parent widget for the player windows

Member Function Documentation

◆ sapReceived

void GigEDiscoveryTab::sapReceived ( const QString name,
const ::mediax::sap::SdpMessage message )
slot

A GigE Vision SAP announcement was received.

Parameters
namethe session name
messagethe SDP message

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