X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=adaptors%2Ftizen%2Fadaptor-impl-tizen.cpp;h=9972162daa2464bbaec9e1fcc2c90ab7937550c2;hb=8c538c12a9443057d476941467c302e0c1642beb;hp=048dfffb0c7934864a0e05efdf869d89d3a5740a;hpb=34ca0fe45438cfbea6520ca72db549ad4410da02;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/adaptors/tizen/adaptor-impl-tizen.cpp b/adaptors/tizen/adaptor-impl-tizen.cpp index 048dfff..9972162 100644 --- a/adaptors/tizen/adaptor-impl-tizen.cpp +++ b/adaptors/tizen/adaptor-impl-tizen.cpp @@ -19,8 +19,10 @@ #include // EXTERNAL INCLUDES -#ifdef OVER_TIZEN_SDK_2_2 #include +#ifdef APPCORE_WATCH_AVAILABLE +#include +#include #endif namespace Dali @@ -34,13 +36,49 @@ namespace Adaptor 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 +} + +void Adaptor::SurfaceInitialized() +{ +#ifdef APPCORE_WATCH_AVAILABLE + if ( !mUseRemoteSurface ) + { + return; + } + char *appId; + app_get_id(&appId); + + Ecore_Wl_Window* ecoreWlWindow = AnyCast( mNativeWindow ); + screen_connector_provider_remote_enable(appId, ecore_wl_window_surface_get(ecoreWlWindow)); #endif }