From 8629748c5c609882486d25d989becfe0ae2352ed Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Tue, 20 Aug 2019 17:59:27 +0900 Subject: Store userId in ConnectionData instead of Connection To collect all connection-identifying information in a single place. --- lib/connectiondata.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/connectiondata.h') diff --git a/lib/connectiondata.h b/lib/connectiondata.h index 80ace08c..561893df 100644 --- a/lib/connectiondata.h +++ b/lib/connectiondata.h @@ -33,13 +33,17 @@ public: QByteArray accessToken() const; QUrl baseUrl() const; const QString& deviceId() const; - + const QString& userId() const; QNetworkAccessManager* nam() const; + void setBaseUrl(QUrl baseUrl); void setToken(QByteArray accessToken); + [[deprecated("Use setBaseUrl() instead")]] void setHost(QString host); + [[deprecated("Use setBaseUrl() instead")]] void setPort(int port); void setDeviceId(const QString& deviceId); + void setUserId(const QString& userId); QString lastEvent() const; void setLastEvent(QString identifier); -- cgit v1.2.3