/**
* This method sets the preferred language, using a two-letter BCP-47 code
- * supplied by the caller.
+ * supplied by the caller.
*
* @param sLanguage A const reference to a string containing a two-letter
* code identifying the preferred map language.
/**
* This method sets a flag to indicate whether a high-resolution map is to be used.
- *
+ *
* @param haveHighResolution A Boolean, <code>true</code> to indicate that a
* high-resolution map is to be used, otherwise <code>false</code>.
*/
/**
* This method retrieves a Boolean value indicating whether a high-resolution map is used.
- *
+ *
* @return A Boolean, <code>true</code> to indicate that a
* high-resolution map is (to be) used, otherwise <code>false</code>.
*/
bool HaveHighResolutionMap() const;
+#ifdef TIZEN_MIGRATION
+ /**
+ * This method retrieves a Boolean value indicating whether the user has consented to use HERE solution.
+ *
+ * @return A Boolean, <code>true</code> to indicate that a
+ * the user has consented to use HERE solution, otherwise <code>false</code>.
+ */
+ bool GetUserConsent();
+
+ /**
+ * This method sets a flag to indicate whether the user has consented to use HERE solution.
+ *
+ * @param consented A Boolean, <code>true</code> to indicate that a
+ * the user has consented to use HERE solution, otherwise <code>false</code>.
+ */
+ void SetUserConsent(bool consented);
+#endif
+
private:
/**
* This method is a private constructor for the singleton.
-libheremaps-engine.so.1.0.6_30
\ No newline at end of file
+libheremaps-engine.so.1.0.6_31
\ No newline at end of file
-libheremaps-engine.so.1.0.6_30
\ No newline at end of file
+libheremaps-engine.so.1.0.6_31
\ No newline at end of file
-libheremaps-engine.so.1.0.6_30
\ No newline at end of file
+libheremaps-engine.so.1.0.6_31
\ No newline at end of file
-libheremaps-engine.so.1.0.6_30
\ No newline at end of file
+libheremaps-engine.so.1.0.6_31
\ No newline at end of file
Name: maps-plugin-here
Summary: Tizen HERE Maps Plug-in Library
-Version: 0.3.22
+Version: 0.3.23
Release: 1
Group: Location/Libraries
License: Apache-2.0 and HERE
if (!hPlugin)
return HERE_ERROR_INVALID_PARAMETER;
- if (!module || strcmp(module, "NOUC") != 0) {
- bool consent = false;
- here_error_e error = HereUserConsent::GetUserConsent(&consent);
- if (error != HERE_ERROR_NONE)
- return error;
- if (consent != true)
- return HERE_ERROR_USER_NOT_CONSENTED;
- }
+ bool consent = false;
+ here_error_e error = HereUserConsent::GetUserConsent(&consent);
+ if (error != HERE_ERROR_NONE)
+ return error;
+
+ if (consent == false && (!module || strcmp(module, "NOUC") != 0))
+ return HERE_ERROR_USER_NOT_CONSENTED;
HereManager::Create();
#include <vconf.h>
#include <vconf-internal-location-keys.h>
+#include <common/ApplicationContext.h>
+
#include "heremaps-uc-dbus.h"
#include "here_userconsent.h"
pUserConsent->isSetVconfCb = false;
MAPS_LOGD("Vconf value of HereMaps is %d", enabled);
+ ApplicationContext::GetInstance().SetUserConsent(enabled);
+
if (pUserConsent->m_provider)
((maps_service_request_user_consent_cb)pUserConsent->m_pCbFunc)((bool)enabled, pUserConsent->m_provider, pUserConsent->m_pUserData);
else
g_free(strAppId);
}
*consent = (enabled == 1);
+ ApplicationContext::GetInstance().SetUserConsent(*consent);
return HERE_ERROR_NONE;
}
MAPS_LOGD("Fail to set vconf value");
return HERE_ERROR_SERVICE_NOT_AVAILABLE;
}
-
+ ApplicationContext::GetInstance().SetUserConsent(enabled);
return HERE_ERROR_NONE;
}