Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
FrmParameterFreeRDP.cpp
1// Author: Kang Lin <kl222@126.com>
2
3#include "FrmParameterFreeRDP.h"
4#include "ui_FrmParameterFreeRDP.h"
5
6CFrmParameterFreeRDP::CFrmParameterFreeRDP(CParameterServiceFreeRDP *para, QWidget* parent)
7 : QWidget(parent),
9 m_Log("FreeRDP"),
10 m_Para(para)
11{
12 ui->setupUi(this);
13 Init();
14}
15
16CFrmParameterFreeRDP::~CFrmParameterFreeRDP()
17{
18 qDebug(m_Log) << "CFrmParameterFreeRDP::~CFrmParameterFreeRDP";
19 delete ui;
20}
21
22void CFrmParameterFreeRDP::Init()
23{
24 ui->cbEnable->setChecked(m_Para->getEnable());
25 ui->lePort->setText(QString::number(m_Para->getPort()));
26 ui->lePassword->setText(m_Para->getPassword());
27
28 ui->cbAuthentication->setChecked(m_Para->getAuthentication());
29 ui->cbMayInteract->setChecked(m_Para->getMayInteract());
30 ui->cbMayView->setChecked(m_Para->getMayView());
31
32 ui->cbTlsSecurity->setChecked(m_Para->getTlsSecurity());
33 ui->cbRdpSecurity->setChecked(m_Para->getRdpSecurity());
34 ui->cbNlaSecurity->setChecked(m_Para->getNlaSecurity());
35 ui->cbNlaExtSecurity->setChecked(m_Para->getNlaExtSecurity());
36 ui->leSamFile->setText(m_Para->getSamFile());
37}
38
40{
41 m_Para->setEnable(ui->cbEnable->isChecked());
42 m_Para->setPort(ui->lePort->text().toUInt());
43 m_Para->setPassword(ui->lePassword->text());
44
45 m_Para->setAuthentication(ui->cbAuthentication->isChecked());
46 m_Para->setMayInteract(ui->cbMayInteract->isChecked());
47 m_Para->setMayView(ui->cbMayView->isChecked());
48
49 m_Para->setTlsSecurity(ui->cbTlsSecurity->isChecked());
50 m_Para->setRdpSecurity(ui->cbRdpSecurity->isChecked());
51 m_Para->setNlaSecurity(ui->cbNlaSecurity->isChecked());
52 m_Para->setNlaExtSecurity(ui->cbNlaExtSecurity->isChecked());
53 m_Para->setSamFile(ui->leSamFile->text());
54}
void slotAccept()
[Accept parameters]
Ui::CFrmParameterFreeRDP * ui
[Accept parameters]