Ref T203, utility functions for URL

This commit is contained in:
Klaus Basan
2017-12-09 19:44:52 +01:00
parent 16a4731389
commit 6445444fbf
4 changed files with 101 additions and 16 deletions

View File

@@ -87,6 +87,9 @@ namespace BlackMisc
//! All failed URLs
const CUrlList &getFailedUrls() const { return m_failedUrls; }
//! Size of failed URLs
int getFailedUrlsSize() const { return m_failedUrls.size(); }
//! Get without the failed URLs
CUrlList getWithoutFailed() const;
@@ -105,6 +108,9 @@ namespace BlackMisc
//! More URLs to try
bool hasMoreUrlsToTry() const;
//! Number of URLs which can be used for a retry
int numberOfStillValidUrls() const;
//! Next utl from this list
CUrl obtainNextUrl(bool randomStart = false);