ad missing code for dyndns details

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2767 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
joss17 2010-04-23 18:50:32 +00:00
parent d027af3324
commit c3b4b576ad
3 changed files with 13 additions and 0 deletions

View File

@ -139,6 +139,9 @@ void QuickStartWizard::on_pushButtonConnectionNext_clicked()
}
rsicontrol->ConfigSetDataRates( ui.doubleSpinBoxDownloadSpeed->value(), ui.doubleSpinBoxUploadSpeed->value() );
if (ui.DynDNS->text().toStdString() != detail.dyndns)
rsPeers->setDynDNS (rsPeers->getOwnId(), ui.DynDNS->text().toStdString());
ui.pagesWizard->setCurrentIndex(2);
}

View File

@ -136,6 +136,10 @@ ConnectFriendWizard::accept()
std::cerr << "ConnectFriendWizard::accept() : setting ip local address." << std::endl;
rsPeers->setLocalAddress(ssl_Id, this->field("local_friend_ip").toString().toStdString(), this->field("local_friend_port").toInt());
}
if (!this->field("dyndns").isNull()) {
std::cerr << "ConnectFriendWizard::accept() : setting DynDNS." << std::endl;
rsPeers->setDynDNS(ssl_Id, this->field("dyndns").toString().toStdString());
}
if (!this->field(LOCATION_FIELD_CONNECT_FRIEND_WIZARD).isNull()) {
std::cerr << "ConnectFriendWizard::accept() : setting peerLocation." << std::endl;
rsPeers->setLocation(ssl_Id, this->field(LOCATION_FIELD_CONNECT_FRIEND_WIZARD).toString().toStdString());
@ -396,6 +400,7 @@ int TextPage::nextId() const {
wizard()->setField("ext_friend_port", QString::number(pd.extPort));
wizard()->setField("local_friend_ip", QString::fromStdString(pd.localAddr));
wizard()->setField("local_friend_port", QString::number(pd.localPort));
wizard()->setField("dyndns", QString::fromStdString(pd.dyndns));
return ConnectFriendWizard::Page_Conclusion ;
}
@ -828,6 +833,10 @@ ConclusionPage::ConclusionPage(QWidget *parent) : QWizardPage(parent) {
local_friend_port = new QLineEdit(this);
local_friend_port->setVisible(false);
registerField("local_friend_port",local_friend_port);
dyndns = new QLineEdit(this);
dyndns->setVisible(false);
registerField("dyndns",dyndns);
}
//============================================================================

View File

@ -236,6 +236,7 @@ private:
QLineEdit* ext_friend_port;
QLineEdit* local_friend_ip;
QLineEdit* local_friend_port;
QLineEdit* dyndns;
};
//============================================================================