14#ifndef STREAMS_GIGE_DISCOVERY_TAB_H
15#define STREAMS_GIGE_DISCOVERY_TAB_H
32#include "mediax/gev/gev.h"
33#include "../ui_toolx.h"
68 void sapReceived(
const QString name, const ::mediax::sap::SdpMessage message);
101 ::mediax::gev::DeviceInfo info;
103 ::mediax::gev::ImageFormat format;
107 void gvcpResults(
const std::vector<Result> &results);
QTimer m_refresh_timer
Auto refresh timer.
Definition gige_discovery_tab.h:126
std::map< QString, Device > m_devices
The known devices keyed by IP address.
Definition gige_discovery_tab.h:114
std::thread m_thread
GVCP broadcast thread.
Definition gige_discovery_tab.h:120
GigEDiscoveryTab(Ui::Dialog &ui, SapManager *sap, QWidget *parent=nullptr)
Construct a new GigE discovery tab and wire up the widgets.
Definition gige_discovery_tab.cpp:57
void playSelected()
Open a player for the selected device.
Definition gige_discovery_tab.cpp:312
std::atomic< bool > m_closing
Set when the tab is being destroyed.
Definition gige_discovery_tab.h:124
void discover()
Broadcast a GVCP discovery command and collect the replies.
Definition gige_discovery_tab.cpp:106
QTimer m_update_timer
Table redraw timer, keeps the status column current.
Definition gige_discovery_tab.h:128
QWidget * m_parent
Parent widget for player windows.
Definition gige_discovery_tab.h:112
std::set< QString > m_probe_ok
Devices whose last read worked.
Definition gige_discovery_tab.h:118
Ui::Dialog & m_ui
The main dialogue UI.
Definition gige_discovery_tab.h:110
std::atomic< bool > m_discovering
A discovery broadcast is in progress.
Definition gige_discovery_tab.h:122
void gvcpResults(const std::vector< Result > &results)
Merge the GVCP results into the known devices (GUI thread).
Definition gige_discovery_tab.cpp:165
~GigEDiscoveryTab() final
Stop any discovery in progress.
Definition gige_discovery_tab.cpp:96
std::map< QString, QDateTime > m_probed
When the image format of a device was last read (or tried), keyed by IP address.
Definition gige_discovery_tab.h:116
void updateTable()
Redraw the table from the known devices.
Definition gige_discovery_tab.cpp:253
void sapReceived(const QString name, const ::mediax::sap::SdpMessage message)
A GigE Vision SAP announcement was received.
Definition gige_discovery_tab.cpp:209
Definition sap_manager.h:31
A discovered device, merged from GVCP and SAP by IP address.
Definition gige_discovery_tab.h:82
A device found by the GVCP broadcast with its image format, if it could be read.
Definition gige_discovery_tab.h:100