mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-29 04:07:49 +02:00
qt: crypto type added
This commit is contained in:
parent
b0c690d836
commit
f6ff232106
8 changed files with 146 additions and 24 deletions
|
@ -65,6 +65,10 @@ private:
|
|||
QLabel * inPortLabel;
|
||||
QLineEdit * inPortLineEdit;
|
||||
|
||||
//cryptoType
|
||||
QLabel * cryptoTypeLabel;
|
||||
QLineEdit * cryptoTypeLineEdit;
|
||||
|
||||
//accessList
|
||||
QLabel * accessListLabel;
|
||||
QLineEdit * accessListLineEdit;
|
||||
|
@ -101,6 +105,7 @@ private:
|
|||
portLabel->setText(QApplication::translate("srvTunForm", "Port:", 0));
|
||||
keysLabel->setText(QApplication::translate("srvTunForm", "Keys:", 0));
|
||||
inPortLabel->setText(QApplication::translate("srvTunForm", "InPort:", 0));
|
||||
cryptoTypeLabel->setText(QApplication::translate("srvTunForm", "Crypto type:", 0));
|
||||
accessListLabel->setText(QApplication::translate("srvTunForm", "Access list:", 0));
|
||||
hostOverrideLabel->setText(QApplication::translate("srvTunForm", "Host override:", 0));
|
||||
webIRCPassLabel->setText(QApplication::translate("srvTunForm", "WebIRC password:", 0));
|
||||
|
@ -129,6 +134,14 @@ protected:
|
|||
}
|
||||
stc->setport(portInt);
|
||||
|
||||
auto cryptoTypeStr=cryptoTypeLineEdit->text();
|
||||
int cryptoTypeInt=cryptoTypeStr.toInt(&ok);
|
||||
if(!ok){
|
||||
highlightWrongInput(QApplication::tr("Bad crypto type, must be int.")+" "+cannotSaveSettings,cryptoTypeLineEdit);
|
||||
return false;
|
||||
}
|
||||
stc->setcryptoType(cryptoTypeInt);
|
||||
|
||||
stc->setkeys(keysLineEdit->text().toStdString());
|
||||
|
||||
auto str=inPortLineEdit->text();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue