Commit c20b5d5b authored by Volker Krause's avatar Volker Krause
Browse files

Simplify setting the Hafas auth object

parent 1a6e069b
......@@ -382,11 +382,6 @@ QNetworkRequest HafasMgateBackend::makePostRequest(const QJsonObject &svcReq, QB
return netReq;
void HafasMgateBackend::setAuthObject(const QJsonObject& obj)
m_auth = obj;
void HafasMgateBackend::setMicMacSalt(const QString &salt)
m_micMacSalt = QByteArray::fromHex(salt.toUtf8());
......@@ -31,7 +31,7 @@ class KPUBLICTRANSPORT_EXPORT HafasMgateBackend : public HafasBackend
/** The auth data block in every request. */
Q_PROPERTY(QJsonObject auth WRITE setAuthObject)
Q_PROPERTY(QJsonObject auth MEMBER m_auth)
/** The client data sent in every request. */
Q_PROPERTY(QJsonObject client MEMBER m_client)
Q_PROPERTY(QString ext MEMBER m_extParam)
......@@ -62,7 +62,6 @@ public:
bool queryJourney(JourneyReply *reply, const QString &fromId, QNetworkAccessManager *nam) const;
bool queryJourney(JourneyReply *reply, const QString &fromId, const QString &toId, QNetworkAccessManager *nam) const;
void setAuthObject(const QJsonObject &obj);
void setMicMacSalt(const QString &salt);
void setChecksumSalt(const QString &salt);
void setConGroups(const QJsonArray &conGroups);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment