aboutsummaryrefslogtreecommitdiff
path: root/connectiondata.cpp
diff options
context:
space:
mode:
authorFelix Rohrbach <fxrh@gmx.de>2016-05-01 21:38:13 +0200
committerFelix Rohrbach <fxrh@gmx.de>2016-05-01 21:38:13 +0200
commit22a675a55ae2dac33a680531f4003fbfeb24ec39 (patch)
tree3c7e575cd64aea4fdcbd78a936f1913532105fb4 /connectiondata.cpp
parent00a73167ca455370868f1f82257420f0cb399a15 (diff)
parentaa8b077499653b6ebf2d78136c75c801e6f99c29 (diff)
downloadlibquotient-22a675a55ae2dac33a680531f4003fbfeb24ec39.tar.gz
libquotient-22a675a55ae2dac33a680531f4003fbfeb24ec39.zip
Merge pull request #3 from davidar/master
Resolve Matrix SRV records.
Diffstat (limited to 'connectiondata.cpp')
-rw-r--r--connectiondata.cpp14
1 files changed, 13 insertions, 1 deletions
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
+}