4 * Copyright 2012 Samsung Electronics Co., Ltd
6 * Licensed under the Flora License, Version 1.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://floralicense.org/license
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.
25 #include <Elementary.h>
27 #include <ui-gadget-module.h>
28 #include <wifi-direct.h>
31 #include "wfd_ug_view.h"
32 #include "wfd_client.h"
34 Elm_Gen_Item_Class head_itc;
35 Elm_Gen_Item_Class name_itc;
36 Elm_Gen_Item_Class title_itc;
37 Elm_Gen_Item_Class peer_itc;
38 Elm_Gen_Item_Class noitem_itc;
39 Elm_Gen_Item_Class button_itc;
41 Elm_Gen_Item_Class title_conn_itc;
42 Elm_Gen_Item_Class peer_conn_itc;
44 Elm_Gen_Item_Class title_busy_itc;
45 Elm_Gen_Item_Class peer_busy_itc;
47 Elm_Gen_Item_Class title_multi_connect_itc;
48 Elm_Gen_Item_Class peer_multi_connect_itc;
50 Elm_Gen_Item_Class title_conn_failed_itc;
51 Elm_Gen_Item_Class peer_conn_failed_itc;
54 * This function let the ug get the label of header
55 * @return the label of header
56 * @param[in] data the pointer to the main data structure
57 * @param[in] obj the pointer to the evas object
58 * @param[in] part the pointer to the part of item
60 static char *_gl_header_label_get(void *data, Evas_Object *obj, const char *part)
62 __WDUG_LOG_FUNC_ENTER__;
63 struct ug_data *ugd = (struct ug_data *) data;
64 WDUG_LOGI("%s", part);
67 WDUG_LOGE("Incorrect parameter(NULL)\n");
71 if (!strcmp(part, "elm.text.1")) {
72 WDUG_LOGI("Current text mode [%d]\n", ugd->head_text_mode);
73 switch (ugd->head_text_mode) {
74 case HEAD_TEXT_TYPE_DIRECT:
75 case HEAD_TEXT_TYPE_ACTIVATED:
76 case HEAD_TEXT_TYPE_SCANING:
77 return strdup(dgettext("sys_string", "IDS_COM_OPT1_WI_FI_DIRECT"));
79 case HEAD_TEXT_TYPE_DEACTIVATING:
80 return strdup(_("IDS_WFD_BODY_DEACTIVATING"));
82 case HEAD_TEXT_TYPE_ACTIVATING:
83 return strdup(_("IDS_WFD_BODY_ACTIVATING"));
88 } else if (!strcmp(part, "elm.text.1")) {
89 return strdup(dgettext("sys_string", "IDS_COM_OPT1_WI_FI_DIRECT"));
90 } else if (!strcmp(part, "elm.text.2")) {
91 return strdup(ugd->dev_name);
94 __WDUG_LOG_FUNC_EXIT__;
99 * This function let the ug call it when click header
101 * @param[in] data the pointer to the main data structure
102 * @param[in] obj the pointer to the evas object
103 * @param[in] event_info the pointer to the event information
105 static void _gl_header_sel(void *data, Evas_Object *obj, void *event_info)
107 __WDUG_LOG_FUNC_ENTER__;
108 struct ug_data *ugd = (struct ug_data *) data;
110 Elm_Object_Item *item = (Elm_Object_Item *)event_info;
112 elm_genlist_item_selected_set(item, EINA_FALSE);
115 WDUG_LOGE("Incorrect parameter(NULL)\n");
117 if(!ugd->wfd_onoff) {
118 WDUG_LOGD("Wi-Fi direct switch on\n");
119 wfd_client_switch_on(ugd);
121 WDUG_LOGD("Wi-Fi direct switch off\n");
122 wfd_client_switch_off(ugd);
125 __WDUG_LOG_FUNC_EXIT__;
129 * This function let the ug get the icon of header
130 * @return the icon of header
131 * @param[in] data the pointer to the main data structure
132 * @param[in] obj the pointer to the evas object
133 * @param[in] part the pointer to the part of item
135 static Evas_Object *_gl_header_icon_get(void *data, Evas_Object *obj, const char *part)
137 __WDUG_LOG_FUNC_ENTER__;
138 struct ug_data *ugd = (struct ug_data *) data;
139 Evas_Object *onoff = NULL;
142 WDUG_LOGE("Incorrect parameter(NULL)\n");
146 if (ugd->head_text_mode == HEAD_TEXT_TYPE_ACTIVATING ||
147 ugd->head_text_mode == HEAD_TEXT_TYPE_DEACTIVATING) {
151 if (!strcmp(part, "elm.icon")) {
152 onoff = elm_check_add(obj);
153 elm_object_style_set(onoff, "on&off");
154 elm_check_state_set(onoff, ugd->wfd_onoff);
155 evas_object_smart_callback_add(onoff, "changed", _gl_header_sel , ugd);
156 evas_object_show(onoff);
159 __WDUG_LOG_FUNC_EXIT__;
164 * This function let the ug get the label of about item
165 * @return the label of about item
166 * @param[in] data the pointer to the main data structure
167 * @param[in] obj the pointer to the evas object
168 * @param[in] part the pointer to the part of item
170 static char *_gl_name_label_get(void *data, Evas_Object *obj, const char *part)
172 __WDUG_LOG_FUNC_ENTER__;
173 struct ug_data *ugd = (struct ug_data *) data;
176 WDUG_LOGE("Incorrect parameter(NULL)\n");
180 WDUG_LOGI("%s", part);
182 if (!strcmp(part, "elm.text")) {
183 return strdup(IDS_WFD_TITLE_ABOUT_WIFI_DIRECT);
184 } else if (!strcmp(part, "elm.text.2")) {
185 return strdup(ugd->dev_name);
188 __WDUG_LOG_FUNC_EXIT__;
193 * This function let the ug get the label of titile
194 * @return the label of titile
195 * @param[in] data the pointer to the main data structure
196 * @param[in] obj the pointer to the evas object
197 * @param[in] part the pointer to the part of item
199 static char *_gl_title_label_get(void *data, Evas_Object *obj, const char *part)
201 __WDUG_LOG_FUNC_ENTER__;
202 struct ug_data *ugd = (struct ug_data *) data;
205 WDUG_LOGE("Incorrect parameter(NULL)\n");
209 if (!strcmp(part, "elm.text")) {
210 if (ugd->multiconn_view_genlist != NULL) {
211 // It's called at Multi connect view...
212 if (ugd->gl_available_dev_cnt_at_multiconn_view > 0) {
213 return strdup(_("IDS_WFD_BODY_AVAILABLE_DEVICES"));
215 return strdup(_("IDS_WFD_BODY_WIFI_DIRECT_DEVICES"));
218 // It's called at Main View
219 if (ugd->gl_available_peer_cnt > 0) {
220 return strdup(_("IDS_WFD_BODY_AVAILABLE_DEVICES"));
222 return strdup(_("IDS_WFD_BODY_WIFI_DIRECT_DEVICES"));
227 __WDUG_LOG_FUNC_EXIT__;
232 * This function let the ug get the content of titile
233 * @return the content of titile
234 * @param[in] data the pointer to the main data structure
235 * @param[in] obj the pointer to the evas object
236 * @param[in] part the pointer to the part of item
238 static Evas_Object *_gl_title_content_get(void *data, Evas_Object *obj, const char *part)
240 Evas_Object *progressbar = NULL;
241 struct ug_data *ugd = (struct ug_data *) data;
244 WDUG_LOGE("Incorrect parameter(NULL)\n");
248 if (!strcmp(part, "elm.icon")) {
249 if (HEAD_TEXT_TYPE_SCANING == ugd->head_text_mode) {
250 progressbar = elm_progressbar_add(obj);
251 elm_object_style_set(progressbar, "list_process_small");
252 elm_progressbar_horizontal_set(progressbar, EINA_TRUE);
253 elm_progressbar_pulse(progressbar, EINA_TRUE);
254 evas_object_show(progressbar);
264 * This function let the ug get the label of peer item
265 * @return the label of peer item
266 * @param[in] data the pointer to the main data structure
267 * @param[in] obj the pointer to the evas object
268 * @param[in] part the pointer to the part of item
270 static char *_gl_peer_label_get(void *data, Evas_Object *obj, const char *part)
272 __WDUG_LOG_FUNC_ENTER__;
273 assertm_if(NULL == obj, "NULL!!");
274 assertm_if(NULL == part, "NULL!!");
275 device_type_s *peer = (device_type_s *) data;
276 char buf[WFD_GLOBALIZATION_STR_LENGTH] = { 0, };
277 WDUG_LOGI("%s", part);
280 WDUG_LOGE("Incorrect parameter(NULL)\n");
284 if (!strcmp(part, "elm.text.1")) {
285 __WDUG_LOG_FUNC_EXIT__;
286 return strdup(peer->ssid);
287 } else if (!strcmp(part, "elm.text.2")) {
288 switch (peer->conn_status) {
289 case PEER_CONN_STATUS_DISCONNECTED:
290 g_strlcpy(buf, _("IDS_WFD_TAP_TO_CONNECT"), WFD_GLOBALIZATION_STR_LENGTH);
292 case PEER_CONN_STATUS_CONNECTING:
293 g_strlcpy(buf, _("IDS_WFD_CONNECTING"), WFD_GLOBALIZATION_STR_LENGTH);
295 case PEER_CONN_STATUS_CONNECTED:
296 if (peer->is_group_owner == FALSE) {
297 g_strlcpy(buf, _("IDS_WFD_CONNECTED"), WFD_GLOBALIZATION_STR_LENGTH);
299 g_strlcpy(buf, _("IDS_WFD_TAP_TO_CONNECT"), WFD_GLOBALIZATION_STR_LENGTH);
302 case PEER_CONN_STATUS_FAILED_TO_CONNECT:
303 g_strlcpy(buf, _("IDS_WFD_FAILED_TO_CONNECT"), WFD_GLOBALIZATION_STR_LENGTH);
305 case PEER_CONN_STATUS_WAIT_FOR_CONNECT:
306 g_strlcpy(buf, _("IDS_WFD_WAITING_FOR_CONNECT"), WFD_GLOBALIZATION_STR_LENGTH);
309 g_strlcpy(buf, _("IDS_WFD_TAP_TO_CONNECT"), WFD_GLOBALIZATION_STR_LENGTH);
313 __WDUG_LOG_FUNC_EXIT__;
317 __WDUG_LOG_FUNC_EXIT__;
322 * This function let the ug get the icon of peer item
323 * @return the icon of peer item
324 * @param[in] data the pointer to the main data structure
325 * @param[in] obj the pointer to the evas object
326 * @param[in] part the pointer to the part of item
328 static Evas_Object *_gl_peer_icon_get(void *data, Evas_Object *obj, const char *part)
330 __WDUG_LOG_FUNC_ENTER__;
331 assertm_if(NULL == obj, "NULL!!");
332 assertm_if(NULL == part, "NULL!!");
333 device_type_s *peer = (device_type_s *) data;
334 Evas_Object *icon = NULL;
335 struct ug_data *ugd = wfd_get_ug_data();
338 WDUG_LOGE("Incorrect parameter(NULL)\n");
342 if (!strcmp(part, "elm.icon.2")) {
343 WDUG_LOGI("elm.icon.2 - connection status [%d]\n", peer->conn_status);
344 if (peer->conn_status == PEER_CONN_STATUS_CONNECTING) {
345 icon = elm_progressbar_add(obj);
346 elm_object_style_set(icon, "list_process");
347 elm_progressbar_pulse(icon, EINA_TRUE);
348 } else if (peer->conn_status == PEER_CONN_STATUS_CONNECTED) {
352 evas_object_size_hint_aspect_set(icon, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
353 elm_icon_resizable_set(icon, 1, 1);
354 evas_object_show(icon);
355 } else if (!strcmp(part, "elm.icon.1")) {
356 WDUG_LOGI("elm.icon.1 - category [%d]\n", peer->category);
357 char *img_path = NULL;
360 status = wfd_get_device_status(ugd, peer);
363 * the icon of connected device is
364 * different from available and busy device
366 switch (peer->category) {
367 case WFD_DEVICE_TYPE_COMPUTER:
369 img_path = WFD_ICON_DEVICE_COMPUTER_CONNECT;
371 img_path = WFD_ICON_DEVICE_COMPUTER;
374 case WFD_DEVICE_TYPE_INPUT_DEVICE:
376 img_path = WFD_ICON_DEVICE_INPUT_DEVICE_CONNECT;
378 img_path = WFD_ICON_DEVICE_INPUT_DEVICE;
381 case WFD_DEVICE_TYPE_PRINTER:
383 img_path = WFD_ICON_DEVICE_PRINTER_CONNECT;
385 img_path = WFD_ICON_DEVICE_PRINTER;
388 case WFD_DEVICE_TYPE_CAMERA:
390 img_path = WFD_ICON_DEVICE_CAMERA_CONNECT;
392 img_path = WFD_ICON_DEVICE_CAMERA;
395 case WFD_DEVICE_TYPE_STORAGE:
397 img_path = WFD_ICON_DEVICE_STORAGE_CONNECT;
399 img_path = WFD_ICON_DEVICE_STORAGE;
402 case WFD_DEVICE_TYPE_NW_INFRA:
404 img_path = WFD_ICON_DEVICE_NETWORK_INFRA_CONNECT;
406 img_path = WFD_ICON_DEVICE_NETWORK_INFRA;
409 case WFD_DEVICE_TYPE_DISPLAYS:
411 img_path = WFD_ICON_DEVICE_DISPLAY_CONNECT;
413 img_path = WFD_ICON_DEVICE_DISPLAY;
416 case WFD_DEVICE_TYPE_MM_DEVICES:
418 img_path = WFD_ICON_DEVICE_MULTIMEDIA_DEVICE_CONNECT;
420 img_path = WFD_ICON_DEVICE_MULTIMEDIA_DEVICE;
423 case WFD_DEVICE_TYPE_GAME_DEVICES:
425 img_path = WFD_ICON_DEVICE_GAMING_DEVICE_CONNECT;
427 img_path = WFD_ICON_DEVICE_GAMING_DEVICE;
430 case WFD_DEVICE_TYPE_TELEPHONE:
432 img_path = WFD_ICON_DEVICE_TELEPHONE_CONNECT;
434 img_path = WFD_ICON_DEVICE_TELEPHONE;
437 case WFD_DEVICE_TYPE_AUDIO:
439 img_path = WFD_ICON_DEVICE_AUDIO_DEVICE_CONNECT;
441 img_path = WFD_ICON_DEVICE_AUDIO_DEVICE;
446 img_path = WFD_ICON_DEVICE_COMPUTER_CONNECT;
448 img_path = WFD_ICON_DEVICE_COMPUTER;
453 icon = elm_icon_add(obj);
454 elm_icon_file_set(icon, img_path, NULL);
455 evas_object_size_hint_aspect_set(icon, EVAS_ASPECT_CONTROL_VERTICAL, 1, 1);
456 elm_icon_resizable_set(icon, 1, 1);
457 evas_object_show(icon);
460 __WDUG_LOG_FUNC_EXIT__;
465 * This function let the ug get the text of no device item
466 * @return the text of no device item
467 * @param[in] data the pointer to the main data structure
468 * @param[in] obj the pointer to the evas object
469 * @param[in] part the pointer to the part of item
471 static char *_gl_noitem_text_get(void *data, Evas_Object *obj, const char *part)
473 __WDUG_LOG_FUNC_ENTER__;
476 WDUG_LOGE("Incorrect parameter(NULL)\n");
480 __WDUG_LOG_FUNC_EXIT__;
481 return strdup(_("IDS_WFD_NOCONTENT"));
485 * This function let the ug get the multi connect button
486 * @return the multi connect button
487 * @param[in] data the pointer to the main data structure
488 * @param[in] obj the pointer to the evas object
489 * @param[in] part the pointer to the part of item
491 static Evas_Object *_gl_button_get(void *data, Evas_Object *obj, const char *part)
493 __WDUG_LOG_FUNC_ENTER__;
494 struct ug_data *ugd = (struct ug_data *) data;
496 WDUG_LOGI("%s", part);
497 ugd->multi_btn = elm_button_add(obj);
498 wfd_refresh_wifi_direct_state(ugd);
500 if (ugd->wfd_status == WIFI_DIRECT_STATE_CONNECTING) {
501 elm_object_text_set(ugd->multi_btn, _("IDS_WFD_BUTTON_CANCEL"));
502 WDUG_LOGI("button: Cancel connect\n");
504 if (ugd->gl_connected_peer_cnt > 1) {
505 elm_object_text_set(ugd->multi_btn, _("IDS_WFD_BUTTON_DISCONNECT_ALL"));
506 WDUG_LOGI("button: Disconnect All\n");
507 } else if (ugd->gl_connected_peer_cnt == 1) {
508 elm_object_text_set(ugd->multi_btn, _("IDS_WFD_BUTTON_DISCONNECT"));
509 WDUG_LOGI("button: Disconnect\n");
511 elm_object_text_set(ugd->multi_btn, _("IDS_WFD_BUTTON_MULTI"));
512 WDUG_LOGI("button: Multi connect\n");
516 evas_object_smart_callback_add(ugd->multi_btn, "clicked", _wifid_create_multibutton_cb, ugd);
517 evas_object_show(ugd->multi_btn);
519 __WDUG_LOG_FUNC_EXIT__;
520 return ugd->multi_btn;
524 * This function let the ug get the title label of connected device list
525 * @return the title label of connected device list
526 * @param[in] data the pointer to the main data structure
527 * @param[in] obj the pointer to the evas object
528 * @param[in] part the pointer to the part of item
530 static char *_gl_conn_dev_title_label_get(void *data, Evas_Object *obj, const char *part)
532 __WDUG_LOG_FUNC_ENTER__;
535 WDUG_LOGE("Incorrect parameter(NULL)\n");
539 if (!strcmp(part, "elm.text")) {
540 return strdup(_("IDS_WFD_BODY_CONNECTED_DEVICES"));
543 __WDUG_LOG_FUNC_EXIT__;
548 * This function let the ug get the label of connected device
549 * @return the label of connected device
550 * @param[in] data the pointer to the main data structure
551 * @param[in] obj the pointer to the evas object
552 * @param[in] part the pointer to the part of item
554 static char *_gl_peer_conn_dev_label_get(void *data, Evas_Object *obj, const char *part)
556 __WDUG_LOG_FUNC_ENTER__;
557 assertm_if(NULL == obj, "NULL!!");
558 assertm_if(NULL == part, "NULL!!");
559 device_type_s *peer = (device_type_s *) data;
560 char buf[WFD_GLOBALIZATION_STR_LENGTH] = { 0, };
561 WDUG_LOGI("%s", part);
564 WDUG_LOGE("Incorrect parameter(NULL)\n");
568 if (!strcmp(part, "elm.text.1")) {
569 return strdup(peer->ssid);
571 g_strlcpy(buf, _("IDS_WFD_CONNECTED"), WFD_GLOBALIZATION_STR_LENGTH);
572 __WDUG_LOG_FUNC_EXIT__;
578 * This function let the ug get the title label of connected failed device list
579 * @return the label of connected device
580 * @param[in] data the pointer to the main data structure
581 * @param[in] obj the pointer to the evas object
582 * @param[in] part the pointer to the part of item
584 static char *_gl_conn_failed_dev_title_label_get(void *data, Evas_Object *obj,
587 __WDUG_LOG_FUNC_ENTER__;
590 WDUG_LOGE("Incorrect parameter(NULL)\n");
594 if (!strcmp(part, "elm.text")) {
595 return strdup(IDS_WFD_BODY_FAILED_DEVICES);
598 __WDUG_LOG_FUNC_EXIT__;
603 * This function let the ug get the label of connected failed device
604 * @return the label of connected device
605 * @param[in] data the pointer to the main data structure
606 * @param[in] obj the pointer to the evas object
607 * @param[in] part the pointer to the part of item
609 static char *_gl_peer_conn_failed_dev_label_get(void *data, Evas_Object *obj, const char *part)
611 __WDUG_LOG_FUNC_ENTER__;
612 assertm_if(NULL == obj, "NULL!!");
613 assertm_if(NULL == part, "NULL!!");
614 device_type_s *peer = (device_type_s *) data;
615 char buf[WFD_GLOBALIZATION_STR_LENGTH] = { 0, };
616 WDUG_LOGI("%s", part);
619 WDUG_LOGE("Incorrect parameter(NULL)\n");
623 if (!strcmp(part, "elm.text.1")) {
624 return strdup(peer->ssid);
626 g_strlcpy(buf, _("IDS_WFD_FAILED_TO_CONNECT"), WFD_GLOBALIZATION_STR_LENGTH);
627 __WDUG_LOG_FUNC_EXIT__;
633 * This function let the ug get the title label of multi connect list
634 * @return the label of connected device
635 * @param[in] data the pointer to the main data structure
636 * @param[in] obj the pointer to the evas object
637 * @param[in] part the pointer to the part of item
639 static char *_gl_multi_connect_dev_title_label_get(void *data, Evas_Object *obj, const char *part)
641 __WDUG_LOG_FUNC_ENTER__;
642 struct ug_data *ugd = wfd_get_ug_data();
645 WDUG_LOGE("Incorrect parameter(NULL)\n");
649 if (!strcmp(part, "elm.text")) {
650 if (ugd->multi_connect_mode == WFD_MULTI_CONNECT_MODE_IN_PROGRESS) {
651 return strdup(_("IDS_WFD_BODY_AVAILABLE_DEVICES"));
652 } else if (ugd->multi_connect_mode == WFD_MULTI_CONNECT_MODE_COMPLETED) {
653 return strdup(IDS_WFD_BODY_FAILED_DEVICES);
657 __WDUG_LOG_FUNC_EXIT__;
662 * This function let the ug get the title label of busy device list
663 * @return the label of connected device
664 * @param[in] data the pointer to the main data structure
665 * @param[in] obj the pointer to the evas object
666 * @param[in] part the pointer to the part of item
668 static char *_gl_busy_dev_title_label_get(void *data, Evas_Object *obj,
671 __WDUG_LOG_FUNC_ENTER__;
674 WDUG_LOGE("Incorrect parameter(NULL)\n");
678 if (!strcmp(part, "elm.text")) {
679 return strdup(_("IDS_WFD_BODY_BUSY_DEVICES"));
682 __WDUG_LOG_FUNC_EXIT__;
687 * This function let the ug get the label of busy device
688 * @return the label of connected device
689 * @param[in] data the pointer to the main data structure
690 * @param[in] obj the pointer to the evas object
691 * @param[in] part the pointer to the part of item
693 static char *_gl_peer_busy_dev_label_get(void *data, Evas_Object *obj, const char *part)
695 __WDUG_LOG_FUNC_ENTER__;
696 assertm_if(NULL == obj, "NULL!!");
697 assertm_if(NULL == part, "NULL!!");
698 device_type_s *peer = (device_type_s *) data;
699 char buf[WFD_GLOBALIZATION_STR_LENGTH] = { 0, };
700 WDUG_LOGI("%s", part);
703 WDUG_LOGE("Incorrect parameter(NULL)\n");
707 WDUG_LOGI("peer->ssid = %s", peer->ssid);
709 if (!strcmp(part, "elm.text.1")) {
710 return strdup(peer->ssid);
712 g_strlcpy(buf, _("IDS_WFD_CONNECTED_WITH_OTHER_DEVICE"), WFD_GLOBALIZATION_STR_LENGTH);
713 __WDUG_LOG_FUNC_EXIT__;
719 * This function let the ug delete the peer item
721 * @param[in] data the pointer to the main data structure
722 * @param[in] obj the pointer to the evas object
724 static void _gl_peer_del(void *data, Evas_Object *obj)
726 __WDUG_LOG_FUNC_ENTER__;
727 assertm_if(NULL == obj, "NULL!!");
728 assertm_if(NULL == data, "NULL!!");
730 __WDUG_LOG_FUNC_EXIT__;
735 * This function let the ug initialize the items of genlist
738 void initialize_gen_item_class()
740 __WDUG_LOG_FUNC_ENTER__;
741 head_itc.item_style = "dialogue/2text.1icon.10";
742 head_itc.func.text_get = _gl_header_label_get;
743 head_itc.func.content_get = _gl_header_icon_get;
744 head_itc.func.state_get = NULL;
746 name_itc.item_style = "dialogue/1text";
747 name_itc.func.text_get = _gl_name_label_get;
748 name_itc.func.content_get = NULL;
749 name_itc.func.state_get = NULL;
750 name_itc.func.del = NULL;
752 title_itc.item_style = "dialogue/title";
753 title_itc.func.text_get = _gl_title_label_get;
754 title_itc.func.content_get = _gl_title_content_get;
755 title_itc.func.state_get = NULL;
756 title_itc.func.del = NULL;
758 peer_itc.item_style = "dialogue/2text.2icon.3";
759 peer_itc.func.text_get = _gl_peer_label_get;
760 peer_itc.func.content_get = _gl_peer_icon_get;
761 peer_itc.func.state_get = NULL;
762 peer_itc.func.del = _gl_peer_del;
764 noitem_itc.item_style = "dialogue/1text";
765 noitem_itc.func.text_get = _gl_noitem_text_get;
766 noitem_itc.func.content_get = NULL;
767 noitem_itc.func.state_get = NULL;
768 noitem_itc.func.del = NULL;
770 button_itc.item_style = "1icon";
771 button_itc.func.text_get = NULL;
772 button_itc.func.content_get = _gl_button_get;
773 button_itc.func.state_get = NULL;
774 button_itc.func.del = NULL;
776 title_conn_itc.item_style = "dialogue/title";
777 title_conn_itc.func.text_get = _gl_conn_dev_title_label_get;
778 title_conn_itc.func.content_get = NULL;
779 title_conn_itc.func.state_get = NULL;
780 title_conn_itc.func.del = NULL;
782 peer_conn_itc.item_style = "dialogue/2text.2icon.3";
783 peer_conn_itc.func.text_get = _gl_peer_conn_dev_label_get;
784 peer_conn_itc.func.content_get = _gl_peer_icon_get;
785 peer_conn_itc.func.state_get = NULL;
786 peer_conn_itc.func.del = _gl_peer_del;
788 title_conn_failed_itc.item_style = "dialogue/title";
789 title_conn_failed_itc.func.text_get = _gl_conn_failed_dev_title_label_get;
790 title_conn_failed_itc.func.content_get = NULL;
791 title_conn_failed_itc.func.state_get = NULL;
792 title_conn_failed_itc.func.del = NULL;
794 peer_conn_failed_itc.item_style = "dialogue/2text.2icon.3";
795 peer_conn_failed_itc.func.text_get = _gl_peer_conn_failed_dev_label_get;
796 peer_conn_failed_itc.func.content_get = _gl_peer_icon_get;
797 peer_conn_failed_itc.func.state_get = NULL;
798 peer_conn_failed_itc.func.del = _gl_peer_del;
800 title_busy_itc.item_style = "dialogue/title";
801 title_busy_itc.func.text_get = _gl_busy_dev_title_label_get;
802 title_busy_itc.func.content_get = NULL;
803 title_busy_itc.func.state_get = NULL;
804 title_busy_itc.func.del = NULL;
806 peer_busy_itc.item_style = "dialogue/2text.2icon.3";
807 peer_busy_itc.func.text_get = _gl_peer_busy_dev_label_get;
808 peer_busy_itc.func.content_get = _gl_peer_icon_get;
809 peer_busy_itc.func.state_get = NULL;
810 peer_busy_itc.func.del = _gl_peer_del;
812 title_multi_connect_itc.item_style = "dialogue/title";
813 title_multi_connect_itc.func.text_get = _gl_multi_connect_dev_title_label_get;
814 title_multi_connect_itc.func.content_get = NULL;
815 title_multi_connect_itc.func.state_get = NULL;
816 title_multi_connect_itc.func.del = NULL;
818 __WDUG_LOG_FUNC_EXIT__;