Rabbit Remote Control
0.1.0-bate14
Toggle main menu visibility
Loading...
Searching...
No Matches
Plugins
LibVNCServer
Service
FrmParameterServiceLibVNC.cpp
1
#include "FrmParameterServiceLibVNC.h"
2
#include "ui_FrmParameterServiceLibVNC.h"
3
4
CFrmParameterServiceLibVNC::CFrmParameterServiceLibVNC(
CParameterServiceLibVNC
*para, QWidget* parent) :
5
QWidget(parent),
6
ui(new
Ui
::
CFrmParameterServiceLibVNC
),
7
m_pParameters(para)
8
{
9
ui->setupUi(
this
);
10
Init();
11
}
12
13
CFrmParameterServiceLibVNC::~CFrmParameterServiceLibVNC()
14
{
15
delete
ui
;
16
}
17
18
void
CFrmParameterServiceLibVNC::slotAccept
()
19
{
20
m_pParameters->setEnable(
ui
->cbEnable->isChecked());
21
m_pParameters->setPort(
ui
->sbPort->value());
22
m_pParameters->setPassword(
ui
->lePassword->text());
23
}
24
25
void
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
}
CFrmParameterServiceLibVNC
Definition
FrmParameterServiceLibVNC.h:12
CFrmParameterServiceLibVNC::slotAccept
void slotAccept()
[Accept parameters]
Definition
FrmParameterServiceLibVNC.cpp:18
CFrmParameterServiceLibVNC::ui
Ui::CFrmParameterServiceLibVNC * ui
[Accept parameters]
Definition
FrmParameterServiceLibVNC.h:25
CParameterServiceLibVNC
Definition
ParameterServiceLibVNC.h:7
Ui
Definition
FrmFullScreenToolBar.h:14
Author: Kang Lin (kl222@126.com)
Copyright (c) Kang Lin Studios All Rights Reserved