10#include <QtCore/QDebug>
11#include <QtCore/QLocale>
14#include <QtLocation/QPlace>
15#include <QtLocation/QPlaceCategory>
16#include <QtLocation/QPlaceContentReply>
17#include <QtLocation/QPlaceContentRequest>
18#include <QtLocation/QPlaceDetailsReply>
19#include <QtLocation/QPlaceIcon>
20#include <QtLocation/QPlaceIdReply>
21#include <QtLocation/QPlaceMatchReply>
22#include <QtLocation/QPlaceMatchRequest>
23#include <QtLocation/QPlaceReply>
24#include <QtLocation/QPlaceSearchSuggestionReply>
25#include <QtLocation/QPlaceSearchRequest>
26#include <QtLocation/QPlaceSearchResult>
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
115
116
117
118
119
120
121
122QPlaceManager::QPlaceManager(QPlaceManagerEngine *engine, QObject *parent)
123 : QObject(parent), d(engine)
127 d->d_ptr->manager =
this;
129 qRegisterMetaType<QPlaceCategory>();
131 connect(d, &QPlaceManagerEngine::finished,
132 this, &QPlaceManager::finished);
133 connect(d, &QPlaceManagerEngine::errorOccurred,
134 this, &QPlaceManager::errorOccurred);
136 connect(d, &QPlaceManagerEngine::placeAdded,
137 this, &QPlaceManager::placeAdded, Qt::QueuedConnection);
138 connect(d, &QPlaceManagerEngine::placeUpdated,
139 this, &QPlaceManager::placeUpdated, Qt::QueuedConnection);
140 connect(d, &QPlaceManagerEngine::placeRemoved,
141 this, &QPlaceManager::placeRemoved, Qt::QueuedConnection);
143 connect(d, &QPlaceManagerEngine::categoryAdded,
144 this, &QPlaceManager::categoryAdded);
145 connect(d, &QPlaceManagerEngine::categoryUpdated,
146 this, &QPlaceManager::categoryUpdated);
147 connect(d, &QPlaceManagerEngine::categoryRemoved,
148 this, &QPlaceManager::categoryRemoved);
149 connect(d, &QPlaceManagerEngine::dataChanged,
150 this, &QPlaceManager::dataChanged, Qt::QueuedConnection);
152 qFatal(
"The place manager engine that was set for this place manager was NULL.");
157
158
159
160QPlaceManager::~QPlaceManager()
166
167
168QString QPlaceManager::managerName()
const
170 return d->managerName();
174
175
176int QPlaceManager::managerVersion()
const
178 return d->managerVersion();
182
183
184
185
186QPlaceDetailsReply *QPlaceManager::getPlaceDetails(
const QString &placeId)
const
188 return d->getPlaceDetails(placeId);
192
193
194
195
196QPlaceContentReply *QPlaceManager::getPlaceContent(
const QPlaceContentRequest &request)
const
198 return d->getPlaceContent(request);
202
203
204
205
206QPlaceSearchReply *QPlaceManager::search(
const QPlaceSearchRequest &request)
const
208 return d->search(request);
212
213
214
215
216
217
218QPlaceSearchSuggestionReply *QPlaceManager::searchSuggestions(
const QPlaceSearchRequest &request)
const
220 return d->searchSuggestions(request);
224
225
226
227
228QPlaceIdReply *QPlaceManager::savePlace(
const QPlace &place)
230 return d->savePlace(place);
234
235
236
237
238QPlaceIdReply *QPlaceManager::removePlace(
const QString &placeId)
240 return d->removePlace(placeId);
244
245
246
247
248
249QPlaceIdReply *QPlaceManager::saveCategory(
const QPlaceCategory &category,
const QString &parentId)
251 return d->saveCategory(category, parentId);
255
256
257
258
259QPlaceIdReply *QPlaceManager::removeCategory(
const QString &categoryId)
261 return d->removeCategory(categoryId);
265
266
267
268
269QPlaceReply *QPlaceManager::initializeCategories()
271 return d->initializeCategories();
275
276
277QString QPlaceManager::parentCategoryId(
const QString &categoryId)
const
279 return d->parentCategoryId(categoryId);
283
284
285
286QStringList QPlaceManager::childCategoryIds(
const QString &parentId)
const
288 return d->childCategoryIds(parentId);
292
293
294QPlaceCategory QPlaceManager::category(
const QString &categoryId)
const
296 return d->category(categoryId);
300
301
302
303QList<QPlaceCategory> QPlaceManager::childCategories(
const QString &parentId)
const
305 return d->childCategories(parentId);
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326QList<QLocale> QPlaceManager::locales()
const
332
333
334
335void QPlaceManager::setLocale(
const QLocale &locale)
337 QList<QLocale> locales;
339 d->setLocales(locales);
343
344
345void QPlaceManager::setLocales(
const QList<QLocale> &locales)
347 d->setLocales(locales);
351
352
353
354
355
356
357
358QPlace QPlaceManager::compatiblePlace(
const QPlace &original)
const
360 return d->compatiblePlace(original);
364
365
366
367
368QPlaceMatchReply *QPlaceManager::matchingPlaces(
const QPlaceMatchRequest &request)
const
370 return d->matchingPlaces(request);
374
375
376
377
378
379
380
381
382
383
384
385
388
389
390
391
392
393
394
395
396
397
398
399
400
401
404
405
406
407
408
409
410
411
414
415
416
417
418
419
420
421
424
425
426
427
428
429
430
431
434
435
436
437
438
439
440
441
444
445
446
447
448
449
450
451
454
455
456
457
458
459
460
461
462
465
466
467
468
469
470
471
472
473
Combined button and popup list for selecting options.