From 03a340b57c464301689f39e7d11e7833a9c4d87d Mon Sep 17 00:00:00 2001 From: asanoaozora Date: Wed, 3 Jan 2018 17:21:59 +0100 Subject: POI ID format updated to uint64 to be compliant with OSM ID --- test/poi-service/poi-client/mainwindow.cpp | 2 +- test/poi-service/poi-common/poi-common-types.h | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'test') diff --git a/test/poi-service/poi-client/mainwindow.cpp b/test/poi-service/poi-client/mainwindow.cpp index a9053fc..ba04430 100644 --- a/test/poi-service/poi-client/mainwindow.cpp +++ b/test/poi-service/poi-client/mainwindow.cpp @@ -1041,7 +1041,7 @@ void MainWindow::refreshViewTable(ushort windowSize) QList attributes; QList poiList; QList poiDetailsList; - QList idList; + QList idList; //populate attributes list with the requested attributes if (mp_attributeGetCheckBox.at(settingsAttributeSource)->isChecked()) diff --git a/test/poi-service/poi-common/poi-common-types.h b/test/poi-service/poi-common/poi-common-types.h index 65523a8..216a53f 100644 --- a/test/poi-service/poi-common/poi-common-types.h +++ b/test/poi-service/poi-common/poi-common-types.h @@ -24,7 +24,7 @@ #include #include -typedef uint poiId_t; +typedef qulonglong poiId_t; typedef uint categoryId_t; typedef uint resourceId_t; typedef uint attributeId_t; @@ -118,22 +118,22 @@ struct poiAttributeFull_t //(uui(yv)ib) bool mandatory; //true if the attribute is mandatory for the search and false for optional }; -struct resultSearch_t //(uuia(ui(yv))) +struct resultSearch_t //(tuia(ui(yv))) { - uint id; + poiId_t id; uint distance; int route_status; QList attributes; }; -struct detailsPOISearch_t //(us(ddd)) +struct detailsPOISearch_t //(ts(ddd)) { poiId_t id; QString name; //need to be a QString for UTF8 geoCoordinate3D_t location; }; -struct resultSearchDetails_t //((us(ddd))aua(ui(yv))) +struct resultSearchDetails_t //((ts(ddd))aua(ui(yv))) { detailsPOISearch_t details; QList categories; @@ -186,7 +186,7 @@ typedef QMap tupleUlongVariant; typedef QMap tupleUshortUshort; -struct resultCamSearch_t //(usu(ddd)qa(ui(yv))) +struct resultCamSearch_t //(tsu(ddd)qa(ui(yv))) { poiId_t source_id; std::string name; @@ -196,7 +196,7 @@ struct resultCamSearch_t //(usu(ddd)qa(ui(yv))) QList attributes; }; -struct resultCamSearchDetails_t //((us(ddd))aua(ui(yv))) +struct resultCamSearchDetails_t //((ts(ddd))aua(ui(yv))) { detailsPOISearch_t details; QList categories; -- cgit v1.2.1