CUpDownClient* CUploadQueue::KickAllLowID(){
POSITION pos = waitinglist.GetHeadPosition();
while(pos != NULL){
CUpDownClient* cur_client = waitinglist.GetNext(pos);
if(cur_client->HasLowID())
{
theApp.uploadqueue->RemoveFromWaitingQueue(cur_client);
}
}
return NULL;
}
UploadQueue.h
public:
CUpDownClient* CUploadQueue::KickAllLowID();
QueueListCtrl.cpp
c
ase MP_KICKLOWID:
{
AddModLogLine(LOG_ORANGE,_T("[Kick all] All LowID Clients from Queue removed..."));
theApp.uploadqueue->KickAllLowID();
theApp.emuledlg->transferwnd->ShowQueueCount(theApp.uploadqueue->GetWaitingUserCount());
break;
}
MenuCmds.h
#define MP_KICKLOWID 15031
0 comments:
发表评论