mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-12 05:02:31 +00:00
Renamed engine to core.
Added focus to WindowDownloadList. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@249 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
#ifndef RTORRENT_CORE_CURL_STACK_H
|
||||
#define RTORRENT_CORE_CURL_STACK_H
|
||||
|
||||
#include <list>
|
||||
|
||||
namespace core {
|
||||
|
||||
class CurlStack {
|
||||
public:
|
||||
friend class CurlGet;
|
||||
|
||||
typedef std::list<CurlGet*> CurlGetList;
|
||||
|
||||
CurlStack();
|
||||
~CurlStack();
|
||||
|
||||
int get_size() const { return m_size; }
|
||||
bool is_busy() const { return !m_getList.empty(); }
|
||||
|
||||
void perform();
|
||||
|
||||
// TODO: Set fd_set's only once?
|
||||
void fdset(fd_set* readfds, fd_set* writefds, fd_set* exceptfds, int* maxFd);
|
||||
|
||||
static void global_init();
|
||||
static void global_cleanup();
|
||||
|
||||
protected:
|
||||
void add_get(CurlGet* get);
|
||||
void remove_get(CurlGet* get);
|
||||
|
||||
private:
|
||||
void* m_handle;
|
||||
|
||||
int m_size;
|
||||
CurlGetList m_getList;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user