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

Method getPartfileStatusRang

src/PartFile.cpp:4296–4320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4294}
4295
4296int CPartFile::getPartfileStatusRang() const
4297{
4298
4299 int tempstatus=0;
4300 if (GetTransferingSrcCount()==0) tempstatus=1;
4301 switch (GetStatus()) {
4302 case PS_HASHING:
4303 case PS_WAITING_FOR_HASH:
4304 tempstatus=3;
4305 break;
4306 case PS_COMPLETING:
4307 tempstatus=4;
4308 break;
4309 case PS_COMPLETE:
4310 tempstatus=5;
4311 break;
4312 case PS_PAUSED:
4313 tempstatus=2;
4314 break;
4315 case PS_ERROR:
4316 tempstatus=6;
4317 break;
4318 }
4319 return tempstatus;
4320}
4321
4322
4323wxString CPartFile::GetFeedback() const

Callers 1

CompareMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected