#include <adaptor-impl.h>
// EXTERNAL INCLUDES
-#ifdef OVER_TIZEN_SDK_2_2
+#ifdef USE_APPFW
#include <app.h>
#endif
void Adaptor::GetDataStoragePath( std::string& path)
{
- path = "";
-#ifdef OVER_TIZEN_SDK_2_2
+#ifdef USE_APPFW
char *pathInt = app_get_data_path();
if ( pathInt )
{
path = pathInt;
free( pathInt );
}
+ else
+ {
+ path = "";
+ }
+#endif
+
+}
+
+void Adaptor::GetAppId( std::string& appId )
+{
+#ifdef USE_APPFW
+ char *id;
+ app_get_id(&id);
+ if ( id )
+ {
+ appId = id;
+ }
+ else
+ {
+ appId = "";
+ }
#endif
}