Files
rtorrent/src/core/http_queue.h
T
rakshasa 8ec38be77e HttpQueue finishing touches.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@266 e378c898-3ddf-0310-93e7-cc216c733640
2005-02-10 20:00:00 +00:00

48 lines
957 B
C++

#ifndef RTORRENT_CORE_HTTP_QUEUE_H
#define RTORRENT_CORE_HTTP_QUEUE_H
#include <list>
#include <iosfwd>
#include <sigc++/slot.h>
namespace torrent {
class Http;
}
namespace core {
class HttpQueue : private std::list<torrent::Http*> {
public:
typedef std::list<torrent::Http*> Base;
typedef sigc::slot0<torrent::Http*> SlotFactory;
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;
using Base::empty;
using Base::size;
// Note that any slots connected to the torrent::Http signals must be
// pushed in front of the erase slot added by HttpQueue::insert.
iterator insert(const std::string& url);
void erase(iterator itr);
void clear();
void slot_factory(SlotFactory s) { m_slotFactory = s; }
private:
SlotFactory m_slotFactory;
};
}
#endif