Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit dd2f6635 authored by Laurent Montel's avatar Laurent Montel 😁

Port to new connect api

parent ca13eedf
......@@ -254,7 +254,7 @@ void O1::link()
request.setRawHeader(O2_HTTP_AUTHORIZATION_HEADER, buildAuthorizationHeader(headers));
request.setHeader(QNetworkRequest::ContentTypeHeader, O2_MIME_TYPE_XFORM);
QNetworkReply *reply = manager_->post(request, QByteArray());
connect(reply, SIGNAL(error(QNetworkReply::NetworkError)), this, SLOT(onTokenRequestError(QNetworkReply::NetworkError)));
connect(reply, QOverload<QNetworkReply::NetworkError>::of(&QNetworkReply::error), this, &O1::onTokenRequestError);
connect(reply, &QNetworkReply::finished, this, &O1::onTokenRequestFinished);
}
......@@ -339,7 +339,7 @@ void O1::exchangeToken()
request.setRawHeader(O2_HTTP_AUTHORIZATION_HEADER, buildAuthorizationHeader(oauthParams));
request.setHeader(QNetworkRequest::ContentTypeHeader, O2_MIME_TYPE_XFORM);
QNetworkReply *reply = manager_->post(request, QByteArray());
connect(reply, SIGNAL(error(QNetworkReply::NetworkError)), this, SLOT(onTokenExchangeError(QNetworkReply::NetworkError)));
connect(reply, QOverload<QNetworkReply::NetworkError>::of(&QNetworkReply::error), this, &O1::onTokenExchangeError);
connect(reply, &QNetworkReply::finished, this, &O1::onTokenExchangeFinished);
}
......
Markdown is supported
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