apply FSL(Flora Software License)
[apps/home/call.git] / ui / vcui-view-common.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
18 #ifndef _VOICE_CALL_UI_INCALL_
19 #define _VOICE_CALL_UI_INCALL_
20
21 #include <time.h>
22
23 #define TIME_BUF_LEN (16)
24 #define MIN_SEC (60)
25 #define HOUR_MIN (60)
26 #define DAY_HOUR (24)
27
28 #define TB_W (480)
29 #define TB_H (90)
30
31 typedef struct _vcui_view_common_t {
32         Ecore_Timer *tm;
33         Ecore_Timer *tm_end;
34         Ecore_Timer *tm_end_dialing;
35         Ecore_Timer *tm_end_force;
36
37         int bredial;
38
39         char sec, min, hour;
40         int timer_flag;
41         unsigned int call_time;
42
43         int time_end_flag;
44         int time_count;
45         int end_type;
46
47         time_t current_call_time;
48         time_t start_call_time;
49 } vcui_view_common_t;
50
51 void _vcui_view_common_set_each_time(time_t starttime);
52
53 void _vcui_view_common_timer_text_init();
54
55 void _vcui_view_common_set_text_time(char *time_dur);
56 void _vcui_view_common_init();
57
58 void _vcui_view_common_call_end_show(time_t start_time, int end_type);
59 void _vcui_view_common_call_end_show_dialing(int end_type, int bredial);
60 void _vcui_view_common_call_end_timer_reset(void);
61
62 void _vcui_view_common_timer_destroy();
63 void _vcui_view_common_timer_end_destroy();
64 void _vcui_view_common_timer_end_dialing_destroy();
65 void _vcui_view_common_timer_redial_reset();
66
67 int _vcui_view_common_call_terminate_or_view_change(void);
68
69 #endif