remove log/dial on Emulator
authorBongsoo Jeong <ps.jeong@samsung.com>
Wed, 5 Sep 2012 06:06:56 +0000 (15:06 +0900)
committerBongsoo Jeong <ps.jeong@samsung.com>
Wed, 5 Sep 2012 06:30:03 +0000 (15:30 +0900)
Change-Id: Ibbf96a941f90db8915ac6617b811f2b7bca10322

CMakeLists.txt
packaging/phone.spec
phone/phone.c

index 797fd9d..370e2fa 100755 (executable)
@@ -28,7 +28,7 @@ MESSAGE("Build type: ${CMAKE_BUILD_TYPE}")
 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
 
 INCLUDE(FindPkgConfig)
-pkg_check_modules(pkgs REQUIRED appcore-efl ui-gadget-1 contacts-service ecore-x evas ecore ecore-input edje eina syspopup-caller capi-appfw-application capi-system-runtime-info)
+pkg_check_modules(pkgs REQUIRED appcore-efl ui-gadget-1 contacts-service ecore-x evas ecore ecore-input edje eina syspopup-caller capi-appfw-application capi-system-runtime-info capi-system-info)
 
 FOREACH(flag ${pkgs_CFLAGS})
        SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
index e5bdb04..a285ba4 100644 (file)
@@ -26,6 +26,7 @@ BuildRequires:  pkgconfig(syspopup-caller)
 BuildRequires:  pkgconfig(capi-appfw-application)
 BuildRequires:  pkgconfig(capi-system-runtime-info)
 BuildRequires:  pkgconfig(capi-uix-feedback)
+BuildRequires:  pkgconfig(capi-system-info)
 
 BuildRequires:  cmake
 BuildRequires:  edje-bin
index f56fcce..7700833 100755 (executable)
 #include <ui-gadget.h>
 #include <contacts-svc.h>
 #include <app.h>
+#include <system_info.h>
 
 #include "phone.h"
-#include "ph-front.h"
+#include "ph-front.h" 
 
 struct phone_data
 {
@@ -80,6 +81,15 @@ static bool phapp_create(void *data)
        Evas_Object *win;
        struct phone_data *ad = data;
 
+       {
+               // Emulator does not support Dial/Log
+               char    pszModelName[100] = {0,};
+               system_info_get_value_string(SYSTEM_INFO_KEY_MODEL, &pszModelName);
+
+               if(strcasestr(pszModelName, "Emulator") != NULL)
+                       return false;
+       }
+
        /* create window */
        win = phapp_create_win(PACKAGE);
        p_retvm_if(NULL == win, -1, "phapp_create_win() Failed");