/* */ #ifndef D_REQUEST_GROUP_ENTRY_H #define D_REQUEST_GROUP_ENTRY_H #include "common.h" #include "SharedHandle.h" namespace aria2 { class RequestGroup; class Command; class RequestGroupEntry { private: RequestGroup* requestGroup_; Command* nextCommand_; public: RequestGroupEntry(RequestGroup* requestGroup, Command* nextCommand = 0); virtual ~RequestGroupEntry(); RequestGroup* getRequestGroup() const { return requestGroup_; } Command* getNextCommand() const { return nextCommand_; } Command* popNextCommand(); void pushNextCommand(Command* nextCommand); bool operator==(const RequestGroupEntry& entry) const { return this == &entry; } }; typedef SharedHandle RequestGroupEntryHandle; } // namespace aria2 #endif // D_REQUEST_GROUP_ENTRY_H