low battery: remove unnecessary header file 62/17062/1
authorTaeyoung Kim <ty317.kim@samsung.com>
Mon, 3 Mar 2014 10:49:57 +0000 (19:49 +0900)
committerTaeyoung Kim <ty317.kim@samsung.com>
Mon, 3 Mar 2014 10:51:10 +0000 (19:51 +0900)
- The contents of lowbatt.h are unnecessary except 3 definitions.
  Thus the contents are removed from low battery popup

Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Change-Id: I792baffc1a6fddd80f491623c919f3bc2bc266b3

lowbatt-popup/CMakeLists.txt
lowbatt-popup/src/lowbatt.c
lowbatt-popup/src/lowbatt.h [deleted file]

index ef792e6..5c11f41 100755 (executable)
@@ -3,6 +3,8 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
 PROJECT(lowbatt-popup C)
 
+SET(PACKAGE ${PROJECT_NAME})
+
 SET(SRCS ${CMAKE_SOURCE_DIR}/lowbatt-popup/src/lowbatt.c
                 ${CMAKE_SOURCE_DIR}/share/src/common.c)
 
@@ -35,6 +37,7 @@ IF("${ARCH}" STREQUAL "arm")
 ENDIF("${ARCH}" STREQUAL "arm")
 
 ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
+ADD_DEFINITIONS("-DPACKAGE=\"${PACKAGE}\"")
 ADD_DEFINITIONS("-DSLP_DEBUG")
 
 SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed")
index 747015b..90b0c2e 100755 (executable)
@@ -19,7 +19,6 @@
 
 
 #include <stdio.h>
-#include "lowbatt.h"
 #include <vconf.h>
 #include <utilX.h>
 #include <notification.h>
@@ -32,6 +31,9 @@
 #define CHARGE_ERROR_ACT       3
 #define BATTERY_DISCONNECT_ACT 4
 
+#define EDJ_PATH            PREFIX"/apps/org.tizen.lowbat-syspopup/res/edje/lowbatt"
+#define EDJ_NAME            EDJ_PATH"/lowbatt.edj"
+
 static int option = -1;
 
 int myterm(bundle *b, void *data)
diff --git a/lowbatt-popup/src/lowbatt.h b/lowbatt-popup/src/lowbatt.h
deleted file mode 100644 (file)
index b72d075..0000000
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- *  system-popup
- *
- * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
- * 
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-
-#ifndef __DEF_lowbatt_H_
-#define __DEF_lowbatt_H_
-
-#include <Elementary.h>
-
-#ifndef PREFIX
-#define PREFIX "/usr"
-#endif /* PREFIX */
-
-#define TEMP_DIR                       "/tmp"
-#define PACKAGE                                "lowbatt-popup"
-#define APPNAME                                "lowbatt-popup"
-#define MAIN_W                         (480)
-#define MAIN_H                         (800)
-#define EDJ_PATH                       PREFIX"/apps/org.tizen.lowbat-syspopup/res/edje/lowbatt"
-#define EDJ_NAME                       EDJ_PATH"/lowbatt.edj"
-#define GRP_MAIN                       "main"
-#define GRP_POPUP                      "popup"
-#define NEW_INDI
-#define APPLICATION_BG                 1
-#define INDICATOR_HEIGHT               (38)
-
-#ifndef PREDEF_POWEROFF
-#define PREDEF_POWEROFF                        "poweroff"
-#endif /* PREFEF_POWEROFF */
-
-#define BEAT
-
-/* Acct profiling support */
-#define  ACCT_PROF
-#ifdef   ACCT_PROF
-#include <sys/acct.h>
-#endif /* ACCT_PROF */
-
-#endif                         /* __DEF_lowbatt_H__ */