Add configuration age to listnetworks results and GUI.

This commit is contained in:
Adam Ierymenko 2013-11-21 15:11:22 -05:00
parent 31d718c4a4
commit 4296db2358
9 changed files with 130 additions and 57 deletions

View file

@ -28,9 +28,12 @@ Network::~Network()
delete ui;
}
void Network::setStatus(const std::string &status)
void Network::setStatus(const std::string &status,const std::string &age)
{
ui->statusLabel->setText(QString(status.c_str()));
if (status == "OK")
ui->ageLabel->setText(QString("(configuration is ") + age.c_str() + " seconds old)");
else ui->ageLabel->setText(QString());
}
void Network::setNetworkName(const std::string &name)