[Tizen](ATSPI) squashed implementation
[platform/core/uifw/dali-adaptor.git] / dali / internal / adaptor / tizen-wayland / adaptor-impl-tizen.cpp
index 029a86f..d1761bf 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
 #endif
 
 #ifdef ECORE_WAYLAND2
-#include <Ecore_Wl2.h>
+#include <dali/internal/adaptor/tizen-wayland/dali-ecore-wl2.h>
 #else
-#include <Ecore_Wayland.h>
+#include <dali/internal/adaptor/tizen-wayland/dali-ecore-wayland.h>
 #endif
 
 
+#include <aul.h>
+#include <unistd.h>
+
 namespace Dali
 {
 
@@ -66,6 +69,14 @@ static void OnSystemLanguageChanged( system_settings_key_e key, void* data )
 
 } // namesapce
 
+std::string Adaptor::GetApplicationPackageName()
+{
+  char appname[4096] = {0};
+  int pid = getpid();
+  aul_app_get_pkgname_bypid( pid, appname, sizeof( appname ) );
+  return appname;
+}
+
 void Adaptor::GetDataStoragePath( std::string& path)
 {
 #ifdef USE_APPFW