connection_cellular_state_e _get_cellular_state(void);
int _get_checkbox_status(tethering_type_e type);
bool _set_checkbox_status(tethering_type_e type, int value);
-int _send_signal_qp(const char *cmd);
void _device_name_changed_cb(keynode_t *key, void *data);
bool _set_vconf_prev_wifi_state(bool value);
bool _get_vconf_prev_wifi_state();
return value ? true : false;
}
-
-int _send_signal_qp(const char *cmd)
-{
- DBG("+\n");
-
- if (cmd == NULL) {
- ERR("Invalid param");
- return -1;
- }
-
- GDBusConnection *conn = NULL;
- int ret = 0;
- GVariant *message = NULL;
- GError *err = NULL;
-
- DBG("Sent dbus signal : %s\n", cmd);
-
- conn = g_bus_get_sync(DBUS_BUS_SYSTEM, NULL, &err);
- if (err != NULL) {
- ERR("Failed connection to system bus[%s]", err->message);
- g_error_free(err);
- err = NULL;
- return -1;
- }
- message = g_variant_new("(ss)", "wifi_hotspot", cmd);
- g_dbus_connection_emit_signal(conn, NULL, "/Org/Tizen/Quickpanel",
- "org.tizen.quickpanel", "ACTIVITY", message, &err);
- if (err) {
- ERR("g_dbus_connection_emit_signal is failed and error is %s\n", err->message);
- g_error_free(err);
- ret = -1;
- }
- g_variant_unref(message);
-
- if (conn)
- g_object_unref(conn);
-
- DBG("-\n");
- return ret;
-}
recheck_count = 0;
return FALSE;
}
- _send_signal_qp(QP_SIGNAL_PROGRESS_ON);
} else if (ad->type == TETHERING_TYPE_BT && _create_bt_tethering_on_popup(ad) < 0) {
ERR("_create_bt_tethering_on_popup fail\n");
_update_tethering_item(ad, MH_STATE_NONE);
return -1;
}
#endif
- _send_signal_qp(QP_SIGNAL_PROGRESS_OFF);
}
return 0;
}
ugd->ug = ug;
ad->gadget = ugd;
- _send_signal_qp(QP_SIGNAL_PROGRESS_RESET);
-
ecore_imf_init();
ret = tethering_create(&ad->handle);
_update_wifi_item(ad, MH_STATE_NONE);
}
_wifi_tethering_checkbox_popup_status_set(false);
- _send_signal_qp(QP_SIGNAL_PROGRESS_ON);
break;
case MH_POPUP_BT_ON_CHECKBOX:
ERR("wifi tethering off is failed : %d\n", ret);
_update_wifi_item(ad, MH_STATE_NONE);
}
- _send_signal_qp(QP_SIGNAL_PROGRESS_OFF);
break;
case MH_POPUP_MOBILE_DATA_OFF:
switch (popup_type) {
case MH_POPUP_WIFI_ON_CHECKBOX:
_update_tethering_enabling_item(ad, TETHERING_TYPE_WIFI, MH_STATE_NONE);
- _send_signal_qp(QP_SIGNAL_PROGRESS_RESET);
_wifi_tethering_checkbox_popup_status_set(false);
break;
case MH_POPUP_WIFI_OFF:
_update_tethering_enabling_item(ad, TETHERING_TYPE_WIFI, MH_STATE_NONE);
- _send_signal_qp(QP_SIGNAL_PROGRESS_RESET);
break;
case MH_POPUP_MOBILE_DATA_OFF: