mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-24 01:08:06 -06:00
Improve tracker entries handling
PR #19496. * Add torrent entry status to represent tracker error * Add torrent entry status to represent unreachable endpoint * Display tracker entry next/min announce time * Reset tracker entries when torrent is stopped
This commit is contained in:
committed by
GitHub
parent
2f94c92df9
commit
7cd2445a49
@@ -60,6 +60,12 @@ namespace Utils::Misc
|
||||
// YobiByte, // 1024^8
|
||||
};
|
||||
|
||||
enum class TimeResolution
|
||||
{
|
||||
Seconds,
|
||||
Minutes
|
||||
};
|
||||
|
||||
QString parseHtmlLinks(const QString &rawText);
|
||||
|
||||
void shutdownComputer(const ShutdownDialogAction &action);
|
||||
@@ -82,7 +88,7 @@ namespace Utils::Misc
|
||||
|
||||
// Take a number of seconds and return a user-friendly
|
||||
// time duration like "1d 2h 10m".
|
||||
QString userFriendlyDuration(qlonglong seconds, qlonglong maxCap = -1);
|
||||
QString userFriendlyDuration(qlonglong seconds, qlonglong maxCap = -1, TimeResolution resolution = TimeResolution::Minutes);
|
||||
QString getUserIDString();
|
||||
|
||||
QString languageToLocalizedString(const QString &localeStr);
|
||||
|
||||
Reference in New Issue
Block a user