|
|
|
@ -764,6 +764,19 @@ QString NetworkToQString(Network net)
|
|
|
|
|
assert(false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QString ConnectionTypeToQString(ConnectionType conn_type)
|
|
|
|
|
{
|
|
|
|
|
switch (conn_type) {
|
|
|
|
|
case ConnectionType::INBOUND: return QObject::tr("Inbound");
|
|
|
|
|
case ConnectionType::OUTBOUND_FULL_RELAY: return QObject::tr("Outbound Full Relay");
|
|
|
|
|
case ConnectionType::BLOCK_RELAY: return QObject::tr("Outbound Block Relay");
|
|
|
|
|
case ConnectionType::MANUAL: return QObject::tr("Outbound Manual");
|
|
|
|
|
case ConnectionType::FEELER: return QObject::tr("Outbound Feeler");
|
|
|
|
|
case ConnectionType::ADDR_FETCH: return QObject::tr("Outbound Address Fetch");
|
|
|
|
|
} // no default case, so the compiler can warn about missing cases
|
|
|
|
|
assert(false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
QString formatDurationStr(int secs)
|
|
|
|
|
{
|
|
|
|
|
QStringList strList;
|
|
|
|
|