1#include "DlgLibVNCServerPassword.h"
2#include "ui_DlgLibVNCServerPassword.h"
3#include <QLoggingCategory>
5static Q_LOGGING_CATEGORY(log,
"LibVNCServer.Dialog.GetPassword")
12 m_pConnecter(
nullptr),
18CDlgLibVNCServerPassword::~CDlgLibVNCServerPassword()
25 m_pConnecter = dlg.m_pConnecter;
26 m_pParameter = dlg.m_pParameter;
29void CDlgLibVNCServerPassword::SetContext(
void *pContext)
33void CDlgLibVNCServerPassword::SetConnecter(
CConnecter *pConnecter)
35 m_pConnecter = qobject_cast<CConnecterLibVNCServer*>(pConnecter);
37 qCritical(log) <<
"The connecter is nullptr";
41 m_pParameter = qobject_cast<CParameterLibVNCServer*>(m_pConnecter->
GetParameter());
43 qCritical(log) <<
"The m_pParameter is nullptr";
47 ui->lbText->setText(tr(
"Set password for %1").arg(m_pConnecter->
Name()));
48 ui->wUser->SetParameter(&m_pParameter->m_Net.
m_User);
51void CDlgLibVNCServerPassword::on_pbOK_clicked()
54 qCritical(log) <<
"The m_pParameter is nullptr";
62void CDlgLibVNCServerPassword::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...