| 123 | } |
| 124 | |
| 125 | void CSourcesDlg::OnAdd(UINT /*uNotifyCode*/, int /*nID*/, CWindow /*wndCtl*/) |
| 126 | { |
| 127 | CSourceDlg dlg(L"UDP port 2020", SourceType::Udp, L"192.168.1.1", 2020); |
| 128 | if (dlg.DoModal() != IDOK) |
| 129 | return; |
| 130 | |
| 131 | auto info = SourceInfo(dlg.GetName(), dlg.GetSourceType(), dlg.GetAddress(), dlg.GetPort()); |
| 132 | info.enabled = true; |
| 133 | m_sourceInfos.push_back(info); |
| 134 | UpdateGrid(); |
| 135 | } |
| 136 | |
| 137 | std::vector<SourceInfo> CSourcesDlg::GetSourceInfos() |
| 138 | { |
nothing calls this directly
no test coverage detected