MCPcopy Create free account
hub / github.com/amule-project/amule / PriorityToStr

Function PriorityToStr

src/DataToText.cpp:31–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29#include <protocol/ed2k/ClientSoftware.h>
30
31wxString PriorityToStr( int priority, bool isAuto )
32{
33 if ( isAuto ) {
34 switch ( priority ) {
35 case PR_LOW: return _("Auto [Lo]");
36 case PR_NORMAL: return _("Auto [No]");
37 case PR_HIGH: return _("Auto [Hi]");
38 }
39 } else {
40 switch ( priority ) {
41 case PR_VERY_LOW: return _("Very low");
42 case PR_LOW: return _("Low");
43 case PR_NORMAL: return _("Normal");
44 case PR_HIGH: return _("High");
45 case PR_VERYHIGH: return _("Very High");
46 case PR_POWERSHARE: return _("Release");
47 }
48 }
49
50 wxFAIL;
51
52 return _("Unknown");
53}
54
55
56wxString DownloadStateToStr( int state, bool queueFull )

Callers 3

Process_Answer_v2Method · 0.85
OnDrawItemMethod · 0.85
DrawFileItemMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected