summaryrefslogtreecommitdiff
path: root/sources/ui-gadget/include
diff options
context:
space:
mode:
Diffstat (limited to 'sources/ui-gadget/include')
-rw-r--r--sources/ui-gadget/include/motion_control.h44
-rw-r--r--sources/ui-gadget/include/ug_wifi.h89
-rw-r--r--sources/ui-gadget/include/viewer_list.h74
-rw-r--r--sources/ui-gadget/include/viewer_manager.h85
-rw-r--r--sources/ui-gadget/include/wifi-engine-callback.h35
-rw-r--r--sources/ui-gadget/include/wifi-ui-list-callbacks.h38
-rw-r--r--sources/ui-gadget/include/wifi.h88
-rw-r--r--sources/ui-gadget/include/winset_popup.h54
8 files changed, 507 insertions, 0 deletions
diff --git a/sources/ui-gadget/include/motion_control.h b/sources/ui-gadget/include/motion_control.h
new file mode 100644
index 0000000..de58865
--- /dev/null
+++ b/sources/ui-gadget/include/motion_control.h
@@ -0,0 +1,44 @@
+/*
+ * Wi-Fi
+ *
+ * Copyright 2012 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
+ *
+ * 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 __MOTION_CONTROL_H__
+#define __MOTION_CONTROL_H__
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+#include <Evas.h>
+
+typedef enum {
+ MOTION_TARGET_VIEW_FOCUS_ON = 0,
+ MOTION_TARGET_VIEW_FOCUS_OFF
+}TARGET_VIEW_FOCUS;
+
+void motion_create(Evas_Object *base);
+void motion_destroy(void);
+void motion_start(void);
+void motion_stop(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/sources/ui-gadget/include/ug_wifi.h b/sources/ui-gadget/include/ug_wifi.h
new file mode 100644
index 0000000..48fa215
--- /dev/null
+++ b/sources/ui-gadget/include/ug_wifi.h
@@ -0,0 +1,89 @@
+/*
+ * Wi-Fi
+ *
+ * Copyright 2012 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
+ *
+ * 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 __NEW_WIFI_H__
+#define __NEW_WIFI_H__
+
+#define TARGET
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+#include <ui-gadget-module.h>
+
+#include "common.h"
+#include "common_pswd_popup.h"
+#include "view_ime_hidden.h"
+#include "common_eap_connect.h"
+#include "winset_popup.h"
+#include "wlan_manager.h"
+#include "viewer_manager.h"
+
+#define PACKAGE "ug-wifi-efl-UG"
+#define LOCALEDIR "/usr/ug/res/locale"
+#define CUSTOM_EDITFIELD_PATH \
+ "/usr/ug/res/edje/wifi-efl-UG/custom_editfield.edj"
+
+#define FACTORYFS "/usr/ug"
+#define WIFI_APP_IMAGE_DIR FACTORYFS "/res/images/wifi-efl-UG"
+#define WIFI_APP_ICON_PATH_SCAN \
+ WIFI_APP_IMAGE_DIR"/01_controlbar_icon_update.png"
+#define WIFI_APP_ICON_PATH_DONE \
+ WIFI_APP_IMAGE_DIR"/01_controlbar_icon_edit.png"
+#define WIFI_APP_ICON_PATH_FORGET \
+ WIFI_APP_IMAGE_DIR"/01_controlbar_icon_delete.png"
+
+#define UG_CALLER "caller"
+#define UG_MAIN_MESSAGE_DESTROY 1
+
+typedef enum {
+ UG_VIEW_DEFAULT = 0,
+ UG_VIEW_SETUP_WIZARD
+} UG_TYPE;
+
+typedef struct {
+ /* ui gadget object */
+ void* gadget;
+ ui_gadget_h ug;
+
+ //Basic Evas_Objects
+ Evas_Object *layout_main;
+ Evas *evas;
+ pswd_popup_t *passpopup;
+ hiddep_ap_popup_data_t *hidden_ap_popup;
+
+ UG_TYPE ug_type;
+ Eina_Bool bAlive;
+
+ char *lbutton_setup_wizard_prev;
+ char *rbutton_setup_wizard_next;
+ char *rbutton_setup_wizard_skip;
+ popup_manager_object_t *popup_manager;
+ common_eap_connect_data_t *eap_view;
+} wifi_appdata ;
+
+int wifi_exit();
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __WIFI_H__ */
diff --git a/sources/ui-gadget/include/viewer_list.h b/sources/ui-gadget/include/viewer_list.h
new file mode 100644
index 0000000..2c0fe8f
--- /dev/null
+++ b/sources/ui-gadget/include/viewer_list.h
@@ -0,0 +1,74 @@
+/*
+ * Wi-Fi
+ *
+ * Copyright 2012 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
+ *
+ * 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 __VIEWER_LIST_H__
+#define __VIEWER_LIST_H__
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+#include "viewer_manager.h"
+
+//////// genlist struct data ////////////////////////////////////////////////////////////////////
+typedef struct {
+ wifi_device_info_t *device_info;
+ VIEWER_ITEM_RADIO_MODES radio_mode;
+} ug_genlist_data_t;
+/////////////////////////////////////////////////////////////////////////////////////////////
+
+
+Evas_Object* viewer_list_create(Evas_Object *win);
+int viewer_list_destroy(void);
+void viewer_list_title_item_del();
+void viewer_list_title_item_update();
+
+////////////////////////////////////////////////////////////////////////////////////////////////
+
+//////// list item add / remove ///////////////////////////////////////////////////////////////
+int viewer_list_title_item_set(void);
+int viewer_list_item_radio_mode_set(Elm_Object_Item* item, VIEWER_ITEM_RADIO_MODES mode);
+Elm_Object_Item* viewer_list_item_insert_after(wifi_ap_h ap, Elm_Object_Item *after);
+Elm_Object_Item* viewer_list_get_first_item(void);
+void viewer_list_item_clear(void);
+////////////////////////////////////////////////////////////////////////////////////////////////
+
+//////// item iteration /////////////////////////////////////////////////////////////////////////
+int viewer_list_item_size_get(void);
+void viewer_list_item_del(Elm_Object_Item *item);
+Elm_Object_Item* viewer_list_item_first_get(Evas_Object* list);
+Elm_Object_Item* viewer_list_item_next_get(const Elm_Object_Item* current);
+Elm_Object_Item* viewer_list_item_at_index(int index);
+/////////////////////////////////////////////////////////////////////////////////////////////////
+
+//////// item control /////////////////////////////////////////////////////////////////////////
+void viewer_list_item_enable_all(void);
+void viewer_list_item_disable_all(void);
+//////////////////////////////////////////////////////////////////////////////////////////////////
+
+Elm_Object_Item* item_get_for_ap(wifi_ap_h ap);
+Elm_Object_Item *item_get_for_ssid(const char* ssid, int *num_aps);
+void viewer_list_item_move_connected_ap_to_top(const Elm_Object_Item *connected_item);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/sources/ui-gadget/include/viewer_manager.h b/sources/ui-gadget/include/viewer_manager.h
new file mode 100644
index 0000000..14ef35f
--- /dev/null
+++ b/sources/ui-gadget/include/viewer_manager.h
@@ -0,0 +1,85 @@
+/*
+ * Wi-Fi
+ *
+ * Copyright 2012 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
+ *
+ * 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 __VIEWER_MANAGER_H__
+#define __VIEWER_MANAGER_H__
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+#include <glib.h>
+#include <Elementary.h>
+
+#include "wlan_manager.h"
+
+typedef enum {
+ HEADER_MODE_OFF=0x01,
+ HEADER_MODE_ON,
+ HEADER_MODE_ACTIVATING,
+ HEADER_MODE_CONNECTING,
+ HEADER_MODE_CONNECTED,
+ HEADER_MODE_DISCONNECTING,
+ HEADER_MODE_DEACTIVATING,
+ HEADER_MODE_CANCEL_CONNECTING,
+ HEADER_MODE_SEARCHING,
+ HEADER_MODE_MAX
+} HEADER_MODES;
+
+typedef enum {
+ VIEWER_ITEM_RADIO_MODE_OFF = 0,
+ VIEWER_ITEM_RADIO_MODE_CONNECTED,
+ VIEWER_ITEM_RADIO_MODE_CONNECTING,
+ VIEWER_ITEM_RADIO_MODE_CANCEL_CONNECTING,
+ VIEWER_ITEM_RADIO_MODE_WPS_CONNECTING,
+ VIEWER_ITEM_RADIO_MODE_DISCONNECTING,
+ VIEWER_ITEM_RADIO_MODE_MAX
+
+} VIEWER_ITEM_RADIO_MODES;
+
+typedef enum {
+ VIEWER_WINSET_SEARCHING,
+ VIEWER_WINSET_SUB_CONTENTS
+} VIEWER_WINSETS;
+
+Evas_Object* viewer_manager_create(Evas_Object* parent);
+Eina_Bool viewer_manager_destroy();
+Eina_Bool viewer_manager_show(VIEWER_WINSETS winset);
+Eina_Bool viewer_manager_hide(VIEWER_WINSETS winset);
+Eina_Bool viewer_manager_refresh(void);
+
+int power_control();
+
+int viewer_manager_hidden_disable_set(int mode);
+Evas_Object *viewer_manager_get_naviframe();
+int viewer_manager_header_mode_set(HEADER_MODES mode);
+HEADER_MODES viewer_manager_header_mode_get(void);
+void viewer_manager_scroll_to_top(void);
+Elm_Object_Item *viewer_manager_move_item_to_top(Elm_Object_Item *item);
+void viewer_manager_specific_scan_response_hlr(
+ GSList *bss_info_list, void *user_data);
+void viewer_manager_update_ap_handle(Elm_Object_Item *item, wifi_ap_h ap);
+void viewer_manager_update_connected_ap_sig_str(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/sources/ui-gadget/include/wifi-engine-callback.h b/sources/ui-gadget/include/wifi-engine-callback.h
new file mode 100644
index 0000000..2c7925d
--- /dev/null
+++ b/sources/ui-gadget/include/wifi-engine-callback.h
@@ -0,0 +1,35 @@
+/*
+ * Wi-Fi
+ *
+ * Copyright 2012 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
+ *
+ * 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 __WIFI_ENGINE_CALLBACK_H__
+#define __WIFI_ENGINE_CALLBACK_H__
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+void wlan_engine_refresh_callback();
+void wlan_engine_callback(wlan_mgr_event_info_t *event_info, void *user_data);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __WIFI_ENGINE_CALLBACKS_H__ */
diff --git a/sources/ui-gadget/include/wifi-ui-list-callbacks.h b/sources/ui-gadget/include/wifi-ui-list-callbacks.h
new file mode 100644
index 0000000..8936c5e
--- /dev/null
+++ b/sources/ui-gadget/include/wifi-ui-list-callbacks.h
@@ -0,0 +1,38 @@
+/*
+* Wi-Fi UG
+*
+* Copyright 2012 Samsung Electronics Co., Ltd
+
+* Licensed under the Flora License, Version 1.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.tizenopensource.org/license
+
+* 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 __WIFI_CALLBACKS_H_
+#define __WIFI_CALLBACKS_H_
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+void radio_button_cb(void *data, Evas_Object *obj, void *event_info);
+void list_select_cb(void *data, Evas_Object *obj, void *event_info);
+void eap_view_close_cb(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
diff --git a/sources/ui-gadget/include/wifi.h b/sources/ui-gadget/include/wifi.h
new file mode 100644
index 0000000..3a67a2c
--- /dev/null
+++ b/sources/ui-gadget/include/wifi.h
@@ -0,0 +1,88 @@
+/*
+* Wi-Fi UG
+*
+* Copyright 2012 Samsung Electronics Co., Ltd
+
+* Licensed under the Flora License, Version 1.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.tizenopensource.org/license
+
+* 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 __NEW_WIFI_H_
+#define __NEW_WIFI_H_
+
+#define TARGET
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+
+#include "common.h"
+#include "common_pswd_popup.h"
+#include "view_ime_hidden.h"
+#include "common_eap_connect.h"
+#include "winset_popup.h"
+#include "wlan_manager.h"
+#include "viewer_manager.h"
+#include <ui-gadget-module.h>
+
+#define PACKAGE "ug-wifi-efl-UG"
+#define LOCALEDIR "/usr/ug/res/locale"
+#define CUSTOM_EDITFIELD_PATH "/usr/ug/res/edje/wifi-efl-UG/custom_editfield.edj"
+
+#define WIFI_APP_IMAGE_DIR FACTORYFS"/res/images/wifi-efl-UG"
+#define WIFI_APP_ICON_PATH_SCAN WIFI_APP_IMAGE_DIR"/01_controlbar_icon_update.png"
+#define WIFI_APP_ICON_PATH_DONE WIFI_APP_IMAGE_DIR"/01_controlbar_icon_edit.png"
+#define WIFI_APP_ICON_PATH_FORGET WIFI_APP_IMAGE_DIR"/01_controlbar_icon_delete.png"
+
+#define UG_CALLER "caller"
+#define UG_MAIN_MESSAGE_DESTROY 1
+
+typedef enum {
+ UG_VIEW_DEFAULT = 0,
+ UG_VIEW_SETUP_WIZARD
+} UG_TYPE;
+
+typedef struct {
+ /* ui gadget object */
+ void* gadget;
+ ui_gadget_h ug;
+
+ //Basic Evas_Objects
+ Evas_Object *win_main;
+ Evas *evas;
+ pswd_popup_t *passpopup;
+ hiddep_ap_popup_data_t *hidden_ap_popup;
+
+ UG_TYPE ug_type;
+ Eina_Bool bAlive;
+
+ char *lbutton_setup_wizard_prev;
+ char *rbutton_setup_wizard_next;
+ char *rbutton_setup_wizard_skip;
+ popup_manager_object_t *popup_manager;
+ common_eap_connect_data_t *eap_view;
+} wifi_appdata ;
+
+int wifi_exit();
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __WIFI_H_ */
+
+
diff --git a/sources/ui-gadget/include/winset_popup.h b/sources/ui-gadget/include/winset_popup.h
new file mode 100644
index 0000000..4775cb8
--- /dev/null
+++ b/sources/ui-gadget/include/winset_popup.h
@@ -0,0 +1,54 @@
+/*
+ * Wi-Fi
+ *
+ * Copyright 2012 Samsung Electronics Co., Ltd
+ *
+ * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
+ *
+ * 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 __WINSET_POPUP_H__
+#define __WINSET_POPUP_H__
+
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
+#include <glib.h>
+#include <Evas.h>
+
+typedef enum {
+ POPUP_OPTION_NONE = 0X01,
+ POPUP_OPTION_REGISTER_FAILED_COMMUNICATION_FAILED,
+ POPUP_OPTION_POWER_ON_FAILED_MOBILE_HOTSPOT,
+ POPUP_OPTION_CONNECTING_FAILED,
+ POPUP_OPTION_HIDDEN_AP_SSID_LEN_ERROR,
+ POPUP_OPTION_WEP_PSWD_LEN_ERROR,
+ POPUP_OPTION_WPA_PSWD_LEN_ERROR,
+ POPUP_OPTION_WIFI_INVALID_KEY,
+ POPUP_OPTION_MAX
+} POPUP_MODE_OPTIONS;
+
+typedef struct popup_manager_object popup_manager_object_t;
+
+popup_manager_object_t *winset_popup_manager_create(Evas_Object* win, const char *str_pkg_name);
+void winset_popup_mode_set(popup_manager_object_t *manager_object, POPUP_MODE_OPTIONS option, void *input_data);
+gboolean winset_popup_manager_destroy(popup_manager_object_t *manager_object);
+gboolean winset_popup_hide_popup(popup_manager_object_t *manager_object);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif