mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-31 10:19:24 -04:00
convert RSDHT_PEERDHT_ to enum class
This commit is contained in:
parent
1b1b09217a
commit
8d0a352b53
6 changed files with 36 additions and 33 deletions
|
@ -381,24 +381,24 @@ void DhtWindow::updateNetPeers()
|
|||
switch(status.mDhtState)
|
||||
{
|
||||
default:
|
||||
case RSDHT_PEERDHT_NOT_ACTIVE:
|
||||
case RsDhtPeerDht::NOT_ACTIVE:
|
||||
dhtstate = tr("Not Active (Maybe Connected!)");
|
||||
break;
|
||||
case RSDHT_PEERDHT_SEARCHING:
|
||||
case RsDhtPeerDht::SEARCHING:
|
||||
dhtstate = tr("Searching");
|
||||
break;
|
||||
case RSDHT_PEERDHT_FAILURE:
|
||||
case RsDhtPeerDht::FAILURE:
|
||||
dhtstate = tr("Failed");
|
||||
break;
|
||||
case RSDHT_PEERDHT_OFFLINE:
|
||||
case RsDhtPeerDht::OFFLINE:
|
||||
dhtstate = tr("offline");
|
||||
++nOfflinePeers;
|
||||
break;
|
||||
case RSDHT_PEERDHT_UNREACHABLE:
|
||||
case RsDhtPeerDht::UNREACHABLE:
|
||||
dhtstate = tr("Unreachable");
|
||||
++nUnreachablePeers;
|
||||
break;
|
||||
case RSDHT_PEERDHT_ONLINE:
|
||||
case RsDhtPeerDht::ONLINE:
|
||||
dhtstate = tr("ONLINE");
|
||||
++nOnlinePeers;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue