QGIS API Documentation
3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
src
core
auth
qgsauthorizationsettings.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsauthorizationsettings.h
3
---------------------
4
begin : February 2016
5
copyright : (C) 2016 by Even Rouault
6
email : even.rouault at spatialys.com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#ifndef QGSAUTHORIZATIONSETTINGS_H
17
#define QGSAUTHORIZATIONSETTINGS_H
18
19
#include "
qgsauthmanager.h
"
20
#include "
qgsapplication.h
"
21
#include "
qgshttpheaders.h
"
22
23
#include <QString>
24
#include <QNetworkRequest>
25
#include <QNetworkReply>
26
27
#define SIP_NO_FILE
28
35
class
CORE_EXPORT
QgsAuthorizationSettings
36
{
37
public
:
38
40
QgsAuthorizationSettings
(
const
QString &userName = QString(),
const
QString &password = QString(),
const
QgsHttpHeaders
&httpHeaders =
QgsHttpHeaders
(),
const
QString &authcfg = QString() );
41
43
bool
setAuthorization( QNetworkRequest &request )
const
;
44
46
bool
setAuthorizationReply( QNetworkReply *reply )
const
;
47
49
QString
mUserName
;
50
52
QString
mPassword
;
53
55
QgsHttpHeaders
mHttpHeaders
;
56
58
QString
mAuthCfg
;
59
};
60
61
#endif
// QGSAUTHORIZATIONSETTINGS_H
QgsAuthorizationSettings
Utility class that contains authorization information.
Definition
qgsauthorizationsettings.h:36
QgsAuthorizationSettings::mPassword
QString mPassword
Password for basic http authentication.
Definition
qgsauthorizationsettings.h:52
QgsAuthorizationSettings::mAuthCfg
QString mAuthCfg
Authentication configuration ID.
Definition
qgsauthorizationsettings.h:58
QgsAuthorizationSettings::mUserName
QString mUserName
Username for basic http authentication.
Definition
qgsauthorizationsettings.h:49
QgsAuthorizationSettings::mHttpHeaders
QgsHttpHeaders mHttpHeaders
headers for http requests
Definition
qgsauthorizationsettings.h:55
QgsHttpHeaders
This class implements simple http header management.
Definition
qgshttpheaders.h:42
qgsapplication.h
qgsauthmanager.h
qgshttpheaders.h
Generated on Thu Dec 26 2024 02:19:01 for QGIS API Documentation by
1.9.8