| 54 | |
| 55 | |
| 56 | wxString DownloadStateToStr( int state, bool queueFull ) |
| 57 | { |
| 58 | switch ( state ) { |
| 59 | case DS_CONNECTING: return _("Connecting"); |
| 60 | case DS_CONNECTED: return _("Asking"); |
| 61 | case DS_WAITCALLBACK: return _("Connecting via server"); |
| 62 | case DS_ONQUEUE: return ( queueFull ? _("Queue Full") : _("On Queue") ); |
| 63 | case DS_DOWNLOADING: return _("Downloading"); |
| 64 | case DS_REQHASHSET: return _("Receiving hashset"); |
| 65 | case DS_NONEEDEDPARTS: return _("No needed parts"); |
| 66 | case DS_LOWTOLOWIP: return _("Cannot connect LowID to LowID"); |
| 67 | case DS_TOOMANYCONNS: return _("Too many connections"); |
| 68 | case DS_NONE: return _("Unknown"); |
| 69 | case DS_WAITCALLBACKKAD: return _("Connecting via Kad"); |
| 70 | case DS_TOOMANYCONNSKAD: return _("Too many Kad connections"); |
| 71 | case DS_BANNED: return _("Banned"); |
| 72 | case DS_ERROR: return _("Connection Error"); |
| 73 | case DS_REMOTEQUEUEFULL: return _("Remote Queue Full"); |
| 74 | } |
| 75 | |
| 76 | wxFAIL; |
| 77 | |
| 78 | return _("Unknown"); |
| 79 | } |
| 80 | |
| 81 | |
| 82 | const wxString GetSoftName(unsigned int software_ident) |