summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorAdarsh Shree Ram <adarsh.ram@samsung.com>2016-09-20 20:36:58 +0530
committerAdarsh Shree Ram <adarsh.ram@samsung.com>2016-09-20 20:36:58 +0530
commit978d156b5758291186f49f5eeb4c0a0372e3ff0b (patch)
tree796e772db8538b494aabddb8b978ee95abfe1f29 /inc
parent7dc528175a1edff0bef9c6fa35c90381bd3ef016 (diff)
downloadalarm-978d156b5758291186f49f5eeb4c0a0372e3ff0b.tar.gz
alarm-978d156b5758291186f49f5eeb4c0a0372e3ff0b.tar.bz2
alarm-978d156b5758291186f49f5eeb4c0a0372e3ff0b.zip
Timepicker issue resolved.submit/tizen/20160920.152823
Change-Id: Ib30347a3581c73a3247214f17deb10eb24b19442
Diffstat (limited to 'inc')
-rwxr-xr-xinc/alarm.h2
-rwxr-xr-xinc/data.h2
-rwxr-xr-xinc/log.h146
-rwxr-xr-xinc/view.h13
4 files changed, 155 insertions, 8 deletions
diff --git a/inc/alarm.h b/inc/alarm.h
index 7b56509..f72c962 100755
--- a/inc/alarm.h
+++ b/inc/alarm.h
@@ -57,7 +57,7 @@ typedef enum {
NORMAL_MODE ,
EDIT_MODE,
} mode_type;
-void update_genlist(int last_alarm_id,int edit_mode,int type);
+void update_genlist(int last_alarm_id, int edit_mode, int type);
void update_genlist_first();
void populate_genlist();
void end_genlist();
diff --git a/inc/data.h b/inc/data.h
index 37e386d..a8b8a9e 100755
--- a/inc/data.h
+++ b/inc/data.h
@@ -66,5 +66,5 @@ void data_alarm_destroy_genlist_item_data(struct genlist_item_data *gendata);
char *data_get_popup_text(struct tm *saved_time);
char *data_get_popup_text_new(int diffinsec);
-int find_diff(struct tm *current_time,struct tm *saved_time);
+int find_diff(struct tm *current_time, struct tm *saved_time);
#endif
diff --git a/inc/log.h b/inc/log.h
new file mode 100755
index 0000000..894106b
--- /dev/null
+++ b/inc/log.h
@@ -0,0 +1,146 @@
+/*
+ * Samsung API
+ * Copyright (c) 2013 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Flora License, Version 1.1 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://floralicense.org/license/
+ *
+ * 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 __SAMPLE_APP_LOG_H__
+#define __SAMPLE_APP_LOG_H__
+
+#include <unistd.h>
+#include <dlog.h>
+
+#define FONT_COLOR_RESET "\033[0m"
+#define FONT_COLOR_RED "\033[31m"
+#define FONT_COLOR_GREEN "\033[32m"
+#define FONT_COLOR_YELLOW "\033[33m"
+#define FONT_COLOR_BLUE "\033[34m"
+#define FONT_COLOR_PURPLE "\033[35m"
+#define FONT_COLOR_CYAN "\033[36m"
+#define FONT_COLOR_GRAY "\033[37m"
+
+#define WCOLOR_RED "\033[0;31m"
+#define WCOLOR_GREEN "\033[0;32m"
+#define WCOLOR_BROWN "\033[0;33m"
+#define WCOLOR_BLUE "\033[0;34m"
+#define WCOLOR_PURPLE "\033[0;35m"
+#define WCOLOR_CYAN "\033[0;36m"
+#define WCOLOR_LIGHTBLUE "\033[0;37m"
+#define WCOLOR_END "\033[0;m"
+#define MODULE_INFO (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
+
+#undef LOG_TAG
+#define LOG_TAG "alarm"
+
+#if !defined(_D)
+#define _D(fmt, arg...) dlog_print(DLOG_DEBUG, \
+ LOG_TAG, "%s: %s(%d) > " WCOLOR_GREEN fmt WCOLOR_END, MODULE_INFO, \
+ __func__, __LINE__, ##arg)
+#endif
+
+#if !defined(_W)
+#define _W(fmt, arg...) (dlog_print(DLOG_WARN, \
+ LOG_TAG, "%s: %s(%d) > " WCOLOR_GREEN fmt WCOLOR_END, MODULE_INFO, \
+ __func__, __LINE__, ##arg))
+#endif
+
+#if !defined(_E)
+#define _E(fmt,arg...) (dlog_print(DLOG_ERROR, \
+ LOG_TAG, "%s: %s(%d) > " WCOLOR_RED fmt WCOLOR_END, MODULE_INFO, \
+ __func__, __LINE__, ##arg))
+#endif
+
+#if !defined(ALM_INFO)
+#define ALM_INFO(fmt, arg...) (dlog_print(DLOG_DEBUG, \
+ LOG_TAG, "%s: %s(%d) > " WCOLOR_GREEN fmt WCOLOR_END, MODULE_INFO, \
+ __func__, __LINE__, ##arg))
+#endif
+
+#if !defined(ALM_SINFO)
+#define ALM_SINFO(fmt, arg...) (dlog_print(DLOG_DEBUG, \
+ LOG_TAG, "%s: %s(%d) > " WCOLOR_GREEN fmt WCOLOR_END, MODULE_INFO, \
+ __func__, __LINE__, ##arg))
+#endif
+
+#if !defined(ALM_ERR)
+#define ALM_ERR(fmt,arg...) (dlog_print(DLOG_ERROR, \
+ LOG_TAG, "%s: %s(%d) > " WCOLOR_RED fmt WCOLOR_END, MODULE_INFO, \
+ __func__, __LINE__, ##arg))
+#endif
+
+#if !defined(_ALM_ENTER_)
+#define _ALM_ENTER_ _D("%s - Entry", __func__)
+#endif
+
+#if !defined(DBG)
+#define DBG(fmt , args...) \
+ do { \
+ dlog_print(DLOG_DEBUG, \
+ LOG_TAG, "%s: %s(%d) > " WCOLOR_GREEN fmt WCOLOR_END, MODULE_INFO, \
+ __func__, __LINE__, ##arg)\
+ } while (0)
+#endif
+
+#define retvm_if(expr, val, fmt, arg...) do { \
+ if(expr) { \
+ _E(fmt, ##arg); \
+ _E("(%s) -> %s() return", #expr, __FUNCTION__); \
+ return val; \
+ } \
+} while (0)
+
+#define retv_if(expr, val) do { \
+ if(expr) { \
+ _E("(%s) -> %s() return", #expr, __FUNCTION__); \
+ return (val); \
+ } \
+} while (0)
+
+#define retm_if(expr, fmt, arg...) do { \
+ if(expr) { \
+ _E(fmt, ##arg); \
+ _E("(%s) -> %s() return", #expr, __FUNCTION__); \
+ return; \
+ } \
+} while (0)
+
+#define ret_if(expr) do { \
+ if(expr) { \
+ _E("(%s) -> %s() return", #expr, __FUNCTION__); \
+ return; \
+ } \
+} while (0)
+
+#define goto_if(expr, val) do { \
+ if(expr) { \
+ _E("(%s) -> goto", #expr); \
+ goto val; \
+ } \
+} while (0)
+
+#define break_if(expr) { \
+ if(expr) { \
+ _E("(%s) -> break", #expr); \
+ break; \
+ } \
+}
+
+#define continue_if(expr) { \
+ if(expr) { \
+ _E("(%s) -> continue", #expr); \
+ continue; \
+ } \
+}
+
+#endif /* __SAMPLE_APP_LOG_H__ */
diff --git a/inc/view.h b/inc/view.h
index 2d39386..523615a 100755
--- a/inc/view.h
+++ b/inc/view.h
@@ -34,18 +34,19 @@ Evas_Object *view_get_conformant(void);
void view_free_s_info();
void view_create(void);
void view_alarm_create(void);
- char* _gl_text_get(void *data, Evas_Object *obj, const char *part);
- Evas_Object* _gl_alarm_set_icon_get(void *data, Evas_Object *obj, const char *part);
- void _gl_del(void *data, Evas_Object *obj);
+char* _gl_text_get(void *data, Evas_Object *obj, const char *part);
+Evas_Object* _gl_alarm_set_icon_get(void *data, Evas_Object *obj, const char *part);
+void _gl_del(void *data, Evas_Object *obj);
+Evas_Object *view_get_timepicker(void);
Evas_Object *view_create_win(const char *pkg_name);
Evas_Object *view_create_conformant_without_indicator(Evas_Object *win);
Evas_Object *view_create_layout(Evas_Object *parent, const char *file_path, const char *group_name, Eext_Event_Cb cb_function, void *user_data);
Evas_Object *view_create_layout_by_theme(Evas_Object *parent, const char *classname, const char *group, const char *style);
Evas_Object *view_create_datetime(Evas_Object *parent, const char *style ,Eext_Circle_Surface *local_circle_surface);
struct tm *view_get_datetime();
- Eina_Bool view_get_is_select_mode(void);
- void view_set_is_select_mode( Eina_Bool is_edit_mode);
- void go_to_normal();
+Eina_Bool view_get_is_select_mode(void);
+void view_set_is_select_mode( Eina_Bool is_edit_mode);
+void go_to_normal();
void view_destroy(void);
void view_alarm_destroy(void);