mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-18 19:35:33 +08:00
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:
committed by
Mathew Sutcliffe
parent
ce3edc37d0
commit
92a36890eb
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user