Files
rtorrent/src/engine/download_list.h
T
rakshasa 3357b5caab rtorrent: Polling http and torrent. Improved the download list.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@247 e378c898-3ddf-0310-93e7-cc216c733640
2005-01-30 17:14:53 +00:00

34 lines
598 B
C++

#ifndef RTORRENT_ENGINE_DOWNLOAD_LIST_H
#define RTORRENT_ENGINE_DOWNLOAD_LIST_H
#include <iosfwd>
#include "download.h"
namespace engine {
class DownloadList : private std::list<Download> {
public:
typedef std::list<Download> Base;
using Base::iterator;
using Base::const_iterator;
using Base::reverse_iterator;
using Base::const_reverse_iterator;
using Base::begin;
using Base::end;
using Base::rbegin;
using Base::rend;
iterator create(std::istream& str);
void erase(iterator itr);
private:
void receive_hash_done(const std::string& str);
};
}
#endif