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