Make TIZEN 2.0
[apps/home/call.git] / ui / src / include / vcui-doc-launch.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_DOC_LAUNCH_H_
19 #define _VCUI_DOC_LAUNCH_H_
20
21 #define PKGNAME_CONTACT_UG      "contacts-list-efl"
22 #define PKGNAME_DIALER_UG       "phone-tabui-efl"
23
24 typedef enum {
25         VCUI_UG_TYPE_NOE = 0,
26         VCUI_UG_TYPE_CONTACT_LIST,
27         VCUI_UG_TYPE_ADD_CALL,
28         VCUI_UG_TYPE_ADD_TO_CONTACTS,
29         VCUI_UG_TYPE_VIEW_CONTACT,
30         VCUI_UG_TYPE_MAX
31 } vcui_ug_type;
32
33 struct vcui_ugs_array {
34         int ug_count;
35         int last_ug_type;
36         Eina_List *ug_lists;
37 };
38
39 struct vcui_ug_priv_data {
40         void (*on_start_callback) (void *);
41         void (*on_destroy_callback) (void *);
42         void *destroy_callback_param;
43         void *need_navi;
44         void *need_parent;
45         void *need_layout;
46         void *need_ug;
47         void *need_ug_lists;
48 };
49
50 void _vcui_doc_launch_contact_list_ug(void *parent_ui_gadget, void *navi, void *parent, void (*on_start_callback) (void *), void (*on_destroy_callback) (void *), void *callback_param, void *ugs_array_data);
51 void _vcui_doc_launch_phoneui_ug(void *parent_ui_gadget, void *navi, void *parent, void (*on_start_callback) (void *), void (*on_destroy_callback) (void *), void *callback_param, void *ugs_array_data);
52 void _vcui_doc_launch_add_to_contacts_ug(void *parent_ui_gadget, void *navi, void *parent, void (*on_start_callback) (void *), void (*on_destroy_callback) (void *), void *callback_param, void *ugs_array_data, void *data);
53 void _vcui_doc_launch_view_contact_ug(void *parent_ui_gadget, void *navi, void *parent, void (*on_start_callback) (void *), void (*on_destroy_callback) (void *), void *callback_param, void *ugs_array_data, void *data);
54
55 void _vcui_doc_launch_msg_composer(void *data, char *number);
56 void _vcui_doc_launch_destroy_ug_all(void *ugs_array_data);
57
58 #endif