apply FSL(Flora Software License)
[apps/home/call.git] / ui / vcui-view-keypad.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 _VCUI_VIEW_KEYPAD_
19 #define _VCUI_VIEW_KEYPAD_
20
21 #ifndef STRLEN
22 #define STRLEN(str) (((str) == NULL) ? 0: strlen(str))
23 #endif
24
25 #define CURSOR_BEGIN    -1
26 #define CURSOR_END              -2
27
28 #define MAX_DIAL_NUMBER_FONT_SIZE               70
29 #define KEYPAD_STR_DEFINE_OPEN_SIZE     73
30 #define KEYPAD_STR_DEFINE_CLOSE_SIZE    43
31 #define KEYPAD_ENTRY_DISP_DATA_SIZE     1024
32 #define KEYPAD_ENTRY_SET_DATA_SIZE      (KEYPAD_STR_DEFINE_OPEN_SIZE + KEYPAD_STR_DEFINE_CLOSE_SIZE + KEYPAD_ENTRY_DISP_DATA_SIZE)
33
34 typedef struct {
35         Evas_Object *contents;
36         Evas_Object *ic;
37         call_data_t *now_data;
38
39         Evas_Object *entry;
40         int data_len;
41         char entry_disp_data[KEYPAD_ENTRY_DISP_DATA_SIZE+1];
42 } vcui_view_keypad_priv_t;
43
44 #endif
45
46 voice_call_view_data_t *_vcui_view_keypad_new(vcui_app_call_data_t *ad);