mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-21 00:26:16 +00:00
Session saving of resume data is added to a pre-queue.
This commit is contained in:
@@ -11,7 +11,7 @@ class Download;
|
||||
}
|
||||
|
||||
namespace utils {
|
||||
class Directory;
|
||||
class Directory;
|
||||
}
|
||||
|
||||
namespace session {
|
||||
@@ -22,16 +22,27 @@ public:
|
||||
|
||||
core::Download* download() const { return m_download; }
|
||||
|
||||
void build_streams(bool skip_static);
|
||||
std::string build_path(const std::string& session_path);
|
||||
|
||||
auto torrent_stream() { return std::move(m_torrent_stream); }
|
||||
auto rtorrent_stream() { return std::move(m_rtorrent_stream); }
|
||||
auto libtorrent_stream() { return std::move(m_libtorrent_stream); }
|
||||
void build_full_streams() { build_streams(false); }
|
||||
void build_resume_streams() { build_streams(true); }
|
||||
|
||||
void unlink_files(const std::string& session_path);
|
||||
|
||||
auto torrent_stream() { return std::move(m_torrent_stream); }
|
||||
auto rtorrent_stream() { return std::move(m_rtorrent_stream); }
|
||||
auto libtorrent_stream() { return std::move(m_libtorrent_stream); }
|
||||
|
||||
static void save_and_move_streams(const std::string& path, bool use_fsyncdisk,
|
||||
const std::stringstream& torrent_stream,
|
||||
const std::stringstream& rtorrent_stream,
|
||||
const std::stringstream& libtorrent_stream);
|
||||
|
||||
static utils::Directory get_formated_entries(const std::string& session_path);
|
||||
|
||||
private:
|
||||
void build_streams(bool skip_static);
|
||||
|
||||
core::Download* m_download;
|
||||
|
||||
std::unique_ptr<std::stringstream> m_torrent_stream;
|
||||
|
||||
Reference in New Issue
Block a user