Added statusMessages (plural) as signal. This makes it easier

to send either single or multiple messages as required.

Along with the changes fixed some places where not all status
messages had been sent.

MainWindow connected with both signals (statusMessage, statusMessages)

Recreated DBus XML file
This commit is contained in:
Klaus Basan
2014-01-17 18:42:34 +01:00
parent 97dda0b499
commit 72b7a7ab95
5 changed files with 17 additions and 6 deletions

View File

@@ -246,11 +246,11 @@ namespace BlackCore
}
// send as message
QString m("connection status changed ");
m.append(this->m_network->connectionStatusToString(from)).append(" ").append(this->m_network->connectionStatusToString(to));
QString m("connection status changed from %1 to %2");
m = m.arg(INetwork::connectionStatusToString(from), INetwork::connectionStatusToString(to));
msgs.push_back(CStatusMessage(CStatusMessage::TypeTrafficNetwork,
to == INetwork::DisconnectedError ? CStatusMessage::SeverityError : CStatusMessage::SeverityInfo, m));
emit this->statusMessage(msgs[0]);
emit this->statusMessages(msgs);
// send as own signal
emit this->connectionStatusChanged(from, to);