#include <ui-gadget-module.h>
#include <app_control.h>
-#include <wifi-direct.h>
#include "wfd_ug.h"
#include "wfd_ug_view.h"
#include "wfd_client.h"
res = vconf_get_int(VCONFKEY_MOBILE_HOTSPOT_MODE, &hotspot_mode);
if (res) {
- WDS_LOGE("Failed to get vconf value for PLMN(%d)", res);
+ DBG(LOG_INFO, "Failed to get vconf value for PLMN(%d)", res);
return;
}
DBG(LOG_INFO, "__wfd_hotspot_mode_vconf_change_cb mode %d", hotspot_mode);
__FUNC_ENTER__;
struct ug_data *ugd;
int wfd_status = -1;
- int rots[4] = { 0, 90, 180, 270 };
int ret;
if (!ug || !priv) {
return NULL;
}
- elm_win_wm_rotation_available_rotations_set(ugd->win, rots, 1);
-
+ /* set rotation */
+ if (elm_win_wm_rotation_supported_get(ugd->win)) {
+ int rots[4] = {0, 90, 180, 270};
+ elm_win_wm_rotation_available_rotations_set(ugd->win, (const int *)(&rots), 4);
+ }
/* check the input parameters from app at first */
ugd->wfds = NULL;
ugd->is_auto_exit = false;
ugd->is_multi_connect = true;
ugd->is_init_ok = false;
- ugd->title = strdup(_("IDS_WIFI_BODY_WI_FI_DIRECT_ABB"));
+ ugd->title = strdup(D_("IDS_WIFI_BODY_WI_FI_DIRECT_ABB"));
if (control) {
char *wfds = NULL;
} else {
DBG_SECURE(LOG_INFO, "HW ID of this device [%s]\n", kernel_info.machine);
if (strncmp(kernel_info.machine, "arm", 3) != 0) {
- wfd_ug_warn_popup(ugd, _("IDS_ST_POP_NOT_SUPPORTED"), POPUP_TYPE_TERMINATE_NOT_SUPPORT);
+ wfd_ug_warn_popup(ugd, D_("IDS_ST_POP_NOT_SUPPORTED"), POPUP_TYPE_TERMINATE_NOT_SUPPORT);
return;
}
}
if (ugd->scan_toolbar) {
wfd_ug_view_refresh_button(ugd->scan_toolbar,
- _("IDS_WIFI_SK4_SCAN"), FALSE);
+ D_("IDS_WIFI_SK4_SCAN"), FALSE);
}
ret = vconf_ignore_key_changed(VCONFKEY_SETAPPL_DEVICE_NAME_STR,
{
__FUNC_ENTER__;
- *applocale = strdup("ug-setting-wifidirect-efl");
+ *applocale = strdup(PACKAGE);
void *node = NULL;
Eina_List **pplist = (Eina_List**)priv;