2 * Tizen Krate Setup-Wizard application
4 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
19 #ifndef __KRATE_SETUP_H__
20 #define __KRATE_SETUP_H__
27 #include <app_common.h>
30 #include <Elementary.h>
31 #include <system_settings.h>
33 #include <krate/krate.h>
34 #include <krate/app-proxy.h>
39 #define LOG_TAG "krate-setup-wizard"
42 #define PACKAGE "org.tizen.krate-setup-wizard"
45 #define KEYGUARD_PACKAGE "org.tizen.keyguard"
46 #define KASKIT_PACKAGE "org.tizen.kaskit"
48 #define DPM_SYSPOPUP_ICON_PATH "/usr/share/icons/default/small/org.tizen.dpm-syspopup.png"
49 #define TITLE_STYLE_W "DEFAULT='font=Tizen:style=Reqular font_size=46 color=#ffffff wrap=mixed align=center'"
50 #define SUB_TITLE_STYLE_B "DEFAULT='font=Tizen:style=Regular font_size=50 color=#000000 wrap=mixed align=center'"
51 #define SUB_CONTENT_STYLE_B "DEFAULT='font=Tizen:style=Regular font_size=36 color=#000000 wrap=mixed align=center'"
52 #define SUB_TITLE_STYLE_W "DEFAULT='font=Tizen:style=Regular font_size=50 color=#ffffff wrap=mixed align=center'"
53 #define SUB_CONTENT_STYLE_W "DEFAULT='font=Tizen:style=Regular font_size=36 color=#ffffff wrap=mixed align=center'"
55 #define ENTRY_TITLE_STYLE_B "DEFAULT='font=Tizen:style=Regular font_size=36 color=#000000 wrap=mixed'"
56 #define ENTRY_INFO_STYLE_G "DEFAULT='font=Tizen:style=Regular font_size=32 color=#A9A9A9 wrap=mixed'"
58 #define BODY_KRATE_CREATE_ERROR "Failed to create the Separated Krate."
59 #define BODY_KRATE_REMOVE_ERROR "Failed to remove the Separated Krate."
61 #define __(str) dgettext("krate-setup-wizard", str)
68 krate_manager_h krate_manager;
69 int krate_event_cb_id;
72 app_control_h app_control;
82 void _create_base_window(appdata_s *data);
83 void _create_security_view(appdata_s *data);
84 void _create_setup_view(appdata_s *data);
85 void _create_two_button_layout(Evas_Object *parent, Evas_Object *left_button, Evas_Object *right_button);
87 int _send_krate_create_request(appdata_s *ad);
88 int _send_krate_remove_request(appdata_s *ad);
89 void _create_notification(app_control_h app_control);
90 void *krate_request_fail(void *ad);
92 #endif /* __KRATE_SETUP_H__ */