/* */ #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 { protected: 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(); bool operator==(const RequestGroupEntry& entry) const { return this == &entry; } }; typedef SharedHandle RequestGroupEntryHandle; } // namespace aria2 #endif // _D_REQUEST_GROUP_ENTRY_H_