mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 18:35:35 +08:00
Ref T150, utility functions in URL list
* renamed to withAppendedPath * findByHost * addFailed utility functions
This commit is contained in:
committed by
Mathew Sutcliffe
parent
fe01a9d4aa
commit
afbf3f05c8
@@ -53,7 +53,10 @@ namespace BlackMisc
|
||||
CUrl getRandomWithout(const CUrlList &exclude) const;
|
||||
|
||||
//! Append path to all URLs
|
||||
CUrlList appendPath(const QString &path) const;
|
||||
CUrlList withAppendedPath(const QString &path) const;
|
||||
|
||||
//! Find by host
|
||||
CUrlList findByHost(const QString &host, Qt::CaseSensitivity cs = Qt::CaseInsensitive) const;
|
||||
|
||||
//! To formatted String
|
||||
QString convertToQString(const QString &separator, bool i18n = false) const;
|
||||
@@ -90,6 +93,15 @@ namespace BlackMisc
|
||||
//! Failed URL
|
||||
bool addFailedUrl(const CUrl &failedUrl);
|
||||
|
||||
//! Failed URLs
|
||||
bool addFailedUrls(const CUrlList &failedUrls);
|
||||
|
||||
//! Failed host
|
||||
bool addFailedHost(const CUrl &failedUrl);
|
||||
|
||||
//! Failed host
|
||||
bool addFailedHost(const QString &host, Qt::CaseSensitivity cs = Qt::CaseInsensitive);
|
||||
|
||||
//! More URLs to try
|
||||
bool hasMoreUrlsToTry() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user