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

Method getPartfileStatus

src/PartFile.cpp:4254–4294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4252}
4253
4254wxString CPartFile::getPartfileStatus() const
4255{
4256
4257 wxString mybuffer;
4258
4259 if ((status == PS_HASHING) || (status == PS_WAITING_FOR_HASH)) {
4260 mybuffer=_("Hashing");
4261 } else if (status == PS_ALLOCATING) {
4262 mybuffer = _("Allocating");
4263 } else {
4264 switch (GetStatus()) {
4265 case PS_COMPLETING:
4266 mybuffer=_("Completing");
4267 break;
4268 case PS_COMPLETE:
4269 mybuffer=_("Complete");
4270 break;
4271 case PS_PAUSED:
4272 mybuffer=_("Paused");
4273 break;
4274 case PS_ERROR:
4275 mybuffer=_("Erroneous");
4276 break;
4277 case PS_INSUFFICIENT:
4278 mybuffer = _("Insufficient disk space");
4279 break;
4280 default:
4281 if (GetTransferingSrcCount()>0) {
4282 mybuffer=_("Downloading");
4283 } else {
4284 mybuffer=_("Waiting");
4285 }
4286 break;
4287 }
4288 if (m_stopped && (GetStatus()!=PS_COMPLETE)) {
4289 mybuffer=_("Stopped");
4290 }
4291 }
4292
4293 return mybuffer;
4294}
4295
4296int CPartFile::getPartfileStatusRang() const
4297{

Callers 3

UpdateDataMethod · 0.80
ProcessLocalRequestsMethod · 0.80
DrawFileItemMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected