From 0f6cb38896443cf104aa470eb1822bd2e49143f1 Mon Sep 17 00:00:00 2001 From: David A Roberts Date: Tue, 12 Apr 2016 20:05:17 +1000 Subject: Resolve Matrix SRV records. --- connectiondata.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'connectiondata.cpp') diff --git a/connectiondata.cpp b/connectiondata.cpp index 374484b0..4a3bd47f 100644 --- a/connectiondata.cpp +++ b/connectiondata.cpp @@ -72,6 +72,18 @@ void ConnectionData::setToken(QString token) d->token = token; } +void ConnectionData::setHost(QString host) +{ + d->baseUrl.setHost(host); + qDebug() << "updated baseUrl to" << d->baseUrl; +} + +void ConnectionData::setPort(int port) +{ + d->baseUrl.setPort(port); + qDebug() << "updated baseUrl to" << d->baseUrl; +} + QString ConnectionData::lastEvent() const { return d->lastEvent; @@ -80,4 +92,4 @@ QString ConnectionData::lastEvent() const void ConnectionData::setLastEvent(QString identifier) { d->lastEvent = identifier; -} \ No newline at end of file +} -- cgit v1.2.3