19e947bbe4b92211444423085fa4ae19a0e7880c
[apps/home/clock.git] / clock-common / include / clock_fwk_util.h
1 /*
2   * Copyright 2012  Samsung Electronics Co., Ltd
3   * 
4   * Licensed under the Flora License, Version 1.0 (the "License");
5   * you may not use this file except in compliance with the License.
6   * You may obtain a copy of the License at
7   * 
8   *     http://www.tizenopensource.org/license
9   * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16
17 #ifndef __CLK_FWK_UTIL_H__
18 #define __CLK_FWK_UTIL_H__
19
20 #include <Elementary.h>
21 #include "clock_fwk_define.h"
22 #include <alarm-engine.h>
23
24 Evas_Object *load_edj(Evas_Object *parent, const char *file, const char *group);
25 void win_del(void *data, Evas_Object *obj, void *event);
26 void main_quit_cb(void *data, Evas_Object *obj, const char *emission,
27                   const char *source);
28 Evas_Object *create_win(const char *name);
29 Evas_Object *create_bg(Evas_Object *win);
30 void update_ts(Evas_Object *eo, struct text_part *tp, int size);
31 int update_tc(Evas_Object *eo, struct _tc *tc);
32
33 int get_string_from_time(time_t stime, char *time, int num, int time_format);
34
35 Eina_Bool clk_evas_object_color_class_set(Evas_Object *obj, Edje_Color_Class *);
36 #endif                          //__CLK_FWK_UTIL_H__