2 * Tizen ODE application
4 * Copyright (c) 2017 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.
26 #include <app_control.h>
28 #include <Elementary.h>
29 #include <system_settings.h>
31 #include <device/battery.h>
32 #include <device/callback.h>
33 #include <runtime_info.h>
36 #include <app_control.h>
40 #include "ode-app-widget.h"
48 #define PACKAGE "org.tizen.ode"
51 typedef struct dpm_encryption_info {
62 Evas_Object *next_button;
63 } dpm_encryption_info_s;
71 } dpm_encryption_viewtype;
76 } dpm_encryption_icontype;
78 typedef struct appdata {
83 Evas_Object* navi_bar;
84 Evas_Object* dpm_encryption_layout;
85 Evas_Object* sdcard_pw_layout;
86 dpm_encryption_info_s device_info;
89 char* icon_check_path;
95 #define __(str) dgettext("ode", str)
96 #define MSG_TEXT_STYLE "DEFAULT='font=Tizen:style=Regular font_size=30 color=#000000 wrap=mixed align=left'"
97 #define MAIN_MSG_TEXT_STYLE "DEFAULT='font=Tizen:style=Regular font_size=40 color=#000000 wrap=mixed align=left'"
98 #define SUB_MSG_TEXT_STYLE "DEFAULT='font=Tizen:style=Regular font_size=30 color=#000000 wrap=mixed align=left'"
99 #define NEEDED_BATTERY_PERCENT 80
101 /* for Progress Bar */
102 #define SUB_TITLE_STYLE_W "DEFAULT='font=Tizen:style=Regular font_size=40 color=#ffffff wrap=mixed align=center'"
103 #define SUB_CONTENT_STYLE_W "DEFAULT='font=Tizen:style=Regular font_size=32 color=#ffffff wrap=mixed align=center'"
105 void ode_encrypt_device_create_view(appdata_s* ad);
106 void ode_check_encrypt_device_create_view(appdata_s* ad);
107 void ode_encrypt_sd_card_create_view(appdata_s* ad);
108 void ode_decrypt_sd_card_create_view(appdata_s* ad);
110 void ode_confirm_encrypt_device_create_view(appdata_s* ad);
111 void ode_check_encrypt_sd_card_create_view(appdata_s* ad);
112 void ode_confirm_encrypt_sd_card_create_view(appdata_s* ad);
113 void ode_confirm_decrypt_sd_card_create_view(appdata_s* ad);
115 void locktype_status_changed_cb(keynode_t* node, void* data);
116 void sdcard_status_changed_cb(keynode_t* node, void* data);
117 void battery_changed_cb(device_callback_e type, void* value, void* user_data);
119 void create_base_window();
120 void create_progress_view(const char *type, const char *target);
122 #endif /* __ODE_H__ */