QtRestClient
3.0.0
A library for generic JSON-based REST-APIs, with a mechanism to map JSON to Qt objects
src
restclientauth
authrestclient.h
1
#ifndef QTRESTCLIENTAUTH_AUTHRESTCLIENT_H
2
#define QTRESTCLIENTAUTH_AUTHRESTCLIENT_H
3
4
#include <QtRestClient/restclient.h>
5
6
#include "QtRestClientAuth/qtrestclientauth_global.h"
7
#include "QtRestClientAuth/authrequestbuilder.h"
8
9
namespace
QtRestClient::Auth
{
10
11
class
AuthRestClientPrivate;
13
class
Q_RESTCLIENTAUTH_EXPORT
AuthRestClient
:
public
RestClient
14
{
15
Q_OBJECT
16
17
public
:
19
explicit
AuthRestClient
(
QAbstractOAuth
*oAuth,
QObject
*parent =
nullptr
);
21
explicit
AuthRestClient
(
DataMode
dataMode,
QAbstractOAuth
*oAuth,
QObject
*parent =
nullptr
);
22
#ifndef Q_RESTCLIENT_NO_JSON_SERIALIZER
23
explicit
AuthRestClient
(
QtJsonSerializer::SerializerBase
*serializer,
QAbstractOAuth
*oAuth,
QObject
*parent =
nullptr
);
25
#endif
26
28
QAbstractOAuth
*oAuth()
const
;
29
31
AuthRequestBuilder
authBuilder()
const
;
32
RequestBuilder
builder()
const override
;
33
34
protected
:
36
AuthRestClient
(AuthRestClientPrivate &dd,
QObject
*parent);
38
void
setupOAuth(
QAbstractOAuth
*oAuth);
39
40
private
:
41
Q_DECLARE_PRIVATE(
AuthRestClient
)
42
};
43
44
}
45
46
#endif // QTRESTCLIENTAUTH_AUTHRESTCLIENT_H
QtRestClient::Auth::AuthRequestBuilder
An extension of the RequestBuilder that uses a QAbstractOAuth to create authenticated requests.
Definition:
authrequestbuilder.h:32
QAbstractOAuth
QtJsonSerializer::SerializerBase
QtRestClient::RequestBuilder
A helper class to build QUrl and QNetworkRequest objects.
Definition:
requestbuilder.h:24
QObject
QtRestClient::RestClient::DataMode
DataMode
The different data modes in which the client can operate.
Definition:
restclient.h:62
QtRestClient::RestClient
A class to define access to an API, with general settings.
Definition:
restclient.h:30
QtRestClient::Auth::AuthRestClient
An extension of the RestClient that uses a AuthRequestBuilder to create authenticated requests.
Definition:
authrestclient.h:13
QtRestClient::Auth
The namespace for the QNetworkAuth extensions.
Definition:
authrequestbuilder.h:13
Generated on Tue Dec 10 2019 08:05:50 for QtRestClient by
1.8.16