tizen 2.4 release
[framework/security/cert-svc-ui.git] / cert-selection-ug / include / cert-selection-uigadget.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *    Licensed under the Apache License, Version 2.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.apache.org/licenses/LICENSE-2.0
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  * @file        cert-selection-uigadget.h
18  * @author      Janusz Kozerski (j.kozerski@samsung.com)
19  * @version     1.0
20  */
21
22 #ifndef __UG_SETTING_SELECT_CERTIFICATE_EFL_H__
23 #define __UG_SETTING_SELECT_CERTIFICATE_EFL_H__
24
25 #include <Elementary.h>
26 #include <ui-gadget.h>
27 #include <ui-gadget-module.h>
28 #include <glib.h>
29 #include <app.h>
30
31 #ifndef PACKAGE
32 #define PACKAGE "setting-manage-certificates-efl"
33 #endif
34
35 #ifndef LOCALEDIR
36 #define LOCALEDIR PREFIX "/res/locale"
37 #endif
38
39 struct ug_data {
40         Evas_Object     *win_main;
41         Evas_Object     *bg;
42         Evas_Object     *popup;
43         Evas_Object     *layout_main;
44         Evas_Object     *navi_bar;
45         GList           *view_list;
46         ui_gadget_h     ug;
47         ui_gadget_h     sub_ug;
48         app_control_h   *service;
49         void            *data;
50         Elm_Object_Item *user_cert_list_item;
51         Elm_Theme       *theme;
52         Evas_Object     *ctx_popup;
53         Evas_Object     *more_popup2;
54 };
55
56 struct ug_data *get_ug_data();
57
58 void cert_selection_install_cb(void *data, Evas_Object *obj, void *event_info);
59
60 #endif /* __UG_SETTING_SELECT_CERTIFICATE_EFL_H__ */