/* */ #include "RequestGroupEntry.h" #include "RequestGroup.h" #include "Command.h" namespace aria2 { RequestGroupEntry::RequestGroupEntry(RequestGroup* requestGroup, Command* nextCommand): _requestGroup(requestGroup), _nextCommand(nextCommand) { _requestGroup->increaseNumCommand(); } RequestGroupEntry::~RequestGroupEntry() { _requestGroup->decreaseNumCommand(); delete _nextCommand; } Command* RequestGroupEntry::popNextCommand() { Command* temp = _nextCommand; _nextCommand = 0; return temp; } } // namespace aria2