MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / SetContext

Method SetContext

Src/DlgUserPassword.cpp:30–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void CDlgUserPassword::SetContext(void *pContext)
31{
32 auto pNet = (CParameterNet*)pContext;
33 if(!pNet) {
34 qCritical(log) << "The pContext is null";
35 return;
36 }
37 m_pUser = &pNet->m_User;
38 ui->lbText->setText(windowTitle() + "\n" + tr("Server: ")
39 + pNet->GetHost()
40 + ":" + QString::number(pNet->GetPort()));
41 ui->wUser->SetParameter(m_pUser);
42}
43
44int CDlgUserPassword::SetUser(const QString &szPrompt, CParameterUser* pUser)
45{

Callers

nothing calls this directly

Calls 3

GetHostMethod · 0.80
GetPortMethod · 0.45
SetParameterMethod · 0.45

Tested by

no test coverage detected