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

@@ -15,6 +15,7 @@
#include "blackmisc/blackmiscexport.h"
#include "blackmisc/valueobject.h"
#include <QUrl>
#include <QNetworkRequest>
namespace BlackMisc
{
@@ -75,7 +76,7 @@ namespace BlackMisc
bool hasPath() const { return !m_path.isEmpty(); }
//! Get port
int getPort() const { return m_port; }
int getPort() const;
//! Set port
void setPort(int port) { m_port = port; }
@@ -113,6 +114,9 @@ namespace BlackMisc
//! To QUrl
void setQUrl(const QUrl &url);
//! To request
QNetworkRequest toNetworkRequest() const;
//! Append path
CUrl withAppendedPath(const QString &path) const;