Implement BencodeResumeDataStorage class

Implement ResumeDataStorage class as base for all "resume data" storages.
Implement BencodeResumeDataStorage class and put all existing logic of
"resume data" loading/saving there.
This commit is contained in:
Vladimir Golovnev (Glassez)
2021-03-22 10:26:43 +03:00
parent 9b31496b22
commit 35dedd3d83
10 changed files with 458 additions and 375 deletions

View File

@@ -12,6 +12,7 @@ add_library(qbt_base STATIC
bittorrent/filesearcher.h
bittorrent/filterparserthread.h
bittorrent/infohash.h
bittorrent/loadtorrentparams.h
bittorrent/ltqhash.h
bittorrent/ltunderlyingtype.h
bittorrent/magneturi.h
@@ -20,7 +21,7 @@ add_library(qbt_base STATIC
bittorrent/peeraddress.h
bittorrent/peerinfo.h
bittorrent/portforwarderimpl.h
bittorrent/resumedatasavingmanager.h
bittorrent/resumedatastorage.h
bittorrent/session.h
bittorrent/sessionstatus.h
bittorrent/speedmonitor.h
@@ -104,7 +105,7 @@ add_library(qbt_base STATIC
bittorrent/peeraddress.cpp
bittorrent/peerinfo.cpp
bittorrent/portforwarderimpl.cpp
bittorrent/resumedatasavingmanager.cpp
bittorrent/resumedatastorage.cpp
bittorrent/session.cpp
bittorrent/speedmonitor.cpp
bittorrent/statistics.cpp