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