aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-11-25 19:52:58 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-11-25 19:52:58 +0900
commitca70d70f441d93a1da431a8fa3e927396e2abf70 (patch)
treee6fba2d5a5727a9b608e20dc2ac337bf1d0e5ccb
parentdefbad696b924835de9bb8b16e0055a6cc983566 (diff)
downloadlibquotient-ca70d70f441d93a1da431a8fa3e927396e2abf70.tar.gz
libquotient-ca70d70f441d93a1da431a8fa3e927396e2abf70.zip
ConnectionData::setBaseUrl()
-rw-r--r--connectiondata.cpp6
-rw-r--r--connectiondata.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/connectiondata.cpp b/connectiondata.cpp
index 4276fd19..70791952 100644
--- a/connectiondata.cpp
+++ b/connectiondata.cpp
@@ -75,6 +75,12 @@ QNetworkAccessManager* ConnectionData::nam() const
return nam;
}
+void ConnectionData::setBaseUrl(QUrl baseUrl)
+{
+ d->baseUrl = baseUrl;
+ qCDebug(MAIN) << "updated baseUrl to" << d->baseUrl;
+}
+
void ConnectionData::setToken(QByteArray token)
{
d->accessToken = token;
diff --git a/connectiondata.h b/connectiondata.h
index 933219ea..530a52ee 100644
--- a/connectiondata.h
+++ b/connectiondata.h
@@ -35,6 +35,7 @@ namespace QMatrixClient
const QString& deviceId() const;
QNetworkAccessManager* nam() const;
+ void setBaseUrl(QUrl baseUrl);
void setToken(QByteArray accessToken);
void setHost( QString host );
void setPort( int port );