/
qgsgeonoderequest.sip
121 lines (91 loc) · 2.71 KB
/
qgsgeonoderequest.sip
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/geonode/qgsgeonoderequest.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
struct QgsServiceLayerDetail
{
%TypeHeaderCode
#include <qgsgeonoderequest.h>
%End
QUuid uuid;
QString name;
QString typeName;
QString title;
QString wmsURL;
QString wfsURL;
QString xyzURL;
};
class QgsGeoNodeRequest : QObject
{
%TypeHeaderCode
#include "qgsgeonoderequest.h"
%End
public:
explicit QgsGeoNodeRequest( bool forceRefresh, QObject *parent = 0 );
QgsGeoNodeRequest( const QString &baseUrl, /*const QgsWmsAuthorization &auth,*/ bool forceRefresh, QObject *parent = 0 );
virtual ~QgsGeoNodeRequest();
bool request( QString endPoint );
%Docstring
:rtype: bool
%End
bool getLayers();
%Docstring
:rtype: bool
%End
QList<QgsServiceLayerDetail> parseLayers( QByteArray layerResponse );
%Docstring
:rtype: list of QgsServiceLayerDetail
%End
QStringList serviceUrls( QString serviceType );
%Docstring
:rtype: list of str
%End
QgsStringMap serviceUrlData( QString serviceType );
%Docstring
:rtype: QgsStringMap
%End
QString lastError() const;
%Docstring
:rtype: str
%End
QByteArray response() const;
%Docstring
:rtype: QByteArray
%End
QNetworkReply *reply() const;
%Docstring
:rtype: QNetworkReply
%End
void abort();
%Docstring
Abort network request immediately
%End
QString getProtocol() const;
%Docstring
:rtype: str
%End
void setProtocol( const QString &protocol );
signals:
void statusChanged( const QString &statusQString );
%Docstring
emit a signal to be caught by qgisapp and display a statusQString on status bar
%End
void requestFinished();
%Docstring
emit a signal once the request is finished
%End
protected slots:
void replyFinished();
void replyProgress( qint64, qint64 );
protected:
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/geonode/qgsgeonoderequest.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/