* Unlink the tied file when a torrent is erased.

* Remove torrents that are already tied from the expanded paths.

* Move the loop counter to Control.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@618 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-01-09 18:54:57 +00:00
parent f32c15878a
commit 310589c4bf
8 changed files with 49 additions and 24 deletions
+6
View File
@@ -37,6 +37,7 @@
#ifndef RTORRENT_CONTROL_H
#define RTORRENT_CONTROL_H
#include <inttypes.h>
#include <torrent/torrent.h>
#include "globals.h"
@@ -83,6 +84,9 @@ public:
CommandScheduler* command_scheduler() { return m_commandScheduler; }
OptionHandler* option_handler() { return m_optionHandler; }
uint64_t tick() const { return m_tick; }
void inc_tick() { m_tick++; }
private:
Control(const Control&);
void operator = (const Control&);
@@ -98,6 +102,8 @@ private:
CommandScheduler* m_commandScheduler;
OptionHandler* m_optionHandler;
uint64_t m_tick;
rak::priority_item m_taskShutdown;
};