5ccaa701468c56c5770aed35242943d619249dd9
[apps/home/call.git] / ui / 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 #include "ui-gadget.h"
19
20 #ifndef _VCUI_DOC_LAUNCH_
21 #define _VCUI_DOC_LAUNCH_
22
23 #define PKGNAME_CONTACT_UG      "contacts-list-efl"
24 #define PKGNAME_DIALER_UG       "phoneui-efl"
25
26 typedef enum {
27         VCUI_UG_TYPE_NOE = 0,
28         VCUI_UG_TYPE_CONTACT_LIST,
29         VCUI_UG_TYPE_ADD_CALL,
30         VCUI_UG_TYPE_ADD_TO_CONTACTS,
31         VCUI_UG_TYPE_MAX
32 } vcui_ug_type;
33
34 struct vcui_ugs_array {
35         int ug_count;
36         int last_ug_type;
37         Eina_List *ug_lists;
38 };
39
40 struct vcui_ug_priv_data {
41         void (*on_start_callback) (void *);
42         void (*on_destroy_callback) (void *);
43         void *destroy_callback_param;
44         void *need_navi;
45         void *need_parent;
46         void *need_layout;
47         void *need_ug;
48         void *need_ug_lists;
49 };
50
51 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);
52 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);
53 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);
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