Add default Smack manifest for org.tizen.ciss.spec
[pkgs/c/ciss.git] / include / ciss-widget.h
1 /*
2  * Copyright (c) 2000 - 2012 Samsung Electronics Co., Ltd All Rights Reserved 
3  *
4  * This file is part of <ciss>
5  * Written by <Sungjoon Won> <sungjoon.won@samsung.com>, <Jungmin Kim> <jm15.kim@samsung.com>
6  *
7  * PROPRIETARY/CONFIDENTIAL
8  *
9  * This software is the confidential and proprietary information of SAMSUNG ELECTRONICS ("Confidential Information").
10  * You shall not disclose such Confidential Information and shall use it only in accordance
11  * with the terms of the license agreement you entered into with SAMSUNG ELECTRONICS.
12  * SAMSUNG make no representations or warranties about the suitability of the software,
13  * either express or implied, including but not limited to the implied warranties of merchantability,
14  * fitness for a particular purpose, or non-infringement.
15  * SAMSUNG shall not be liable for any damages suffered by licensee as a result of using,
16  * modifying or distributing this software or its derivatives.
17  *
18  */
19
20 #ifndef _CISS_MMI_VIEW_UTILS_H_
21 #define _CISS_MMI_VIEW_UTILS_H_
22
23 #include <Elementary.h>
24 #include <vconf.h>
25 #include "ciss-types.h"
26
27 #define SK_PORTRAIT_W   (480)
28 #define SK_PORTRAIT_H   (78)
29 #define SK_PORTRAIT_X   (0)
30 #define SK_PORTRAIT_Y   (722)
31
32 #define TB_PORTRAIT_W   (480)
33 #define TB_PORTRAIT_H   (100)
34 #define TB_PORTRAIT_X   (0)
35 #define TB_PORTRAIT_Y   (0)
36
37 typedef enum {
38         OK_ONLY_RIGHT,
39         BACK_ONLY,
40         CANCEL_REPLY,
41         BACK_REPLY,
42         BACK_MORE,
43         HIDE_BACK
44 } ciss_softkey_t;
45
46 enum {
47         CISS_ICON_TYPE_NONE,
48         CISS_ICON_TYPE_ADD,
49         CISS_ICON_TYPE_EDIT,
50         CISS_ICON_TYPE_DONE,
51         CISS_ICON_TYPE_CANCEL,
52         CISS_ICON_TYPE_OTHERS,
53 };
54
55 Evas_Object *_ciss_create_noti_popup(Evas_Object *parent,
56                         char *strtitle, char *strmsg, double t_timeout,void *data);
57 Evas_Object *_ciss_create_error_popup(Evas_Object *parent,
58                         ciss_err_t ciss_error, double t_timeout,void *data);
59 Evas_Object *_ciss_create_popup(Evas_Object *parent, char *msg);
60 Evas_Object *_ciss_create_win(const char *name);
61 Evas_Object *_ciss_create_layout_main( Evas_Object* parent);
62 Evas_Object *_ciss_create_bg(Evas_Object *parent);
63 Evas_Object *_ciss_create_navi_control_bar(Evas_Object *parent,
64                         char *label1, Evas_Smart_Cb cb1,
65                         char *label2, Evas_Smart_Cb cb2,
66                         void *data, Elm_Object_Item *navi_it,
67                         Elm_Object_Item ** c_item);
68 Evas_Object *_cst_create_title_btn(Evas_Object *parent,
69                 const char *text, Evas_Smart_Cb func, void *data);
70 void _ciss_remove_naviframe(Evas_Object *nf);
71
72 /*Callback Functions */
73 Eina_Bool _ciss_on_end_key_down(void *data, int type, void *event);
74 Evas_Object * _ciss_create_result_genlist(const char *result_str, int str_len, Evas_Object *nf, void *data);
75 void _ciss_geinlist_item_class_new(void *data);
76 void _ciss_geinlist_item_class_free(void *data);
77
78 #endif
79