| 685 | } |
| 686 | |
| 687 | QString NetworkToQString(Network net) |
| 688 | { |
| 689 | switch (net) { |
| 690 | case NET_UNROUTABLE: return QObject::tr("Unroutable"); |
| 691 | case NET_IPV4: return "IPv4"; |
| 692 | case NET_IPV6: return "IPv6"; |
| 693 | case NET_ONION: return "Onion"; |
| 694 | case NET_I2P: return "I2P"; |
| 695 | case NET_CJDNS: return "CJDNS"; |
| 696 | case NET_INTERNAL: return QObject::tr("Internal"); |
| 697 | case NET_MAX: assert(false); |
| 698 | } // no default case, so the compiler can warn about missing cases |
| 699 | assert(false); |
| 700 | } |
| 701 | |
| 702 | QString ConnectionTypeToQString(ConnectionType conn_type, bool prepend_direction) |
| 703 | { |
no outgoing calls
no test coverage detected