9#include <QtCore/QDebug>
10#include <QtCore/QLocale>
13#include <QtLocation/QPlace>
14#include <QtLocation/QPlaceCategory>
15#include <QtLocation/QPlaceContentReply>
16#include <QtLocation/QPlaceContentRequest>
17#include <QtLocation/QPlaceDetailsReply>
18#include <QtLocation/QPlaceIcon>
19#include <QtLocation/QPlaceIdReply>
20#include <QtLocation/QPlaceMatchReply>
21#include <QtLocation/QPlaceMatchRequest>
22#include <QtLocation/QPlaceReply>
23#include <QtLocation/QPlaceSearchSuggestionReply>
24#include <QtLocation/QPlaceSearchRequest>
25#include <QtLocation/QPlaceSearchResult>
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
114
115
116
117
118
119
120
121QPlaceManager::QPlaceManager(QPlaceManagerEngine *engine, QObject *parent)
122 : QObject(parent), d(engine)
126 d->d_ptr->manager =
this;
128 qRegisterMetaType<QPlaceCategory>();
130 connect(d, &QPlaceManagerEngine::finished,
131 this, &QPlaceManager::finished);
132 connect(d, &QPlaceManagerEngine::errorOccurred,
133 this, &QPlaceManager::errorOccurred);
135 connect(d, &QPlaceManagerEngine::placeAdded,
136 this, &QPlaceManager::placeAdded, Qt::QueuedConnection);
137 connect(d, &QPlaceManagerEngine::placeUpdated,
138 this, &QPlaceManager::placeUpdated, Qt::QueuedConnection);
139 connect(d, &QPlaceManagerEngine::placeRemoved,
140 this, &QPlaceManager::placeRemoved, Qt::QueuedConnection);
142 connect(d, &QPlaceManagerEngine::categoryAdded,
143 this, &QPlaceManager::categoryAdded);
144 connect(d, &QPlaceManagerEngine::categoryUpdated,
145 this, &QPlaceManager::categoryUpdated);
146 connect(d, &QPlaceManagerEngine::categoryRemoved,
147 this, &QPlaceManager::categoryRemoved);
148 connect(d, &QPlaceManagerEngine::dataChanged,
149 this, &QPlaceManager::dataChanged, Qt::QueuedConnection);
151 qFatal(
"The place manager engine that was set for this place manager was NULL.");
156
157
158
159QPlaceManager::~QPlaceManager()
165
166
167QString QPlaceManager::managerName()
const
169 return d->managerName();
173
174
175int QPlaceManager::managerVersion()
const
177 return d->managerVersion();
181
182
183
184
185QPlaceDetailsReply *QPlaceManager::getPlaceDetails(
const QString &placeId)
const
187 return d->getPlaceDetails(placeId);
191
192
193
194
195QPlaceContentReply *QPlaceManager::getPlaceContent(
const QPlaceContentRequest &request)
const
197 return d->getPlaceContent(request);
201
202
203
204
205QPlaceSearchReply *QPlaceManager::search(
const QPlaceSearchRequest &request)
const
207 return d->search(request);
211
212
213
214
215
216
217QPlaceSearchSuggestionReply *QPlaceManager::searchSuggestions(
const QPlaceSearchRequest &request)
const
219 return d->searchSuggestions(request);
223
224
225
226
227QPlaceIdReply *QPlaceManager::savePlace(
const QPlace &place)
229 return d->savePlace(place);
233
234
235
236
237QPlaceIdReply *QPlaceManager::removePlace(
const QString &placeId)
239 return d->removePlace(placeId);
243
244
245
246
247
248QPlaceIdReply *QPlaceManager::saveCategory(
const QPlaceCategory &category,
const QString &parentId)
250 return d->saveCategory(category, parentId);
254
255
256
257
258QPlaceIdReply *QPlaceManager::removeCategory(
const QString &categoryId)
260 return d->removeCategory(categoryId);
264
265
266
267
268QPlaceReply *QPlaceManager::initializeCategories()
270 return d->initializeCategories();
274
275
276QString QPlaceManager::parentCategoryId(
const QString &categoryId)
const
278 return d->parentCategoryId(categoryId);
282
283
284
285QStringList QPlaceManager::childCategoryIds(
const QString &parentId)
const
287 return d->childCategoryIds(parentId);
291
292
293QPlaceCategory QPlaceManager::category(
const QString &categoryId)
const
295 return d->category(categoryId);
299
300
301
302QList<QPlaceCategory> QPlaceManager::childCategories(
const QString &parentId)
const
304 return d->childCategories(parentId);
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325QList<QLocale> QPlaceManager::locales()
const
331
332
333
334void QPlaceManager::setLocale(
const QLocale &locale)
336 QList<QLocale> locales;
338 d->setLocales(locales);
342
343
344void QPlaceManager::setLocales(
const QList<QLocale> &locales)
346 d->setLocales(locales);
350
351
352
353
354
355
356
357QPlace QPlaceManager::compatiblePlace(
const QPlace &original)
const
359 return d->compatiblePlace(original);
363
364
365
366
367QPlaceMatchReply *QPlaceManager::matchingPlaces(
const QPlaceMatchRequest &request)
const
369 return d->matchingPlaces(request);
373
374
375
376
377
378
379
380
381
382
383
384
387
388
389
390
391
392
393
394
395
396
397
398
399
400
403
404
405
406
407
408
409
410
413
414
415
416
417
418
419
420
423
424
425
426
427
428
429
430
433
434
435
436
437
438
439
440
443
444
445
446
447
448
449
450
453
454
455
456
457
458
459
460
461
464
465
466
467
468
469
470
471
472