Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
FrmParameterServiceLibVNC.cpp
1#include "FrmParameterServiceLibVNC.h"
2#include "ui_FrmParameterServiceLibVNC.h"
3
4CFrmParameterServiceLibVNC::CFrmParameterServiceLibVNC(CParameterServiceLibVNC *para, QWidget* parent) :
5 QWidget(parent),
7 m_pParameters(para)
8{
9 ui->setupUi(this);
10 Init();
11}
12
13CFrmParameterServiceLibVNC::~CFrmParameterServiceLibVNC()
14{
15 delete ui;
16}
17
19{
20 m_pParameters->setEnable(ui->cbEnable->isChecked());
21 m_pParameters->setPort(ui->sbPort->value());
22 m_pParameters->setPassword(ui->lePassword->text());
23}
24
25void CFrmParameterServiceLibVNC::Init()
26{
27 ui->cbEnable->setChecked(m_pParameters->getEnable());
28 ui->sbPort->setValue(m_pParameters->getPort());
29 ui->lePassword->setText(m_pParameters->getPassword());
30}
void slotAccept()
[Accept parameters]
Ui::CFrmParameterServiceLibVNC * ui
[Accept parameters]