1#include "DlgGetUserPasswordVNC.h"
2#include "ui_DlgGetUserPasswordVNC.h"
3#include <QLoggingCategory>
5static Q_LOGGING_CATEGORY(log,
"VNC.Dialog.GetPassword")
12 m_pConnecter(
nullptr),
18CDlgGetPasswordVNC::~CDlgGetPasswordVNC()
25 m_pConnecter = dlg.m_pConnecter;
26 m_pParameter = dlg.m_pParameter;
29void CDlgGetPasswordVNC::SetContext(
void *pContext)
33void CDlgGetPasswordVNC::SetConnecter(
CConnecter *pConnecter)
36 qDebug(log) <<
"class name:" << pConnecter->metaObject()->className();
37 m_pConnecter = qobject_cast<CConnecterVnc*>(pConnecter);
38 Q_ASSERT(m_pConnecter);
40 qCritical(log) <<
"The connecter is nullptr";
44 m_pParameter = qobject_cast<CParameterVnc*>(m_pConnecter->
GetParameter());
46 qCritical(log) <<
"The m_pParameter is nullptr";
50 ui->lbText->setText(tr(
"Set password for %1").arg(m_pConnecter->
Name()));
51 ui->wUser->SetParameter(&m_pParameter->m_Net.
m_User);
54void CDlgGetPasswordVNC::on_pbOK_clicked()
57 qCritical(log) <<
"The m_pParameter is nullptr";
65void CDlgGetPasswordVNC::on_pbCancel_clicked()
virtual CParameterBase * GetParameter()
Get parameter.
virtual const QString Name() override
Display order:
CParameterUser m_User
[Instance user]
void sigChanged()
emit when the parameter changes Usually if required, the corresponding parameter corresponds to a cha...