Home
last modified time | relevance | path

Searched refs:QPlaceContent (Results 1 – 25 of 43) sorted by relevance

12

/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/location/places/
H A Dqplacecontent.cpp49 inline QPlaceContentPrivate *QPlaceContent::d_func() in d_func()
54 inline const QPlaceContentPrivate *QPlaceContent::d_func() const in d_func()
132 QPlaceContent::QPlaceContent() in QPlaceContent() function in QPlaceContent
140 QPlaceContent::QPlaceContent(const QPlaceContent &other) in QPlaceContent() function in QPlaceContent
149 QPlaceContent &QPlaceContent::operator=(const QPlaceContent &other) in operator =()
161 QPlaceContent::~QPlaceContent() in ~QPlaceContent()
168 QPlaceContent::Type QPlaceContent::type() const in type()
179 bool QPlaceContent::operator==(const QPlaceContent &other) const in operator ==()
195 bool QPlaceContent::operator!=(const QPlaceContent &other) const in operator !=()
203 QPlaceSupplier QPlaceContent::supplier() const in supplier()
[all …]
H A Dqplacecontent.h53 Class(const QPlaceContent &other);
58 class Q_LOCATION_EXPORT QPlaceContent
61 typedef QMap<int, QPlaceContent> Collection;
71 QPlaceContent();
72 QPlaceContent(const QPlaceContent &other);
73 virtual ~QPlaceContent();
75 QPlaceContent &operator=(const QPlaceContent &other);
77 bool operator==(const QPlaceContent &other) const;
78 bool operator!=(const QPlaceContent &other) const;
80 QPlaceContent::Type type() const;
[all …]
H A Dqplace.h86 QPlaceContent::Collection content(QPlaceContent::Type type) const;
87 void setContent(QPlaceContent::Type type, const QPlaceContent::Collection &content);
88 void insertContent(QPlaceContent::Type type, const QPlaceContent::Collection &content);
90 int totalContentCount(QPlaceContent::Type type) const;
91 void setTotalContentCount(QPlaceContent::Type type, int total);
H A Dqplacecontent_p.h67 …Class::Class(const QPlaceContent &other) : QPlaceContent() { Class##Private::copyIfPossible(d_ptr,…
71 virtual QPlaceContent::Type type() const {return ContentType;} \
72 …static void copyIfPossible(QSharedDataPointer<QPlaceContentPrivate> &d_ptr, const QPlaceContent &o…
88 virtual QPlaceContent::Type type() const = 0;
91 …static const QSharedDataPointer<QPlaceContentPrivate> &extract_d(const QPlaceContent &other) {retu… in extract_d()
H A Dqplacecontentrequest.cpp44 : QSharedData(), contentType(QPlaceContent::NoType), limit(-1) in QPlaceContentRequestPrivate()
66 contentType = QPlaceContent::NoType; in clear()
150 QPlaceContent::Type QPlaceContentRequest::contentType() const in contentType()
159 void QPlaceContentRequest::setContentType(QPlaceContent::Type type) in setContentType()
H A Dqplace.cpp281 QPlaceContent::Collection QPlace::content(QPlaceContent::Type type) const in content()
289 void QPlace::setContent(QPlaceContent::Type type, const QPlaceContent::Collection &content) in setContent()
298 void QPlace::insertContent(QPlaceContent::Type type, const QPlaceContent::Collection &content) in insertContent()
312 int QPlace::totalContentCount(QPlaceContent::Type type) const in totalContentCount()
320 void QPlace::setTotalContentCount(QPlaceContent::Type type, int totalCount) in setTotalContentCount()
H A Dqplacecontentreply.cpp48 QPlaceContent::Collection contentCollection;
91 QPlaceContent::Collection QPlaceContentReply::content() const in content()
108 void QPlaceContentReply::setContent(const QPlaceContent::Collection &content) in setContent()
H A Dqplaceeditorial.h46 class Q_LOCATION_EXPORT QPlaceEditorial : public QPlaceContent
51 QPlaceEditorial(const QPlaceContent &other);
H A Dqplaceimage.h50 class Q_LOCATION_EXPORT QPlaceImage : public QPlaceContent
55 QPlaceImage(const QPlaceContent &other);
H A Dqplacecontentreply.h57 QPlaceContent::Collection content() const;
67 void setContent(const QPlaceContent::Collection &content);
H A Dqplacecontentrequest.h60 QPlaceContent::Type contentType() const;
61 void setContentType(QPlaceContent::Type type);
H A Dqplacereview.h47 class Q_LOCATION_EXPORT QPlaceReview : public QPlaceContent
52 QPlaceReview(const QPlaceContent &other);
H A Dqplace_p.h109 QMap<QPlaceContent::Type, QPlaceContent::Collection> m_contentCollections;
110 QMap<QPlaceContent::Type, int> m_contentCounts;
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/qplacecontentrequest/
H A Dtst_qplacecontentrequest.cpp56 QCOMPARE(req.contentType(), QPlaceContent::NoType); in contentTest()
60 req.setContentType(QPlaceContent::ImageType); in contentTest()
62 QCOMPARE(req.contentType(), QPlaceContent::ImageType); in contentTest()
67 otherReq.setContentType(QPlaceContent::ReviewType); in contentTest()
70 QCOMPARE(req.contentType(), QPlaceContent::ReviewType); in contentTest()
81 req.setContentType(QPlaceContent::ReviewType); in clearTest()
84 QVERIFY(req.contentType() == QPlaceContent::NoType); in clearTest()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/qplace/
H A Dtst_qplace.cpp113 QFETCH(QPlaceContent::Type, contentType); in totalContentCountTest()
125 QTest::addColumn<QPlaceContent::Type>("contentType"); in totalContentCountTest_data()
126 QTest::newRow("Image content") << QPlaceContent::ImageType; in totalContentCountTest_data()
127 QTest::newRow("Editoral content") << QPlaceContent::EditorialType; in totalContentCountTest_data()
128 QTest::newRow("Review content") << QPlaceContent::ReviewType; in totalContentCountTest_data()
164 QVERIFY2(place.content(QPlaceContent::ImageType).count() ==0,"Wrong default value"); in imageContentTest()
175 QPlaceContent::Collection imageCollection; in imageContentTest()
180 place.setContent(QPlaceContent::ImageType, imageCollection); in imageContentTest()
181 QPlaceContent::Collection retrievedCollection = place.content(QPlaceContent::ImageType); in imageContentTest()
199 place.insertContent(QPlaceContent::ImageType, imageCollection); in imageContentTest()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/plugins/geoservices/nokia/placesv2/
H A Dqplacedetailsreplyimpl.cpp280 QPlaceContent::Collection collection; in replyFinished()
283 parseCollection(QPlaceContent::ImageType, in replyFinished()
287 place.setTotalContentCount(QPlaceContent::ImageType, totalCount); in replyFinished()
288 place.setContent(QPlaceContent::ImageType, collection); in replyFinished()
291 QPlaceContent::Collection collection; in replyFinished()
294 parseCollection(QPlaceContent::EditorialType, in replyFinished()
298 place.setTotalContentCount(QPlaceContent::EditorialType, totalCount); in replyFinished()
299 place.setContent(QPlaceContent::EditorialType, collection); in replyFinished()
302 QPlaceContent::Collection collection; in replyFinished()
305 parseCollection(QPlaceContent::ReviewType, in replyFinished()
[all …]
H A Djsonparserhelpers.cpp196 void parseCollection(QPlaceContent::Type type, const QJsonObject &object, in parseCollection()
197 QPlaceContent::Collection *collection, int *totalCount, in parseCollection()
226 case QPlaceContent::ImageType: in parseCollection()
229 case QPlaceContent::ReviewType: in parseCollection()
232 case QPlaceContent::EditorialType: in parseCollection()
235 case QPlaceContent::NoType: in parseCollection()
H A Djsonparserhelpers.h71 void parseCollection(QPlaceContent::Type type, const QJsonObject &object,
72 QPlaceContent::Collection *collection, int *totalCount,
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/qplaceeditorial/
H A Dtst_qplaceeditorial.cpp49 bool checkType(const QPlaceContent &);
50 void detach(QPlaceContent *);
88 bool tst_QPlaceEditorial::checkType(const QPlaceContent &content) in checkType()
90 return content.type() == QPlaceContent::EditorialType; in checkType()
93 void tst_QPlaceEditorial::detach(QPlaceContent *content) in detach()
161 QPlaceContent, in conversionTest()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/qplaceimage/
H A Dtst_qplaceimage.cpp47 bool checkType(const QPlaceContent &);
48 void detach(QPlaceContent *);
86 bool tst_QPlaceImage::checkType(const QPlaceContent &content) in checkType()
88 return content.type() == QPlaceContent::ImageType; in checkType()
91 void tst_QPlaceImage::detach(QPlaceContent *content) in detach()
162 QPlaceContent, in conversionTest()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/qplacereview/
H A Dtst_qplacereview.cpp49 bool checkType(const QPlaceContent &);
50 void detach(QPlaceContent *);
95 bool tst_QPlaceReview::checkType(const QPlaceContent &content) in checkType()
97 return content.type() == QPlaceContent::ReviewType; in checkType()
100 void tst_QPlaceReview::detach(QPlaceContent *content) in detach()
214 QPlaceContent, in conversionTest()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/location/declarativeplaces/
H A Dqdeclarativeplacecontentmodel_p.h76 explicit QDeclarativePlaceContentModel(QPlaceContent::Type type, QObject *parent = 0);
89 void initializeCollection(int totalCount, const QPlaceContent::Collection &collection);
119 QPlaceContent::Collection m_content;
125 QPlaceContent::Type m_type;
H A Dqdeclarativeplacecontentmodel.cpp50 QDeclarativePlaceContentModel::QDeclarativePlaceContentModel(QPlaceContent::Type type, in QDeclarativePlaceContentModel()
145 void QDeclarativePlaceContentModel::initializeCollection(int totalCount, const QPlaceContent::Colle… in initializeCollection()
153 const QPlaceContent &content = i.value(); in initializeCollection()
198 const QPlaceContent &content = m_content.value(index.row()); in data()
314 QPlaceContent::Collection contents = reply->content(); in fetchFinished()
338 const QPlaceContent &content = contents.value(i); in fetchFinished()
366 const QPlaceContent &content = contents.value(i); in fetchFinished()
H A Dqdeclarativeplace.cpp375 if (m_reviewModel && m_src.totalContentCount(QPlaceContent::ReviewType) >= 0) { in setPlace()
376 m_reviewModel->initializeCollection(m_src.totalContentCount(QPlaceContent::ReviewType), in setPlace()
377 m_src.content(QPlaceContent::ReviewType)); in setPlace()
379 if (m_imageModel && m_src.totalContentCount(QPlaceContent::ImageType) >= 0) { in setPlace()
380 m_imageModel->initializeCollection(m_src.totalContentCount(QPlaceContent::ImageType), in setPlace()
381 m_src.content(QPlaceContent::ImageType)); in setPlace()
383 if (m_editorialModel && m_src.totalContentCount(QPlaceContent::EditorialType) >= 0) { in setPlace()
384 … m_editorialModel->initializeCollection(m_src.totalContentCount(QPlaceContent::EditorialType), in setPlace()
385 m_src.content(QPlaceContent::EditorialType)); in setPlace()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/nokia_services/places_semiauto/
H A Dtst_places.cpp602 QFETCH(QPlaceContent::Type, type); in content()
608 QPlaceContent::Collection results; in content()
615 case (QPlaceContent::ImageType): { in content()
619 } case (QPlaceContent::ReviewType) : { in content()
628 } case (QPlaceContent::EditorialType): { in content()
649 QPlaceContent::Collection newResults; in content()
658 QTest::addColumn<QPlaceContent::Type>("type"); in content_data()
660 QTest::newRow("images") << QPlaceContent::ImageType; in content_data()
661 QTest::newRow("reviews") << QPlaceContent::ReviewType; in content_data()
662 QTest::newRow("editorials") << QPlaceContent::EditorialType; in content_data()

12