From: Michal Skorupinski Date: Tue, 8 May 2018 14:14:35 +0000 (+0200) Subject: setting-connectivity converted to native X-Git-Tag: submit/tizen/20190409.085310~1^2~146 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F01%2F178201%2F1;p=profile%2Fmobile%2Fapps%2Fnative%2Fsettings.git setting-connectivity converted to native Change-Id: I36f8e333400b94c254a9c2617a88980e4e85922e Signed-off-by: Michal Skorupinski --- diff --git a/setting-connectivity/.cproject b/setting-connectivity/.cproject new file mode 100644 index 00000000..025df265 --- /dev/null +++ b/setting-connectivity/.cproject @@ -0,0 +1,629 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/setting-connectivity/.exportMap b/setting-connectivity/.exportMap new file mode 100644 index 00000000..de305161 --- /dev/null +++ b/setting-connectivity/.exportMap @@ -0,0 +1,5 @@ +{ + global: main; + _IO_*; + local: *; +}; diff --git a/setting-connectivity/.gitignore b/setting-connectivity/.gitignore new file mode 100644 index 00000000..b4555b68 --- /dev/null +++ b/setting-connectivity/.gitignore @@ -0,0 +1,2 @@ +/Debug/ +/Build/ diff --git a/setting-connectivity/.project b/setting-connectivity/.project new file mode 100644 index 00000000..ee3eda1a --- /dev/null +++ b/setting-connectivity/.project @@ -0,0 +1,46 @@ + + + setting-connectivity + + + + + + 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 + + + + 1525788268894 + + 26 + + org.eclipse.ui.ide.multiFilter + 1.0-projectRelativePath-matches-false-false-*/.tpk + + + + 1525788268895 + + 6 + + org.eclipse.ui.ide.multiFilter + 1.0-name-matches-false-false-project_def.prop + + + + diff --git a/setting-connectivity/.tproject b/setting-connectivity/.tproject new file mode 100644 index 00000000..468a8344 --- /dev/null +++ b/setting-connectivity/.tproject @@ -0,0 +1,12 @@ + + + + + mobile-4.0 + + + + + + + diff --git a/setting-connectivity/build_def.prop b/setting-connectivity/build_def.prop new file mode 100644 index 00000000..6bb5e2f0 --- /dev/null +++ b/setting-connectivity/build_def.prop @@ -0,0 +1,6 @@ + +# Add pre/post build process +PREBUILD_DESC = +PREBUILD_COMMAND = +POSTBUILD_DESC = +POSTBUILD_COMMAND = diff --git a/setting-connectivity/inc/setting-connectivity-usb.h b/setting-connectivity/inc/setting-connectivity-usb.h new file mode 100644 index 00000000..d892cf45 --- /dev/null +++ b/setting-connectivity/inc/setting-connectivity-usb.h @@ -0,0 +1,43 @@ +/* + * setting + * + * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. + * + * Contact: MyoungJune Park + * + * 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_CONNECTIVITY_USB_H__ +#define __SETTING_CONNECTIVITY_USB_H__ + +#include + +#define NUM_PROGRESSBAR 4 + +#define SETTING_USB_DEBUGGING_DESC \ + "IDS_ST_BODY_DEBUGGING_MODE_LAUNCHES_WHEN_USB_IS_CONNECTED" + +enum progressbar_status { + STATE_NONE = 0x00, STATE_PROGRESSBAR +}; + +typedef struct _button_status button_status; + +struct _button_status { + Evas_Object *progressbar; /* progressbar */ + Elm_Object_Item *item; /* button */ + int pstate; /* progressbar status to show or hide */ +}; + +#endif /* __SETTING_CONNECTIVITY_USB_H__ */ diff --git a/setting-connectivity/inc/setting-connectivity.h b/setting-connectivity/inc/setting-connectivity.h new file mode 100644 index 00000000..16bb6f78 --- /dev/null +++ b/setting-connectivity/inc/setting-connectivity.h @@ -0,0 +1,77 @@ +/* + * setting + * + * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. + * + * Contact: MyoungJune Park + * + * 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_CONNECTIVITY_H__ +#define __SETTING_CONNECTIVITY_H__ + +#include +#include +#include +#include + +#include +#include +#include + + +enum mode_change { + CHANGE_COMPLETE = 0, + IN_MODE_CHANGE, +}; + +enum usb_connection_status { + USB_DISCONNECTED = 0, + USB_CONNECTED, +}; + +typedef struct _SettingConnectivity SettingConnectivity; + +/** + * Setting Connectivity context + */ +struct _SettingConnectivity { + MainData md; + Evas_Object *pop; + + Setting_GenGroupItem_Data *debug_mode; /* debug mode */ + Setting_GenGroupItem_Data *cpu_usage; /* Show CPU Usage */ + Setting_GenGroupItem_Data *gpu_render; /* Force GPU Rendering */ + Setting_GenGroupItem_Data *bg_processes;/* Limit background processes */ + + setting_view *view_to_load; + + Elm_Genlist_Item_Class itc_title; + Elm_Genlist_Item_Class itc_1text; + Elm_Genlist_Item_Class itc_1text_1icon; + Elm_Genlist_Item_Class itc_1text_1icon_gen; + Elm_Genlist_Item_Class itc_2text_3; + Elm_Genlist_Item_Class itc_help_style; + Elm_Genlist_Item_Class itc_2text_3_parent; + Elm_Genlist_Item_Class itc_1icon_1text_sub; + + Eina_Bool blockUI; +}; + +extern setting_view setting_view_connectivity_usb; +extern setting_view setting_view_connectivity_usb_help; + +int check_usb_jack_status(); + +#endif /* __SETTING_CONNECTIVITY_H__ */ diff --git a/setting-connectivity/include/setting-connectivity-usb.h b/setting-connectivity/include/setting-connectivity-usb.h deleted file mode 100644 index d892cf45..00000000 --- a/setting-connectivity/include/setting-connectivity-usb.h +++ /dev/null @@ -1,43 +0,0 @@ -/* - * setting - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. - * - * Contact: MyoungJune Park - * - * 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_CONNECTIVITY_USB_H__ -#define __SETTING_CONNECTIVITY_USB_H__ - -#include - -#define NUM_PROGRESSBAR 4 - -#define SETTING_USB_DEBUGGING_DESC \ - "IDS_ST_BODY_DEBUGGING_MODE_LAUNCHES_WHEN_USB_IS_CONNECTED" - -enum progressbar_status { - STATE_NONE = 0x00, STATE_PROGRESSBAR -}; - -typedef struct _button_status button_status; - -struct _button_status { - Evas_Object *progressbar; /* progressbar */ - Elm_Object_Item *item; /* button */ - int pstate; /* progressbar status to show or hide */ -}; - -#endif /* __SETTING_CONNECTIVITY_USB_H__ */ diff --git a/setting-connectivity/include/setting-connectivity.h b/setting-connectivity/include/setting-connectivity.h deleted file mode 100644 index 4ef9fa74..00000000 --- a/setting-connectivity/include/setting-connectivity.h +++ /dev/null @@ -1,77 +0,0 @@ -/* - * setting - * - * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. - * - * Contact: MyoungJune Park - * - * 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_CONNECTIVITY_H__ -#define __SETTING_CONNECTIVITY_H__ - -#include -#include -#include -#include - -#include "setting-common-draw-widget.h" -#include "setting-common-view.h" -#include "setting-common-init.h" - - -enum mode_change { - CHANGE_COMPLETE = 0, - IN_MODE_CHANGE, -}; - -enum usb_connection_status { - USB_DISCONNECTED = 0, - USB_CONNECTED, -}; - -typedef struct _SettingConnectivity SettingConnectivity; - -/** - * Setting Connectivity context - */ -struct _SettingConnectivity { - MainData md; - Evas_Object *pop; - - Setting_GenGroupItem_Data *debug_mode; /* debug mode */ - Setting_GenGroupItem_Data *cpu_usage; /* Show CPU Usage */ - Setting_GenGroupItem_Data *gpu_render; /* Force GPU Rendering */ - Setting_GenGroupItem_Data *bg_processes;/* Limit background processes */ - - setting_view *view_to_load; - - Elm_Genlist_Item_Class itc_title; - Elm_Genlist_Item_Class itc_1text; - Elm_Genlist_Item_Class itc_1text_1icon; - Elm_Genlist_Item_Class itc_1text_1icon_gen; - Elm_Genlist_Item_Class itc_2text_3; - Elm_Genlist_Item_Class itc_help_style; - Elm_Genlist_Item_Class itc_2text_3_parent; - Elm_Genlist_Item_Class itc_1icon_1text_sub; - - Eina_Bool blockUI; -}; - -extern setting_view setting_view_connectivity_usb; -extern setting_view setting_view_connectivity_usb_help; - -int check_usb_jack_status(); - -#endif /* __SETTING_CONNECTIVITY_H__ */ diff --git a/setting-connectivity/project_def.prop b/setting-connectivity/project_def.prop new file mode 100644 index 00000000..4cb93a9d --- /dev/null +++ b/setting-connectivity/project_def.prop @@ -0,0 +1,58 @@ + +# Project Name +APPNAME = setting-connectivity + +# Project Type +type = app + +# Project Profile +profile = mobile-4.0 + +# C/CPP Sources +USER_SRCS = src/setting-connectivity.c src/setting-connectivity-usb-help.c src/setting-connectivity-usb.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 + +# 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-connectivity/shared/res/setting-connectivity.png b/setting-connectivity/shared/res/setting-connectivity.png new file mode 100644 index 00000000..9765b1bd Binary files /dev/null and b/setting-connectivity/shared/res/setting-connectivity.png differ diff --git a/setting-connectivity/src/setting-connectivity.c b/setting-connectivity/src/setting-connectivity.c index ce3267d2..3e7b2c26 100644 --- a/setting-connectivity/src/setting-connectivity.c +++ b/setting-connectivity/src/setting-connectivity.c @@ -19,8 +19,7 @@ * */ -#include - +#include #include "setting-connectivity.h" #define SETTING_CONNECTIVITY_PACKAGE_NAME "org.tizen.setting-connectivity" diff --git a/setting-connectivity/tizen-manifest.xml b/setting-connectivity/tizen-manifest.xml new file mode 100644 index 00000000..26355977 --- /dev/null +++ b/setting-connectivity/tizen-manifest.xml @@ -0,0 +1,8 @@ + + + + + setting-connectivity.png + + +