Redesign torrent startup handling

This commit is contained in:
Vladimir Golovnev (Glassez)
2020-01-03 18:57:41 +03:00
parent b0844800b8
commit f2285e1b63
10 changed files with 350 additions and 139 deletions

View File

@@ -443,21 +443,9 @@ namespace BitTorrent
bool m_hasMissingFiles;
bool m_hasRootFolder;
bool m_needsToSetFirstLastPiecePriority;
bool m_needsToStartForced;
QHash<QString, TrackerInfo> m_trackerInfos;
enum StartupState
{
Preparing, // torrent is preparing to start regular processing
Starting, // torrent is prepared and starting to perform regular processing
Started // torrent is performing regular processing
};
StartupState m_startupState = Preparing;
// Handle torrent state when it starts performing some service job
// being in Paused state so it might be unpaused internally and then paused again
bool m_pauseWhenReady;
bool m_unchecked = false;
};
}