From d6fe0adfa0aa79f83d34c101ff7229edd2d1eb20 Mon Sep 17 00:00:00 2001 From: Marcin Masternak Date: Thu, 4 Aug 2016 12:09:18 +0200 Subject: [PATCH] [my-place] PlaceRecognitionProvider::isSupported() implementation. Change-Id: I53e7246cc8b9b54c1ca070e29ec7fbd47a916e1d Signed-off-by: Marcin Masternak --- src/my-place/PlaceRecognitionProvider.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/my-place/PlaceRecognitionProvider.cpp b/src/my-place/PlaceRecognitionProvider.cpp index 0d434cc..85027dc 100644 --- a/src/my-place/PlaceRecognitionProvider.cpp +++ b/src/my-place/PlaceRecognitionProvider.cpp @@ -15,6 +15,7 @@ */ #include "PlaceRecognitionProvider.h" +#include void ctx::PlaceRecognitionProvider::getPrivilege(std::vector &privilege) { @@ -62,6 +63,8 @@ int ctx::PlaceRecognitionProvider::write(ctx::Json data, ctx::Json* requestResul bool ctx::PlaceRecognitionProvider::isSupported() { - /* TODO: This function should be implemented properly */ - return true; + bool locationSupport = util::getSystemInfoBool("tizen.org/feature/location"); + bool wifiSupport = util::getSystemInfoBool("tizen.org/feature/network.wifi"); + _D("locationSupport = %d, wifiSupport = %d", locationSupport, wifiSupport); + return locationSupport && wifiSupport; } -- 2.7.4