Workaround to support APP_RESOURCE_PATH constants in stylesheet.
Signed-off-by: minho.sun <minho.sun@samsung.com>
Change-Id: Ie85f3cbc9d673cab5efad0106112f65f47669cbc
#include "style-monitor-impl.h"
// EXTERNAL INCLUDES
+#include <app.h>
#include <dali/public-api/object/type-registry.h>
#include <fstream>
#include <sstream>
EmitStyleChangeSignal( StyleChange::THEME_CHANGE );
}
+std::string StyleMonitor::GetAppResourcePath()
+{
+ std::string resourcePath = "";
+ resourcePath = app_get_resource_path();
+ return resourcePath;
+}
+
bool StyleMonitor::LoadThemeFile( const std::string& filename, std::string& output )
{
bool retval( false );
*/
bool LoadThemeFile( const std::string& filename, std::string& output );
+ /**
+ * @copydoc Dali::StyleMonitor::GetResourcePath()
+ */
+ std::string GetAppResourcePath();
+
// Signals
/**
return GetImplementation(*this).LoadThemeFile( filename, output );
}
+std::string StyleMonitor::GetAppResourcePath()
+{
+ return GetImplementation(*this).GetAppResourcePath();
+}
+
StyleMonitor::StyleChangeSignalType& StyleMonitor::StyleChangeSignal()
{
return GetImplementation(*this).StyleChangeSignal();
*/
bool LoadThemeFile( const std::string& filename, std::string& output );
+ /**
+ * @brief Retrieves the app resource path.
+ * @return app resource path.
+ */
+ std::string GetAppResourcePath();
+
public: // Signals
/**