aboutsummaryrefslogtreecommitdiff
path: root/connectiondata.cpp
diff options
context:
space:
mode:
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
+}