MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / empty

Method empty

Telegram/SourceFiles/data/data_download_manager.cpp:135–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133DownloadManager::~DownloadManager() = default;
134
135bool DownloadManager::empty() const {
136 for (const auto &[session, data] : _sessions) {
137 if (!data.downloading.empty() || !data.downloaded.empty()) {
138 return false;
139 }
140 }
141 return true;
142}
143
144void DownloadManager::trackSession(not_null<Main::Session*> session) {
145 auto &data = _sessions.emplace(session, SessionData()).first->second;

Callers 8

addLoadingMethod · 0.45
addLoadedMethod · 0.45
deleteAllMethod · 0.45
loadingStopMethod · 0.45
clearLoadingMethod · 0.45
removeMethod · 0.45
untrackMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected