MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / accept

Method accept

Plugins/FtpServer/DlgSettings.cpp:101–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void CDlgSettings::accept()
102{
103 ui->wNet->Accept();
104
105 m_Para->SetRoot(ui->leRoot->text());
106 m_Para->SetAnonymousLogin(ui->cbAnonmousLogin->isChecked());
107 m_Para->SetReadOnly(ui->cbReadOnly->isChecked());
108 m_Para->SetConnectCount(ui->sbConnectCount->value());
109
110 m_Para->SetListenAll(ui->cbListenAll->isChecked());
111 QStringList lstInterface;
112 for (int row = 0; row < m_ModelNetWorkInterface.rowCount(); row++) {
113 auto item = m_ModelNetWorkInterface.item(row);
114 if(item->checkState() == Qt::Checked) {
115 lstInterface << item->text();
116 }
117 }
118 m_Para->SetListen(lstInterface);
119
120 QStringList lstBlack;
121 for (int i = 0; i < m_ModelBlack.rowCount(); ++i) {
122 lstBlack << m_ModelBlack.item(i)->text();
123 }
124 m_Para->SetBlacklist(lstBlack);
125 QStringList lstWhite;
126 for (int i = 0; i < m_ModelWhite.rowCount(); ++i) {
127 lstWhite << m_ModelWhite.item(i)->text();
128 }
129 m_Para->SetWhitelist(lstWhite);
130
131 QDialog::accept();
132}
133
134void CDlgSettings::on_cbAnonmousLogin_checkStateChanged(const Qt::CheckState &arg1)
135{

Callers 1

eventFilterMethod · 0.45

Calls 10

SetRootMethod · 0.80
SetAnonymousLoginMethod · 0.80
SetReadOnlyMethod · 0.80
SetConnectCountMethod · 0.80
SetListenAllMethod · 0.80
SetListenMethod · 0.80
SetBlacklistMethod · 0.80
SetWhitelistMethod · 0.80
AcceptMethod · 0.45
rowCountMethod · 0.45

Tested by

no test coverage detected