17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
41
42
43
44
45
46
47
48QGeoCodingManager::QGeoCodingManager(QGeoCodingManagerEngine *engine, QObject *parent)
50 d_ptr(
new QGeoCodingManagerPrivate())
52 d_ptr->engine.reset(engine);
54 d_ptr->engine->setParent(
this);
56 connect(d_ptr->engine.get(), &QGeoCodingManagerEngine::finished,
57 this, &QGeoCodingManager::finished);
59 connect(d_ptr->engine.get(), &QGeoCodingManagerEngine::errorOccurred,
60 this, &QGeoCodingManager::errorOccurred);
62 qFatal(
"The geocoding manager engine that was set for this geocoding manager was NULL.");
67
68
69QGeoCodingManager::~QGeoCodingManager()
75
76
77
78
79
80
81QString QGeoCodingManager::managerName()
const
86 return d_ptr->engine->managerName();
90
91
92
93
94
95
96int QGeoCodingManager::managerVersion()
const
101 return d_ptr->engine->managerVersion();
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135QGeoCodeReply *QGeoCodingManager::geocode(
const QGeoAddress &address,
const QGeoShape &bounds)
137 return d_ptr->engine->geocode(address, bounds);
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177QGeoCodeReply *QGeoCodingManager::reverseGeocode(
const QGeoCoordinate &coordinate,
const QGeoShape &bounds)
179 return d_ptr->engine->reverseGeocode(coordinate, bounds);
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211QGeoCodeReply *QGeoCodingManager::geocode(
const QString &address,
214 const QGeoShape &bounds)
216 QGeoCodeReply *reply = d_ptr->engine->geocode(address,
224
225
226
227
228
229
230
231void QGeoCodingManager::setLocale(
const QLocale &locale)
233 d_ptr->engine->setLocale(locale);
237
238
239
240QLocale QGeoCodingManager::locale()
const
242 return d_ptr->engine->locale();
246
247
248
249
250
251
252
253
254
255
256
257
258
261
262
263
264
265
266
267
268
269
270
271
272
273
276