- Rewrited torrent resume code to make it cleaner and more generic

* magnet URI support should be easy to implement now
Warning: Since a lot of code was rewrited, some bugs may have been introduced
This commit is contained in:
Christophe Dumez 2009-08-16 03:09:20 +00:00
commit 2742a54d6e
11 changed files with 1879 additions and 1656 deletions

View file

@ -108,6 +108,8 @@ class QTorrentHandle {
bool is_seed() const;
bool is_auto_managed() const;
int active_time() const;
std::vector<int> file_priorities() const;
bool is_sequential_download() const;
//
// Setters
@ -122,6 +124,7 @@ class QTorrentHandle {
void set_max_uploads(int val);
void set_max_connections(int val);
void prioritize_files(std::vector<int> v);
void file_priority(int index, int priority) const;
void set_ratio(float ratio) const;
void replace_trackers(std::vector<announce_entry> const&) const;
void force_reannounce();