玉兔远程控制 0.1.0-bate8
载入中...
搜索中...
未找到
Public 槽 | Public 成员函数 | Private 槽 | Private 属性 | 所有成员列表
CParameterPluginUI类 参考
类 CParameterPluginUI 继承关系图:
Inheritance graph
[图例]
CParameterPluginUI 的协作图:
Collaboration graph
[图例]

Public 槽

void on_cbEnableViewPassword_clicked (bool checked)
 
void on_pbEncryptKey_clicked ()
 
- Public 槽 继承自 CParameterUI
virtual void slotSetParameter (CParameter *pParameter)
 [override functions]
 
virtual void slotAccept ()
 接受参数。不调用 CheckValidity
 

Public 成员函数

 CParameterPluginUI (QWidget *parent=nullptr)
 
virtual int SetParameter (CParameter *pParameter) override
 [override functions]
 
virtual bool CheckValidity (bool validity) override
 检查参数的有效性
 
virtual int Accept () override
 接受参数。如果需要,可先调用 CheckValidity
 
- Public 成员函数 继承自 CParameterUI
 CParameterUI (QWidget *parent=nullptr)
 

Private 槽

void on_cbSystemCredential_checkStateChanged (const Qt::CheckState &state)
 
void on_pbDesktopShortcutsDisable_clicked ()
 
void on_pbDesktopShortcutsRestore_clicked ()
 
void on_cbCaptureAllKeyboard_checkStateChanged (const Qt::CheckState &arg1)
 

Private 属性

Ui::CParameterPluginUI * ui
 
CParameterPluginm_pPara
 

详细描述

在文件 ParameterPluginUI.h11 行定义.

构造及析构函数说明

◆ ~CParameterPluginUI()

CParameterPluginUI::~CParameterPluginUI ( )
virtual

在文件 ParameterPluginUI.cpp31 行定义.

成员函数说明

◆ Accept()

int CParameterPluginUI::Accept ( )
overridevirtual

接受参数。如果需要,可先调用 CheckValidity

void CDlgSetFreeRDP::on_pbOk_clicked()
{
int nRet = 0;
if(!ui->wNet->CheckValidity(true)) {
ui->tabWidget->setCurrentIndex(0);
return;
}
if(!m_pProxyUI->CheckValidity(true)) {
ui->tabWidget->setCurrentWidget(m_pProxyUI);
return;
}
if(!m_pRecordUI->CheckValidity(true)) {
ui->tabWidget->setCurrentWidget(m_pRecordUI);
return;
}
m_pSettings->SetName(ui->leName->text());
// Server
m_pSettings->SetDomain(ui->leDomain->text());
nRet = ui->wNet->Accept();
if(nRet) return;
nRet = m_pProxyUI->Accept();
if(nRet) return;
nRet = m_pRecordUI->Accept();
if(nRet) return;
m_pSettings->SetOnlyView(ui->cbOnlyView->isChecked());
m_pSettings->SetClipboard(ui->cbClipboard->isChecked());
m_pSettings->SetShowServerName(ui->cbShowServerName->isChecked());
// Display
m_pSettings->SetUseMultimon(ui->cbAllMonitor->isChecked());
QString szSize = ui->cbDesktopSize->currentText();
int index = szSize.indexOf("×");
if(-1 < index)
{
UINT32 width = szSize.left(index).toInt();
UINT32 height = szSize.right(szSize.length() - index - 1).toInt();
m_pSettings->SetDesktopWidth(width);
m_pSettings->SetDesktopHeight(height);
}
m_pSettings->SetColorDepth(ui->cbColorDepth->currentData().toInt());
m_pSettings->SetReconnectInterval(ui->sbReconnect->value());
// Redirection
m_pSettings->SetRedirectionPrinter(ui->cbPrinter->isChecked());
m_pSettings->SetEnableLocalInputMethod(ui->cbEnableLocalInputMethod->isChecked());
if(HasAudioOutput()) {
CParameterFreeRDP::RedirecionSoundType tRdirectionSound
= CParameterFreeRDP::RedirecionSoundType::Disable;
if(ui->rbAudioDisable->isChecked())
tRdirectionSound = CParameterFreeRDP::RedirecionSoundType::Disable;
else if(ui->rbAudioLocal->isChecked())
tRdirectionSound = CParameterFreeRDP::RedirecionSoundType::Local;
else if(ui->rbAudioRemote->isChecked())
tRdirectionSound = CParameterFreeRDP::RedirecionSoundType::Remote;
m_pSettings->SetRedirectionSound(tRdirectionSound);
} else {
m_pSettings->SetRedirectionSound(
CParameterFreeRDP::RedirecionSoundType::Disable);
}
m_pSettings->SetRedirectionSoundParameters(ui->leRdpSnd->text());
if(HasAudioInput())
m_pSettings->SetRedirectionMicrophone(ui->cbAudin->isChecked());
else
m_pSettings->SetRedirectionMicrophone(false);
m_pSettings->SetRedirectionMicrophoneParameters(ui->leAudin->text());
QStringList lstDrives;
//获取选中的行,默认获取选中行的第一列数据(0),列的索引值和上面一样0、1、2、3......
QModelIndexList selected = ui->tvDrive->selectionModel()->selectedRows(0);
QList<QModelIndex>::iterator it;
QModelIndex modelIndex;
QString szPath;
for (it = selected.begin(); it != selected.end(); ++it)
{
modelIndex = *it;
szPath = m_pFileModel->filePath(modelIndex);
if(!szPath.isEmpty())
lstDrives.append(szPath);
}
m_pSettings->SetRedirectionDrives(lstDrives);
// Security
m_pSettings->SetNegotiateSecurityLayer(ui->cbSecurityEnable->isChecked());
uint security = 0;
if(ui->cbSecurityRDP->isChecked())
security |= CParameterFreeRDP::Security::RDP;
if(ui->cbSecurityTls->isChecked())
security |= CParameterFreeRDP::Security::TLS;
if(ui->cbSecurityNLA->isChecked())
security |= CParameterFreeRDP::Security::NLA;
if(ui->cbSecurityNlaExt->isChecked())
security |= CParameterFreeRDP::Security::NLA_Ext;
if(ui->cbSecurityRDSTLS->isChecked())
security |= CParameterFreeRDP::Security::RDSTLS;
if(ui->cbSecurityRDSAAD->isChecked())
security |= CParameterFreeRDP::Security::RDSAAD;
m_pSettings->SetSecurity((CParameterFreeRDP::Security)security);
// Tls version
if(ui->rbTls1_0->isChecked())
m_pSettings->SetTlsVersion(TLS1_VERSION);
else if(ui->rbTls1_1->isChecked())
m_pSettings->SetTlsVersion(TLS1_1_VERSION);
else if(ui->rbTls1_2->isChecked())
m_pSettings->SetTlsVersion(TLS1_2_VERSION);
else if(ui->rbTls1_3->isChecked())
m_pSettings->SetTlsVersion(TLS1_3_VERSION);
// Connect type
m_pSettings->SetConnectType(ui->cbConnectType->currentData().toUInt());
// Performance flags
UINT32 performanceFlags = 0;
if(!ui->cbDesktopBackground->isChecked())
performanceFlags |= PERF_DISABLE_WALLPAPER;
if(!ui->cbWindowDrag->isChecked())
performanceFlags |= PERF_DISABLE_FULLWINDOWDRAG;
if(!ui->cbMenuAnims->isChecked())
performanceFlags |= PERF_DISABLE_MENUANIMATIONS;
if(!ui->cbThemes->isChecked())
performanceFlags |= PERF_DISABLE_THEMING;
if(ui->cbFontSmoothing->isChecked())
performanceFlags |= PERF_ENABLE_FONT_SMOOTHING;
if(ui->cbDesktopCompositing->isChecked())
performanceFlags |= PERF_ENABLE_DESKTOP_COMPOSITION;
m_pSettings->SetPerformanceFlags(performanceFlags);
accept();
}
返回
成功返回 0 。其它值为失败。

实现了 CParameterUI.

在文件 ParameterPluginUI.cpp44 行定义.

◆ CheckValidity()

bool CParameterPluginUI::CheckValidity ( bool  validity)
overridevirtual

检查参数的有效性

参数
validity标志是否检查参数
  • true: 检查参数
  • false: 不检查参数

重载 CParameterUI .

在文件 ParameterPluginUI.cpp36 行定义.

◆ on_cbCaptureAllKeyboard_checkStateChanged

void CParameterPluginUI::on_cbCaptureAllKeyboard_checkStateChanged ( const Qt::CheckState &  arg1)
privateslot

在文件 ParameterPluginUI.cpp188 行定义.

◆ on_cbEnableViewPassword_clicked

void CParameterPluginUI::on_cbEnableViewPassword_clicked ( bool  checked)
slot

在文件 ParameterPluginUI.cpp80 行定义.

◆ on_cbSystemCredential_checkStateChanged

void CParameterPluginUI::on_cbSystemCredential_checkStateChanged ( const Qt::CheckState &  state)
privateslot

在文件 ParameterPluginUI.cpp161 行定义.

◆ on_pbDesktopShortcutsDisable_clicked

void CParameterPluginUI::on_pbDesktopShortcutsDisable_clicked ( )
privateslot

在文件 ParameterPluginUI.cpp166 行定义.

◆ on_pbDesktopShortcutsRestore_clicked

void CParameterPluginUI::on_pbDesktopShortcutsRestore_clicked ( )
privateslot

在文件 ParameterPluginUI.cpp177 行定义.

◆ on_pbEncryptKey_clicked

void CParameterPluginUI::on_pbEncryptKey_clicked ( )
slot

在文件 ParameterPluginUI.cpp85 行定义.

◆ SetParameter()

int CParameterPluginUI::SetParameter ( CParameter pParameter)
overridevirtual

[override functions]

设置参数,并初始化界面

参数
pParameter相关的参数。在重载函数中转换成相应的类型。

实现了 CParameterUI.

在文件 ParameterPluginUI.cpp102 行定义.

类成员变量说明

◆ m_pPara

CParameterPlugin* CParameterPluginUI::m_pPara
private

在文件 ParameterPluginUI.h25 行定义.

◆ ui

Ui::CParameterPluginUI* CParameterPluginUI::ui
private

在文件 ParameterPluginUI.h24 行定义.


该类的文档由以下文件生成: