Change-Id: I53e7246cc8b9b54c1ca070e29ec7fbd47a916e1d
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
*/
#include "PlaceRecognitionProvider.h"
+#include <Util.h>
void ctx::PlaceRecognitionProvider::getPrivilege(std::vector<const char*> &privilege)
{
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;
}