* Make DownloadStore::save(...) validate the new file by loading the

bencoded data.

* Make it safe to remove torrents that are selected.

* Delete the rtorrent and libtorrent sections when loading non-session
torrents.

* Added ^O to change a torrent's root dir, ^P to set a variable.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@628 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-01-27 20:16:52 +00:00
parent c89ae513ef
commit 6f44f8f920
15 changed files with 203 additions and 150 deletions
+6 -2
View File
@@ -91,8 +91,11 @@ class VariableBencode : public Variable {
public:
typedef torrent::Bencode::Type Type;
VariableBencode(torrent::Bencode* b, const std::string& key, Type t = torrent::Bencode::TYPE_NONE) :
m_bencode(b), m_key(key), m_type(t) {}
VariableBencode(torrent::Bencode* b,
const std::string& root,
const std::string& key,
Type t = torrent::Bencode::TYPE_NONE) :
m_bencode(b), m_root(root), m_key(key), m_type(t) {}
virtual ~VariableBencode();
virtual const torrent::Bencode& get();
@@ -100,6 +103,7 @@ public:
private:
torrent::Bencode* m_bencode;
std::string m_root;
std::string m_key;
Type m_type;
};