1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QOAUTHOOBREPLYHANDLER_H
5#define QOAUTHOOBREPLYHANDLER_H
6
7#include <QtNetworkAuth/qoauthglobal.h>
8
9#ifndef QT_NO_HTTP
10
11#include <QtNetworkAuth/qabstractoauthreplyhandler.h>
12
13QT_BEGIN_NAMESPACE
14
15// ### Qt 7 remove this undocumented class and arrange it's functionality otherwise (QTBUG-124329)
16class QOAuthOobReplyHandlerPrivate;
17class Q_OAUTH_EXPORT QOAuthOobReplyHandler : public QAbstractOAuthReplyHandler
18{
19 Q_OBJECT
20
21public:
22 explicit QOAuthOobReplyHandler(QObject *parent = nullptr);
23 ~QOAuthOobReplyHandler() override;
24
25 QString callback() const override;
26
27protected:
28 void networkReplyFinished(QNetworkReply *reply) override;
29 explicit QOAuthOobReplyHandler(QOAuthOobReplyHandlerPrivate &, QObject *parent = nullptr);
30
31private:
32 QVariantMap parseResponse(const QByteArray &response);
33};
34
35QT_END_NAMESPACE
36
37#endif // QT_NO_HTTP
38
39#endif // QOAUTHOOBREPLYHANDLER_H
40

source code of qtnetworkauth/src/oauth/qoauthoobreplyhandler.h