refs #485 URL/URL list

* added constructor for CUrlList
* added registration of metadata of fail over class
* default port support for getPort
This commit is contained in:
Klaus Basan
2016-02-20 00:03:38 +01:00
committed by Mathew Sutcliffe
parent ce3edc37d0
commit 92a36890eb
5 changed files with 25 additions and 1 deletions

View File

@@ -90,6 +90,9 @@ namespace BlackMisc
//! Construct from a base class object.
CFailoverUrlList(const CSequence<CUrl> &other, int maxTrials = 2);
//! From url list
CFailoverUrlList(const CUrlList &urlIst);
//! All failed URLs
const CUrlList &getFailedUrls() const { return m_failedUrls; }
@@ -117,6 +120,7 @@ namespace BlackMisc
} // namespace
Q_DECLARE_METATYPE(BlackMisc::Network::CUrlList)
Q_DECLARE_METATYPE(BlackMisc::Network::CFailoverUrlList)
Q_DECLARE_METATYPE(BlackMisc::CCollection<BlackMisc::Network::CUrl>)
Q_DECLARE_METATYPE(BlackMisc::CSequence<BlackMisc::Network::CUrl>)