MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / OnAdd

Method OnAdd

DebugView++/SourcesDlg.cpp:125–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125void 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
137std::vector<SourceInfo> CSourcesDlg::GetSourceInfos()
138{

Callers

nothing calls this directly

Calls 5

SourceInfoClass · 0.85
GetAddressMethod · 0.80
GetPortMethod · 0.80
GetNameMethod · 0.45
GetSourceTypeMethod · 0.45

Tested by

no test coverage detected