Improved the http progress display, includes truncated names, download

progress and 10 second delay on hiding.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@286 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-02-17 21:20:18 +00:00
parent f9975ae9f2
commit 78d3d78ef3
14 changed files with 254 additions and 29 deletions
+13 -9
View File
@@ -3,18 +3,17 @@
#include <list>
#include <iosfwd>
#include <sigc++/slot.h>
namespace torrent {
class Http;
}
#include <sigc++/signal.h>
namespace core {
class HttpQueue : private std::list<torrent::Http*> {
class CurlGet;
class HttpQueue : private std::list<CurlGet*> {
public:
typedef std::list<torrent::Http*> Base;
typedef sigc::slot0<torrent::Http*> SlotFactory;
typedef std::list<CurlGet*> Base;
typedef sigc::signal1<void, CurlGet*> SignalHttp;
typedef sigc::slot0<CurlGet*> SlotFactory;
using Base::iterator;
using Base::const_iterator;
@@ -29,7 +28,7 @@ public:
using Base::empty;
using Base::size;
// Note that any slots connected to the torrent::Http signals must be
// Note that any slots connected to the CurlGet signals must be
// pushed in front of the erase slot added by HttpQueue::insert.
iterator insert(const std::string& url);
void erase(iterator itr);
@@ -38,8 +37,13 @@ public:
void slot_factory(SlotFactory s) { m_slotFactory = s; }
SignalHttp& signal_insert() { return m_signalInsert; }
SignalHttp& signal_erase() { return m_signalErase; }
private:
SlotFactory m_slotFactory;
SignalHttp m_signalInsert;
SignalHttp m_signalErase;
};
}