aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 );