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 {
60 Evas_Object *next_button;
61 } dpm_encryption_info_s;
69 } dpm_encryption_viewtype;
74 } dpm_encryption_icontype;
76 typedef struct appdata {
81 Evas_Object* navi_bar;
82 Evas_Object* dpm_encryption_layout;
83 Evas_Object* sdcard_pw_layout;
84 dpm_encryption_info_s device_info;
87 char* icon_check_path;
93 #define __(str) dgettext("ode", str)
94 #define MSG_TEXT_STYLE "DEFAULT='font=Tizen:style=Regular font_size=30 color=#000000 wrap=mixed align=left'"
95 #define MAIN_MSG_TEXT_STYLE "DEFAULT='font=Tizen:style=Regular font_size=40 color=#000000 wrap=mixed align=left'"
96 #define SUB_MSG_TEXT_STYLE "DEFAULT='font=Tizen:style=Regular font_size=30 color=#000000 wrap=mixed align=left'"
97 #define NEEDED_BATTERY_PERCENT 80
99 /* for Progress Bar */
100 #define SUB_TITLE_STYLE_W "DEFAULT='font=Tizen:style=Regular font_size=40 color=#ffffff wrap=mixed align=center'"
101 #define SUB_CONTENT_STYLE_W "DEFAULT='font=Tizen:style=Regular font_size=32 color=#ffffff wrap=mixed align=center'"
103 void ode_encrypt_device_create_view(appdata_s* ad);
104 void ode_check_encrypt_device_create_view(appdata_s* ad);
105 void ode_encrypt_sd_card_create_view(appdata_s* ad);
106 void ode_decrypt_sd_card_create_view(appdata_s* ad);
108 void ode_confirm_encrypt_device_create_view(appdata_s* ad);
109 void ode_check_encrypt_sd_card_create_view(appdata_s* ad);
110 void ode_confirm_encrypt_sd_card_create_view(appdata_s* ad);
111 void ode_confirm_decrypt_sd_card_create_view(appdata_s* ad);
113 void locktype_status_changed_cb(keynode_t* node, void* data);
114 void sdcard_status_changed_cb(keynode_t* node, void* data);
115 void battery_changed_cb(device_callback_e type, void* value, void* user_data);
117 void create_base_window();
118 void create_progress_view(const char *type, const char *target);
120 #endif /* __ODE_H__ */