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#ifndef QT_NO_HTTP
8
9#include <QtNetworkAuth/qoauthglobal.h>
10#include <QtNetworkAuth/qabstractoauthreplyhandler.h>
11
12QT_BEGIN_NAMESPACE
13
14class Q_OAUTH_EXPORT QOAuthOobReplyHandler : public QAbstractOAuthReplyHandler
15{
16 Q_OBJECT
17
18public:
19 explicit QOAuthOobReplyHandler(QObject *parent = nullptr);
20
21 QString callback() const override;
22
23protected:
24 void networkReplyFinished(QNetworkReply *reply) override;
25
26private:
27 QVariantMap parseResponse(const QByteArray &response);
28};
29
30QT_END_NAMESPACE
31
32#endif // QT_NO_HTTP
33
34#endif // QOAUTHOOBREPLYHANDLER_H
35

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