From: Michal Skorupinski Date: Tue, 8 May 2018 13:41:19 +0000 (+0200) Subject: setting-backup-and-reset converted to natvie X-Git-Tag: submit/tizen/20190409.085310~1^2~147 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a6f28dba7c00261fca9d7a3f8536f1f4f0cfa00d;p=profile%2Fmobile%2Fapps%2Fnative%2Fsettings.git setting-backup-and-reset converted to natvie Change-Id: I76670235c1e87db02f16de9e672402a8a5dccd3e Signed-off-by: Michal Skorupinski --- diff --git a/setting-backup-and-reset/.cproject b/setting-backup-and-reset/.cproject new file mode 100644 index 00000000..6e39fca9 --- /dev/null +++ b/setting-backup-and-reset/.cproject @@ -0,0 +1,631 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/setting-backup-and-reset/.exportMap b/setting-backup-and-reset/.exportMap new file mode 100644 index 00000000..de305161 --- /dev/null +++ b/setting-backup-and-reset/.exportMap @@ -0,0 +1,5 @@ +{ + global: main; + _IO_*; + local: *; +}; diff --git a/setting-backup-and-reset/.gitignore b/setting-backup-and-reset/.gitignore new file mode 100644 index 00000000..b4555b68 --- /dev/null +++ b/setting-backup-and-reset/.gitignore @@ -0,0 +1,2 @@ +/Debug/ +/Build/ diff --git a/setting-backup-and-reset/.project b/setting-backup-and-reset/.project new file mode 100644 index 00000000..3de08554 --- /dev/null +++ b/setting-backup-and-reset/.project @@ -0,0 +1,46 @@ + + + setting-backup-and-reset + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + + + 1525776937246 + + 26 + + org.eclipse.ui.ide.multiFilter + 1.0-projectRelativePath-matches-false-false-*/.tpk + + + + 1525776937249 + + 6 + + org.eclipse.ui.ide.multiFilter + 1.0-name-matches-false-false-project_def.prop + + + + diff --git a/setting-backup-and-reset/.settings/org.eclipse.cdt.core.prefs b/setting-backup-and-reset/.settings/org.eclipse.cdt.core.prefs new file mode 100644 index 00000000..8ab4a644 --- /dev/null +++ b/setting-backup-and-reset/.settings/org.eclipse.cdt.core.prefs @@ -0,0 +1,6 @@ +eclipse.preferences.version=1 +environment/project/org.tizen.nativecore.config.sbi.gcc45.app.debug.763169722/SBI_SYSROOT/delimiter=\: +environment/project/org.tizen.nativecore.config.sbi.gcc45.app.debug.763169722/SBI_SYSROOT/operation=replace +environment/project/org.tizen.nativecore.config.sbi.gcc45.app.debug.763169722/SBI_SYSROOT/value=/home/m.skorupinsk/tizen-studio/tools/smart-build-interface/../../platforms/tizen-5.0/mobile/rootstraps/mobile-5.0-emulator.core.private.latest +environment/project/org.tizen.nativecore.config.sbi.gcc45.app.debug.763169722/append=true +environment/project/org.tizen.nativecore.config.sbi.gcc45.app.debug.763169722/appendContributed=true diff --git a/setting-backup-and-reset/.tproject b/setting-backup-and-reset/.tproject new file mode 100644 index 00000000..468a8344 --- /dev/null +++ b/setting-backup-and-reset/.tproject @@ -0,0 +1,12 @@ + + + + + mobile-4.0 + + + + + + + diff --git a/setting-backup-and-reset/build_def.prop b/setting-backup-and-reset/build_def.prop new file mode 100644 index 00000000..6bb5e2f0 --- /dev/null +++ b/setting-backup-and-reset/build_def.prop @@ -0,0 +1,6 @@ + +# Add pre/post build process +PREBUILD_DESC = +PREBUILD_COMMAND = +POSTBUILD_DESC = +POSTBUILD_COMMAND = diff --git a/setting-backup-and-reset/inc/setting-backup-and-reset-cloud-view.h b/setting-backup-and-reset/inc/setting-backup-and-reset-cloud-view.h new file mode 100644 index 00000000..f75a68d6 --- /dev/null +++ b/setting-backup-and-reset/inc/setting-backup-and-reset-cloud-view.h @@ -0,0 +1,29 @@ +/* + * setting + * + * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#ifndef SETTING_BACKUP_AND_RESET_INCLUDE_SETTING_BACKUP_AND_RESET_CLOUD_VIEW_H_ +#define SETTING_BACKUP_AND_RESET_INCLUDE_SETTING_BACKUP_AND_RESET_CLOUD_VIEW_H_ + +#include "setting-backup-and-reset.h" + +void cloud_view_init(SettingBackupReset *ad); + +extern setting_view setting_backup_reset_cloud_view; + +#endif /* SETTING_BACKUP_AND_RESET_INCLUDE_SETTING_BACKUP_AND_RESET_CLOUD_VIEW_H_ */ diff --git a/setting-backup-and-reset/inc/setting-backup-and-reset-main-view.h b/setting-backup-and-reset/inc/setting-backup-and-reset-main-view.h new file mode 100644 index 00000000..5e6bebd6 --- /dev/null +++ b/setting-backup-and-reset/inc/setting-backup-and-reset-main-view.h @@ -0,0 +1,27 @@ +/* + * setting + + * + * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ +#ifndef __SETTING_BACKUP_AND_RESET_MAIN_VIEW_H__ +#define __SETTING_BACKUP_AND_RESET_MAIN_VIEW_H__ + +#include "setting-backup-and-reset.h" + +void main_view_init(SettingBackupReset *ad); + +#endif /*__SETTING_BACKUP_AND_RESET_MAIN_VIEW_H__ */ diff --git a/setting-backup-and-reset/inc/setting-backup-and-reset-usb-mass-storage-view.h b/setting-backup-and-reset/inc/setting-backup-and-reset-usb-mass-storage-view.h new file mode 100644 index 00000000..2c20cad9 --- /dev/null +++ b/setting-backup-and-reset/inc/setting-backup-and-reset-usb-mass-storage-view.h @@ -0,0 +1,29 @@ +/* + * setting + * + * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#ifndef SETTING_BACKUP_AND_RESET_INCLUDE_SETTING_BACKUP_AND_RESET_USB_MASS_STORAGE_VIEW_H_ +#define SETTING_BACKUP_AND_RESET_INCLUDE_SETTING_BACKUP_AND_RESET_USB_MASS_STORAGE_VIEW_H_ + +#include "setting-backup-and-reset.h" + +void usb_mass_storage_view_init(SettingBackupReset *ad); + +extern setting_view setting_backup_reset_usb_view; + +#endif /* SETTING_BACKUP_AND_RESET_INCLUDE_SETTING_BACKUP_AND_RESET_USB_MASS_STORAGE_VIEW_H_ */ diff --git a/setting-backup-and-reset/inc/setting-backup-and-reset.h b/setting-backup-and-reset/inc/setting-backup-and-reset.h new file mode 100755 index 00000000..2603ab0e --- /dev/null +++ b/setting-backup-and-reset/inc/setting-backup-and-reset.h @@ -0,0 +1,52 @@ +/* + * setting + * + * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +#ifndef __SETTING_BACKUP_AND_RESET_H__ +#define __SETTING_BACKUP_AND_RESET_H__ + +#include +#include +#include +#include + + +typedef struct { + MainData md; + bool sd_inserted; + /* Main view: */ + setting_view *main_view; + Elm_Object_Item *item_samsung_cloud; + Elm_Object_Item *item_usb_mass_storage; + Elm_Object_Item *item_factory_reset; + + /* Cloud view: */ + Elm_Object_Item *item_back_up; + Elm_Object_Item *item_restore; + + /* USB mass storage view: */ + Elm_Object_Item *item_conn_status; + Elm_Object_Item *item_backup_to_usb_storage; + Elm_Object_Item *item_restore_from_usb_storage; + Elm_Object_Item *item_move_to_usb_storage; +} SettingBackupReset; + +extern setting_view setting_backup_reset_main_view; + + +#endif /*__SETTING_BACKUP_AND_RESET_H__ */ diff --git a/setting-backup-and-reset/include/setting-backup-and-reset-cloud-view.h b/setting-backup-and-reset/include/setting-backup-and-reset-cloud-view.h deleted file mode 100644 index f75a68d6..00000000 --- a/setting-backup-and-reset/include/setting-backup-and-reset-cloud-view.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * setting - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#ifndef SETTING_BACKUP_AND_RESET_INCLUDE_SETTING_BACKUP_AND_RESET_CLOUD_VIEW_H_ -#define SETTING_BACKUP_AND_RESET_INCLUDE_SETTING_BACKUP_AND_RESET_CLOUD_VIEW_H_ - -#include "setting-backup-and-reset.h" - -void cloud_view_init(SettingBackupReset *ad); - -extern setting_view setting_backup_reset_cloud_view; - -#endif /* SETTING_BACKUP_AND_RESET_INCLUDE_SETTING_BACKUP_AND_RESET_CLOUD_VIEW_H_ */ diff --git a/setting-backup-and-reset/include/setting-backup-and-reset-main-view.h b/setting-backup-and-reset/include/setting-backup-and-reset-main-view.h deleted file mode 100644 index 5e6bebd6..00000000 --- a/setting-backup-and-reset/include/setting-backup-and-reset-main-view.h +++ /dev/null @@ -1,27 +0,0 @@ -/* - * setting - - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -#ifndef __SETTING_BACKUP_AND_RESET_MAIN_VIEW_H__ -#define __SETTING_BACKUP_AND_RESET_MAIN_VIEW_H__ - -#include "setting-backup-and-reset.h" - -void main_view_init(SettingBackupReset *ad); - -#endif /*__SETTING_BACKUP_AND_RESET_MAIN_VIEW_H__ */ diff --git a/setting-backup-and-reset/include/setting-backup-and-reset-usb-mass-storage-view.h b/setting-backup-and-reset/include/setting-backup-and-reset-usb-mass-storage-view.h deleted file mode 100644 index 2c20cad9..00000000 --- a/setting-backup-and-reset/include/setting-backup-and-reset-usb-mass-storage-view.h +++ /dev/null @@ -1,29 +0,0 @@ -/* - * setting - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#ifndef SETTING_BACKUP_AND_RESET_INCLUDE_SETTING_BACKUP_AND_RESET_USB_MASS_STORAGE_VIEW_H_ -#define SETTING_BACKUP_AND_RESET_INCLUDE_SETTING_BACKUP_AND_RESET_USB_MASS_STORAGE_VIEW_H_ - -#include "setting-backup-and-reset.h" - -void usb_mass_storage_view_init(SettingBackupReset *ad); - -extern setting_view setting_backup_reset_usb_view; - -#endif /* SETTING_BACKUP_AND_RESET_INCLUDE_SETTING_BACKUP_AND_RESET_USB_MASS_STORAGE_VIEW_H_ */ diff --git a/setting-backup-and-reset/include/setting-backup-and-reset.h b/setting-backup-and-reset/include/setting-backup-and-reset.h deleted file mode 100755 index bb06809d..00000000 --- a/setting-backup-and-reset/include/setting-backup-and-reset.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * setting - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -#ifndef __SETTING_BACKUP_AND_RESET_H__ -#define __SETTING_BACKUP_AND_RESET_H__ - -#include - -#include "setting-common-draw-widget.h" -#include "setting-common-init.h" -#include "setting-common-view.h" - - -typedef struct { - MainData md; - bool sd_inserted; - /* Main view: */ - setting_view *main_view; - Elm_Object_Item *item_samsung_cloud; - Elm_Object_Item *item_usb_mass_storage; - Elm_Object_Item *item_factory_reset; - - /* Cloud view: */ - Elm_Object_Item *item_back_up; - Elm_Object_Item *item_restore; - - /* USB mass storage view: */ - Elm_Object_Item *item_conn_status; - Elm_Object_Item *item_backup_to_usb_storage; - Elm_Object_Item *item_restore_from_usb_storage; - Elm_Object_Item *item_move_to_usb_storage; -} SettingBackupReset; - -extern setting_view setting_backup_reset_main_view; - - -#endif /*__SETTING_BACKUP_AND_RESET_H__ */ diff --git a/setting-backup-and-reset/project_def.prop b/setting-backup-and-reset/project_def.prop new file mode 100644 index 00000000..370fa0c5 --- /dev/null +++ b/setting-backup-and-reset/project_def.prop @@ -0,0 +1,58 @@ + +# Project Name +APPNAME = setting-backup-and-reset + +# Project Type +type = app + +# Project Profile +profile = mobile-4.0 + +# C/CPP Sources +USER_SRCS = src/setting-backup-and-reset.c src/setting-backup-and-reset-cloud-view.c src/setting-backup-and-reset-main-view.c src/setting-backup-and-reset-usb-mass-storage-view.c + +# EDC Sources +USER_EDCS = + +# PO Sources +USER_POS = + +# User Defines +USER_DEFS = TIZEN_DEPRECATION DEPRECATION_WARNING _TZ_SYS_RO_APP=TZ_SYS_RO_APP TZ_SYS_RO_APP=\"/usr/apps\" +USER_CPP_DEFS = + +# User Undefines +USER_UNDEFS = +USER_CPP_UNDEFS = + +# User Libraries +USER_LIBS = setting-common dbus-1 + +# User Objects +USER_OBJS = + +# User Includes +## C Compiler +USER_C_INC_DIRS = inc +USER_INC_FILES = +## C++ Compiler +USER_CPP_INC_DIRS = +USER_CPP_INC_FILES = + +USER_INC_DIRS = $(USER_C_INC_DIRS) $(USER_CPP_INC_DIRS) + +# User Library Path +USER_LIB_DIRS = lib + +# EDC Resource Path +USER_EDCS_IMAGE_DIRS = ${OUTPUT_DIR} +USER_EDCS_SOUND_DIRS = ${OUTPUT_DIR} +USER_EDCS_FONT_DIRS = ${OUTPUT_DIR} + +# EDC Flags +USER_EXT_EDC_KEYS = + +# Resource Filter +USER_RES_INCLUDE = +USER_RES_EXCLUDE = + diff --git a/setting-backup-and-reset/shared/res/setting-backup-and-reset.png b/setting-backup-and-reset/shared/res/setting-backup-and-reset.png new file mode 100644 index 00000000..9765b1bd Binary files /dev/null and b/setting-backup-and-reset/shared/res/setting-backup-and-reset.png differ diff --git a/setting-backup-and-reset/src/setting-backup-and-reset-main-view.c b/setting-backup-and-reset/src/setting-backup-and-reset-main-view.c index 7fe0c65b..b09d25c9 100755 --- a/setting-backup-and-reset/src/setting-backup-and-reset-main-view.c +++ b/setting-backup-and-reset/src/setting-backup-and-reset-main-view.c @@ -20,12 +20,11 @@ #include #include #include - +#include #include "setting-backup-and-reset-main-view.h" #include "setting-backup-and-reset-cloud-view.h" #include "setting-backup-and-reset-usb-mass-storage-view.h" -#include "setting-common-view.h" #define SETTING_IMAGES_PATH _TZ_SYS_RO_APP"/org.tizen.setting/res/images" #define PROGRESS_IMAGE1 SETTING_IMAGES_PATH"/A01-1_progress_pending_01_dim.png" diff --git a/setting-backup-and-reset/tizen-manifest.xml b/setting-backup-and-reset/tizen-manifest.xml new file mode 100644 index 00000000..f337a11e --- /dev/null +++ b/setting-backup-and-reset/tizen-manifest.xml @@ -0,0 +1,8 @@ + + + + + setting-backup-and-reset.png + + +