diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-08-20 17:59:27 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-08-20 17:59:27 +0900 |
commit | 8629748c5c609882486d25d989becfe0ae2352ed (patch) | |
tree | 4cf7cfa667568cdac4c5f218d565c44f9a3236c1 /lib/connectiondata.h | |
parent | 25f8622bcdd4322ce9e41c34883cea5ff71a6817 (diff) | |
download | libquotient-8629748c5c609882486d25d989becfe0ae2352ed.tar.gz libquotient-8629748c5c609882486d25d989becfe0ae2352ed.zip |
Store userId in ConnectionData instead of Connection
To collect all connection-identifying information in a single place.
Diffstat (limited to 'lib/connectiondata.h')
-rw-r--r-- | lib/connectiondata.h | 6 |
1 files changed, 5 insertions, 1 deletions
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); |