aboutsummaryrefslogtreecommitdiff
path: root/lib/connectiondata.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-08-20 17:59:27 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-08-20 17:59:27 +0900
commit8629748c5c609882486d25d989becfe0ae2352ed (patch)
tree4cf7cfa667568cdac4c5f218d565c44f9a3236c1 /lib/connectiondata.h
parent25f8622bcdd4322ce9e41c34883cea5ff71a6817 (diff)
downloadlibquotient-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.h6
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);