mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user