diff options
author | asanoaozora <fifitaneki@hotmail.com> | 2016-08-22 18:26:14 +0200 |
---|---|---|
committer | asanoaozora <fifitaneki@hotmail.com> | 2016-08-22 18:26:14 +0200 |
commit | 9207b98e3d20750c64e57fea0b5e56c2659e593f (patch) | |
tree | df2faf5914f2bc82ae33d7cfcdea7c42d2c33ff6 /src/poi-service/poi-server-capi | |
parent | 2cb3270bbf19649ddb1b5dad764ca4b8e25708ec (diff) | |
download | poi-service-9207b98e3d20750c64e57fea0b5e56c2659e593f.tar.gz |
add test file for poi search (common api version)
Diffstat (limited to 'src/poi-service/poi-server-capi')
-rw-r--r-- | src/poi-service/poi-server-capi/main.cpp | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/src/poi-service/poi-server-capi/main.cpp b/src/poi-service/poi-server-capi/main.cpp index 5ef7306..1f9756e 100644 --- a/src/poi-service/poi-server-capi/main.cpp +++ b/src/poi-service/poi-server-capi/main.cpp @@ -1402,6 +1402,7 @@ void POISearchServerStub::getCategoriesDetails(const std::shared_ptr<CommonAPI:: categoryAttribute.setId((m_availableCategoryTable[category_index].attributeList.at(sub_index)).id); categoryAttribute.setName((m_availableCategoryTable[category_index].attributeList.at(sub_index)).name); categoryAttribute.setType(POIServiceTypes::AttributeType::BOOLEAN); + operatorList.clear(); categoryOperator.setType(POIServiceTypes::OperatorType::EQUAL); categoryOperator.setName("EQUAL"); //redondancy categoryOperator.setValue(std::string("")); @@ -1684,7 +1685,6 @@ void POISearchServerStub::cancelPoiSearch(const std::shared_ptr<CommonAPI::Clien _reply(); } - void POISearchServerStub::startPoiProximityAlert(const std::shared_ptr<CommonAPI::ClientId> _client, ::v4::org::genivi::navigation::NavigationTypes::Handle _poiSearchHandle, std::string _inputString, ::v4::org::genivi::navigation::poiservice::POIServiceTypes::SortOption _sortOption, startPoiProximityAlertReply_t _reply) { if ((m_poiSearchHandle == INVALID_HANDLE) || (_poiSearchHandle != m_poiSearchHandle)) @@ -2428,8 +2428,8 @@ void POIConfigurationServerStub::setLocale(const std::shared_ptr<CommonAPI::Clie m_scriptCode = _scriptCode; changedSettings.push_back(POIServiceTypes::Settings::LOCALE); - fireConfigurationChangedEvent(changedSettings); + _reply(); } void POIConfigurationServerStub::getLocale(const std::shared_ptr<CommonAPI::ClientId> _client, getLocaleReply_t _reply) @@ -2444,7 +2444,13 @@ void POIConfigurationServerStub::getSupportedLocales(const std::shared_ptr<Commo void POIConfigurationServerStub::setTimeFormat(const std::shared_ptr<CommonAPI::ClientId> _client, NavigationTypes::TimeFormat _format, setTimeFormatReply_t _reply) { + std::vector<POIServiceTypes::Settings> changedSettings; + m_timeFormat = _format; + + changedSettings.push_back(POIServiceTypes::Settings::TIME_FORMAT); + fireConfigurationChangedEvent(changedSettings); + _reply(); } void POIConfigurationServerStub::getTimeFormat(const std::shared_ptr<CommonAPI::ClientId> _client, getTimeFormatReply_t _reply) @@ -2459,7 +2465,13 @@ void POIConfigurationServerStub::getSupportedTimeFormats(const std::shared_ptr<C void POIConfigurationServerStub::setCoordinatesFormat(const std::shared_ptr<CommonAPI::ClientId> _client, POIConfiguration::CoordinatesFormat _coordinatesFormat, setCoordinatesFormatReply_t _reply) { + std::vector<POIServiceTypes::Settings> changedSettings; + m_coordinatesFormat = _coordinatesFormat; + + changedSettings.push_back(POIServiceTypes::Settings::COORDINATES_FORMAT); + fireConfigurationChangedEvent(changedSettings); + _reply(); } void POIConfigurationServerStub::getCoordinatesFormat(const std::shared_ptr<CommonAPI::ClientId> _client, getCoordinatesFormatReply_t _reply) @@ -2474,7 +2486,13 @@ void POIConfigurationServerStub::getSupportedCoordinatesFormat(const std::shared void POIConfigurationServerStub::setUnitsOfMeasurement(const std::shared_ptr<CommonAPI::ClientId> _client, POIConfiguration::UnitsOfMeasurement _unitsOfMeasurementList, setUnitsOfMeasurementReply_t _reply) { + std::vector<POIServiceTypes::Settings> changedSettings; + m_unitsOfMeasurement = _unitsOfMeasurementList; + + changedSettings.push_back(POIServiceTypes::Settings::UNITS_OF_MEASUREMENT); + fireConfigurationChangedEvent(changedSettings); + _reply(); } void POIConfigurationServerStub::getUnitsOfMeasurement(const std::shared_ptr<CommonAPI::ClientId> _client, getUnitsOfMeasurementReply_t _reply) |