Home
last modified time | relevance | path

Searched refs:QPlaceReply (Results 1 – 25 of 80) sorted by relevance

1234

/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/placemanager_utils/
H A Dplacemanager_utils.h71 QPlaceReply::Error expectedError = QPlaceReply::NoError,
81 QPlaceReply::Error expectedError = QPlaceReply::NoError);
85 QPlaceReply::Error expectedError = QPlaceReply::NoError);
90 QPlaceReply::Error expectedError = QPlaceReply::NoError);
93 QPlaceReply::Error expectedError = QPlaceReply::NoError);
98 QPlaceReply::Error expectedError = QPlaceReply::NoError);
101 QPlaceReply::Error expectedError = QPlaceReply::NoError);
106 QPlaceReply::Error expectedError = QPlaceReply::NoError,
110 QPlaceReply::Error expectedError = QPlaceReply::NoError);
115 QPlaceReply::Error expectedError = QPlaceReply::NoError);
[all …]
H A Dplacemanager_utils.cpp49 QPlaceReply::Error expectedError, in doSavePlace()
59 if (saveReply->id().isEmpty() && expectedError == QPlaceReply::NoError) { in doSavePlace()
79 QCOMPARE(saveReply->error(), QPlaceReply::NoError); in doSavePlaces()
94 QCOMPARE(saveReply->error(), QPlaceReply::NoError); in doSavePlaces()
103 QPlaceReply::Error expectedError) in doSearch()
113 QList<QPlace> *results, QPlaceReply::Error expectedError) in doSearch()
131 QPlaceReply::Error expectedError) in doSearchSuggestions()
145 QPlaceReply::Error expectedError) in doRemovePlace()
160 QPlaceReply::Error expectedError) in doFetchDetails()
173 QPlaceReply::Error expectedError) in doInitializeCategories()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/location/places/
H A Dunsupportedreplies_p.h69 setError(QPlaceReply::UnsupportedError, in QPlaceDetailsReplyUnsupported()
73 Q_ARG(QPlaceReply::Error, error()), in QPlaceDetailsReplyUnsupported()
76 Q_ARG(QPlaceReply *, this), in QPlaceDetailsReplyUnsupported()
77 Q_ARG(QPlaceReply::Error, error()), in QPlaceDetailsReplyUnsupported()
81 Q_ARG(QPlaceReply *, this)); in QPlaceDetailsReplyUnsupported()
93 setError(QPlaceReply::UnsupportedError, in QPlaceContentReplyUnsupported()
97 Q_ARG(QPlaceReply::Error, error()), in QPlaceContentReplyUnsupported()
100 Q_ARG(QPlaceReply *, this), in QPlaceContentReplyUnsupported()
101 Q_ARG(QPlaceReply::Error, error()), in QPlaceContentReplyUnsupported()
105 Q_ARG(QPlaceReply *, this)); in QPlaceContentReplyUnsupported()
[all …]
H A Dqplacereply.cpp117 QPlaceReply::QPlaceReply(QObject *parent) in QPlaceReply() function in QPlaceReply
125 QPlaceReply::QPlaceReply(QPlaceReplyPrivate *dd, QObject *parent) in QPlaceReply() function in QPlaceReply
133 QPlaceReply::~QPlaceReply() in ~QPlaceReply()
144 bool QPlaceReply::isFinished() const in isFinished()
152 QPlaceReply::Type QPlaceReply::type() const in type()
154 return QPlaceReply::Reply; in type()
162 void QPlaceReply::setFinished(bool finished) in setFinished()
172 void QPlaceReply::setError(QPlaceReply::Error error, const QString &errorString) in setError()
184 QString QPlaceReply::errorString() const in errorString()
192 QPlaceReply::Error QPlaceReply::error() const in error()
[all …]
H A Dqplacereply.h47 class Q_LOCATION_EXPORT QPlaceReply : public QObject
74 explicit QPlaceReply(QObject *parent = nullptr);
75 ~QPlaceReply();
82 QPlaceReply::Error error() const;
91 void error(QPlaceReply::Error error, const QString &errorString = QString());
94 explicit QPlaceReply(QPlaceReplyPrivate *, QObject *parent = nullptr);
96 void setError(QPlaceReply::Error error, const QString &errorString);
100 Q_DISABLE_COPY(QPlaceReply)
105 Q_DECLARE_METATYPE(QPlaceReply::Error)
106 Q_DECLARE_METATYPE(QPlaceReply *)
H A Dqplacemanager.cpp146 connect(d, SIGNAL(finished(QPlaceReply*)), this, SIGNAL(finished(QPlaceReply*))); in QPlaceManager()
147 connect(d, SIGNAL(error(QPlaceReply*,QPlaceReply::Error)), in QPlaceManager()
148 this, SIGNAL(error(QPlaceReply*,QPlaceReply::Error))); in QPlaceManager()
283 QPlaceReply *QPlaceManager::initializeCategories() in initializeCategories()
H A Dqplacesearchsuggestionreply.cpp74 : QPlaceReply(new QPlaceSearchSuggestionReplyPrivate, parent) in QPlaceSearchSuggestionReply()
97 QPlaceReply::Type QPlaceSearchSuggestionReply::type() const in type()
99 return QPlaceReply::SearchSuggestionReply; in type()
H A Dqplacemanager.h86 QPlaceReply *initializeCategories();
102 void finished(QPlaceReply *reply);
103 void error(QPlaceReply *, QPlaceReply::Error error, const QString &errorString = QString());
H A Dqplacedetailsreply.cpp71 : QPlaceReply(new QPlaceDetailsReplyPrivate, parent) in QPlaceDetailsReply()
85 QPlaceReply::Type QPlaceDetailsReply::type() const in type()
87 return QPlaceReply::DetailsReply; in type()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/qplacemanager_unsupported/
H A Dtst_qplacemanager_unsupported.cpp69 void checkSignals(QPlaceReply *reply, QPlaceReply::Error expectedError, bool *failed);
70 bool checkSignals(QPlaceReply *reply, QPlaceReply::Error expectedError);
140 if (!checkSignals(reply, QPlaceReply::UnsupportedError)) in testGetPlaceDetails()
147 if (!checkSignals(reply, QPlaceReply::UnsupportedError)) in testGetPlaceContent()
154 if (!checkSignals(reply, QPlaceReply::UnsupportedError)) in testSearch()
161 if (!checkSignals(reply, QPlaceReply::UnsupportedError)) in testSearchSuggestions()
168 if (!checkSignals(reply, QPlaceReply::UnsupportedError)) in testSavePlace()
175 if (!checkSignals(reply, QPlaceReply::UnsupportedError)) in testRemovePlace()
182 if (!checkSignals(reply, QPlaceReply::UnsupportedError)) in testSaveCategory()
189 if (!checkSignals(reply, QPlaceReply::UnsupportedError)) in testRemoveCategory()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/qplacemanager_nokia/
H A Dtst_qplacemanager_nokia.cpp65 bool checkSignals(QPlaceReply *reply, QPlaceReply::Error expectedError);
94 QVERIFY(checkSignals(savePlaceReply, QPlaceReply::UnsupportedError)); in unsupportedFunctions()
99 QVERIFY(checkSignals(removePlaceReply, QPlaceReply::UnsupportedError)); in unsupportedFunctions()
106 QVERIFY(checkSignals(saveCategoryReply, QPlaceReply::UnsupportedError)); in unsupportedFunctions()
111 QVERIFY(checkSignals(removeCategoryReply, QPlaceReply::UnsupportedError)); in unsupportedFunctions()
115 bool tst_QPlaceManagerNokia::checkSignals(QPlaceReply *reply, QPlaceReply::Error expectedError) in checkSignals()
118 QSignalSpy errorSpy(reply, SIGNAL(error(QPlaceReply::Error,QString))); in checkSignals()
119 QSignalSpy managerFinishedSpy(placeManager, SIGNAL(finished(QPlaceReply*))); in checkSignals()
120 QSignalSpy managerErrorSpy(placeManager,SIGNAL(error(QPlaceReply*,QPlaceReply::Error,QString))); in checkSignals()
122 if (expectedError != QPlaceReply::NoError) { in checkSignals()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/plugins/geoservices/nokia/
H A Dqplacemanagerengine_nokiav2.cpp256 connect(reply, SIGNAL(error(QPlaceReply::Error,QString)), in getPlaceDetails()
257 this, SLOT(replyError(QPlaceReply::Error,QString))); in getPlaceDetails()
324 connect(reply, SIGNAL(error(QPlaceReply::Error,QString)), in getPlaceContent()
325 this, SLOT(replyError(QPlaceReply::Error,QString))); in getPlaceContent()
329 Q_ARG(QPlaceReply::Error, QPlaceReply::UnsupportedError), in getPlaceContent()
368 connect(reply, SIGNAL(error(QPlaceReply::Error,QString)), in search()
369 this, SLOT(replyError(QPlaceReply::Error,QString))); in search()
371 Q_ARG(QPlaceReply::Error, QPlaceReply::BadArgumentError), in search()
384 connect(reply, SIGNAL(error(QPlaceReply::Error,QString)), in search()
385 this, SLOT(replyError(QPlaceReply::Error,QString))); in search()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/nokia_services/places_semiauto/
H A Dtst_places.cpp79 QList<QPlaceReply::Error> *errors,
134 QFETCH(QPlaceReply::Error, error); in search()
160 QTest::addColumn<QPlaceReply::Error> ("error"); in search_data()
182 << QPlaceReply::NoError in search_data()
190 << QPlaceReply::NoError in search_data()
201 << QPlaceReply::NoError in search_data()
213 << QPlaceReply::NoError in search_data()
224 << QPlaceReply::NoError in search_data()
233 << QPlaceReply::BadArgumentError in search_data()
241 QList<QPlaceReply::Error> errors; in search_data()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/qplacereply/
H A Dtst_qplacereply.cpp36 class TestReply : public QPlaceReply
39 TestReply(QObject *parent) : QPlaceReply(parent) {} in TestReply()
40 void setFinished(bool finished) { QPlaceReply::setFinished(finished); } in setFinished()
41 void setError(QPlaceReply::Error error, const QString &errorString) { in setError()
42 QPlaceReply::setError(error,errorString); in setError()
75 QCOMPARE(reply->type(), QPlaceReply::Reply); in typeTest()
93 QCOMPARE(reply->error(), QPlaceReply::NoError); in errorTest()
96 reply->setError(QPlaceReply::CommunicationError, QStringLiteral("Could not connect to server")); in errorTest()
97 QCOMPARE(reply->error(), QPlaceReply::CommunicationError); in errorTest()
100 reply->setError(QPlaceReply::NoError, QString()); in errorTest()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/qplacemanager/
H A Dtst_qplacemanager.cpp67 bool checkSignals(QPlaceReply *reply, QPlaceReply::Error expectedError);
130 QVERIFY(checkSignals(reply, QPlaceReply::UnsupportedError)); in testMatchUnsupported()
151 bool tst_QPlaceManager::checkSignals(QPlaceReply *reply, QPlaceReply::Error expectedError) in checkSignals()
154 QSignalSpy errorSpy(reply, SIGNAL(error(QPlaceReply::Error,QString))); in checkSignals()
155 QSignalSpy managerFinishedSpy(placeManager, SIGNAL(finished(QPlaceReply*))); in checkSignals()
156 QSignalSpy managerErrorSpy(placeManager,SIGNAL(error(QPlaceReply*,QPlaceReply::Error,QString))); in checkSignals()
158 if (expectedError != QPlaceReply::NoError) { in checkSignals()
167 QPlaceReply::Error actualError = qvariant_cast<QPlaceReply::Error>(errorSpy.at(0).at(0)); in checkSignals()
183 if (qvariant_cast<QPlaceReply*>(managerErrorSpy.at(0).at(0)) != reply) { in checkSignals()
189 actualError = qvariant_cast<QPlaceReply::Error>(managerErrorSpy.at(0).at(1)); in checkSignals()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/plugins/geoservices/mapbox/
H A Dqplacemanagerenginemapbox.cpp123 QPlaceReply *QPlaceManagerEngineMapbox::doSearch(const QPlaceSearchRequest &request, PlaceSearchTyp… in doSearch()
143 QPlaceReply *reply; in doSearch()
149 connect(reply, &QPlaceReply::finished, this, &QPlaceManagerEngineMapbox::onReplyFinished); in doSearch()
150 connect(reply, QOverload<QPlaceReply::Error, const QString &>::of(&QPlaceReply::error), in doSearch()
154 Q_ARG(QPlaceReply::Error, QPlaceReply::BadArgumentError), in doSearch()
229 QPlaceReply *reply; in doSearch()
235 connect(reply, &QPlaceReply::finished, this, &QPlaceManagerEngineMapbox::onReplyFinished); in doSearch()
236 connect(reply, QOverload<QPlaceReply::Error, const QString &>::of(&QPlaceReply::error), in doSearch()
242 QPlaceReply *QPlaceManagerEngineMapbox::initializeCategories() in initializeCategories()
255 connect(reply, &QPlaceReply::finished, this, &QPlaceManagerEngineMapbox::onReplyFinished); in initializeCategories()
[all …]
H A Dqplacecategoriesreplymapbox.cpp45 : QPlaceReply(parent) in QPlaceCategoriesReplyMapbox()
59 void QPlaceCategoriesReplyMapbox::setError(QPlaceReply::Error errorCode, const QString &errorString) in setError()
61 QPlaceReply::setError(errorCode, errorString); in setError()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/location/doc/snippets/places/
H A Drequesthandler.h316 if (searchReply->error() == QPlaceReply::NoError) { in processSearchReply()
331 if (searchReply->error() == QPlaceReply::NoError) { in handleSearchReply()
350 if (detailsReply->error() == QPlaceReply::NoError) in handleDetailsReply()
360 if (contentReply->error() == QPlaceReply::NoError) { in handleImagesReply()
389 if (suggestionReply->error() == QPlaceReply::NoError) { in handleSuggestionReply()
402 if (savePlaceReply->error() == QPlaceReply::NoError) in handleSavePlaceReply()
412 if (removePlaceReply->error() == QPlaceReply::NoError) in handleRemovePlaceReply()
423 if (initCatReply->error() == QPlaceReply::NoError) in handleInitCatReply()
448 if (saveCategoryReply->error() == QPlaceReply::NoError) { in handleSaveCategoryReply()
459 if (removeCategoryReply->error() == QPlaceReply::NoError) in handleRemoveCategoryReply()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/plugins/geoservices/esri/
H A Dplacemanagerengine_esri.cpp152 …connect(reply, SIGNAL(error(QPlaceReply::Error,QString)), this, SLOT(replyError(QPlaceReply::Error… in search()
159 QPlaceReply *reply = qobject_cast<QPlaceReply *>(sender()); in replyFinished()
164 void PlaceManagerEngineEsri::replyError(QPlaceReply::Error errorCode, const QString &errorString) in replyError()
166 QPlaceReply *reply = qobject_cast<QPlaceReply *>(sender()); in replyError()
173 QPlaceReply *PlaceManagerEngineEsri::initializeCategories() in initializeCategories()
179 …connect(reply, SIGNAL(error(QPlaceReply::Error,QString)), this, SLOT(replyError(QPlaceReply::Error… in initializeCategories()
252 reply->setError(QPlaceReply::CommunicationError, error); in errorCaterogies()
H A Dplacecategoriesreply_esri.cpp45 QPlaceReply(parent) in PlaceCategoriesReplyEsri()
59 void PlaceCategoriesReplyEsri::setError(QPlaceReply::Error errorCode, const QString &errorString) in setError()
61 QPlaceReply::setError(errorCode, errorString); in setError()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/plugins/geoservices/osm/
H A Dqplacemanagerengineosm.cpp190 connect(reply, SIGNAL(error(QPlaceReply::Error,QString)), in search()
191 this, SLOT(replyError(QPlaceReply::Error,QString))); in search()
199 QPlaceReply *QPlaceManagerEngineOsm::initializeCategories() in initializeCategories()
210 connect(reply, SIGNAL(error(QPlaceReply::Error,QString)), in initializeCategories()
211 this, SLOT(replyError(QPlaceReply::Error,QString))); in initializeCategories()
326 reply->setError(QPlaceReply::CommunicationError, tr("Network request error")); in categoryReplyError()
331 QPlaceReply *reply = qobject_cast<QPlaceReply *>(sender()); in replyFinished()
336 void QPlaceManagerEngineOsm::replyError(QPlaceReply::Error errorCode, const QString &errorString) in replyError()
338 QPlaceReply *reply = qobject_cast<QPlaceReply *>(sender()); in replyError()
H A Dqplacecategoriesreplyosm.cpp45 : QPlaceReply(parent) in QPlaceCategoriesReplyOsm()
59 void QPlaceCategoriesReplyOsm::setError(QPlaceReply::Error errorCode, const QString &errorString) in setError()
61 QPlaceReply::setError(errorCode, errorString); in setError()
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/plugins/geoservices/nokia/placesv2/
H A Dqplacesearchsuggestionreplyimpl.cpp58 connect(this, &QPlaceReply::aborted, reply, &QNetworkReply::abort); in QPlaceSearchSuggestionReplyImpl()
66 void QPlaceSearchSuggestionReplyImpl::setError(QPlaceReply::Error error_, in setError()
69 QPlaceReply::setError(error_, errorString); in setError()
112 …setError(QPlaceReply::CancelError, QCoreApplication::translate(NOKIA_PLUGIN_CONTEXT_NAME, CANCEL_E… in replyError()
114 …setError(QPlaceReply::CommunicationError, QCoreApplication::translate(NOKIA_PLUGIN_CONTEXT_NAME, N… in replyError()
H A Dqplacecategoriesreplyhere.cpp42 : QPlaceReply(parent) in QPlaceCategoriesReplyHere()
56 void QPlaceCategoriesReplyHere::setError(QPlaceReply::Error error_, const QString &errorString) in setError()
58 QPlaceReply::setError(error_, errorString); in setError()
H A Dqplacecontentreplyimpl.cpp63 connect(this, &QPlaceReply::aborted, reply, &QNetworkReply::abort); in QPlaceContentReplyImpl()
71 void QPlaceContentReplyImpl::setError(QPlaceReply::Error error_, const QString &errorString) in setError()
117 setError(QPlaceReply::CancelError, QStringLiteral("Request cancelled")); in replyError()
119 setError(QPlaceReply::CommunicationError, reply->errorString()); in replyError()

1234