return Internal::Adaptor::Adaptor::GetImplementation( adaptor ).RemoveWindow( childWindowName );
}
+std::string GetDataPath()
+{
+ return Internal::Adaptor::Application::GetDataPath();
+}
+
} // namespace DevelApplication
} // namespace Dali
*/
DALI_ADAPTOR_API bool DestroyWindow( Application application, const std::string& childWindowName );
+/**
+* @brief Gets the absolute path to the application's data directory which is used to store private data of the application.
+* @return The absolute path to the application's data directory
+*/
+DALI_ADAPTOR_API std::string GetDataPath();
+
+
} // namespace DevelApplication
} // namespace Dali
return Internal::Adaptor::Framework::GetResourcePath();
}
+std::string Application::GetDataPath()
+{
+ return Internal::Adaptor::Framework::GetDataPath();
+}
+
void Application::SetStyleSheet( const std::string& stylesheet )
{
mStylesheet = stylesheet;
static std::string GetResourcePath();
/**
+ * @copydoc Dali::DevelApplication::GetDataPath()
+ */
+ static std::string GetDataPath();
+
+ /**
* Retrieves the pre-initialized application.
*
* @return A pointer to the pre-initialized application
static std::string GetResourcePath();
/**
+ * Gets the path at which application data are stored.
+ */
+ static std::string GetDataPath();
+
+ /**
* Sets system language.
*/
void SetLanguage( const std::string& language );
return resourcePath;
}
+std::string Framework::GetDataPath()
+{
+ std::string result;
+ char* dataPath = app_get_data_path();
+ if( dataPath )
+ {
+ result = dataPath;
+ free(dataPath);
+ }
+ return result;
+}
+
void Framework::SetBundleId(const std::string& id)
{
mBundleId = id;
return resourcePath;
}
+std::string Framework::GetDataPath()
+{
+ const char* ubuntuEnvironmentVariable = "DALI_APPLICATION_DATA_DIR";
+ char* value = getenv( ubuntuEnvironmentVariable );
+ std::string dataPath;
+ if ( value != NULL )
+ {
+ dataPath = value;
+ }
+
+ return dataPath;
+}
+
void Framework::SetBundleId(const std::string& id)
{
mBundleId = id;