15 class NetworkAccessManager;
20 explicit ConnectionData(QUrl baseUrl);
21 Q_DISABLE_COPY_MOVE(ConnectionData)
22 virtual ~ConnectionData();
24 void submit(BaseJob* job);
25 void limitRate(std::chrono::milliseconds nextCallAfter);
27 QByteArray accessToken()
const;
29 const QString& deviceId()
const;
30 const QString& userId()
const;
31 HomeserverData homeserverData()
const;
32 Quotient::NetworkAccessManager *nam()
const;
34 void setBaseUrl(QUrl baseUrl);
35 [[deprecated(
"Use setAccessToken() or setIdentity() instead")]]
36 void setToken(QByteArray accessToken);
37 [[deprecated(
"Use setIdentity() instead")]]
38 void setDeviceId(
const QString& deviceId);
39 [[deprecated(
"Use setIdentity() instead")]]
40 void setUserId(
const QString& userId);
41 void setIdentity(
const QString& userId,
const QString& deviceId, QByteArray accessToken = {});
42 void setAccessToken(QByteArray accessToken);
43 void setSupportedSpecVersions(QStringList versions);
45 QString lastEvent()
const;
46 void setLastEvent(QString identifier);
48 QString generateTxnId()
const;