return;
}
-int __net_popup_send_dbus_msg(const char *resp)
-{
- log_print(NET_POPUP, "__net_popup_send_dbus_msg()\n");
-
- if (conn == NULL || resp == NULL)
- return -1;
-
- GDBusConnection *gconn = NULL;
- GVariant *msg = NULL;
- char *module = "wifi";
- GError *err = NULL;
-
- gconn = g_bus_get_sync(DBUS_BUS_SYSTEM, NULL, &err);
- if (err != NULL) {
- g_error_free(err);
- err = NULL;
- return -1;
- }
-
- msg = g_variant_new("(ss)", module, resp);
- g_dbus_connection_emit_signal(gconn, NULL, "/Org/Tizen/Quickpanel",
- "org.tizen.quickpanel", "ACTIVITY", msg, &err);
- if (err) {
- g_error_free(err);
- return -1;
- }
-
- g_variant_unref(msg);
-
- if (gconn)
- g_object_unref(gconn);
-
-
- return 0;
-}
-
void __net_popup_send_data_usage_msg(const char *app_id,
const char *iftype)
{
bool result = FALSE;
Evas_Object *popup = (Evas_Object *)data;
- __net_popup_init_dbus();
- __net_popup_send_dbus_msg("progress_off");
- __net_popup_deinit_dbus();
-
result = _net_popup_send_user_resp(RESP_WIFI_TETHERING_OFF, FALSE);
if (true != result)
log_print(NET_POPUP, "Failed to send user response ");
bool result = FALSE;
Evas_Object *popup = (Evas_Object *)data;
- __net_popup_init_dbus();
- __net_popup_send_dbus_msg("progress_off");
- __net_popup_deinit_dbus();
-
result = _net_popup_send_user_resp(RESP_WIFI_AP_TETHERING_OFF, FALSE);
if (true != result)
log_print(NET_POPUP, "Failed to send user response ");
evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND,
EVAS_HINT_EXPAND);
- __net_popup_send_dbus_msg("progress_on");
label = elm_label_add(popup);
elm_label_line_wrap_set(label, ELM_WRAP_MIXED);
elm_object_text_set(label, ALERT_STR_WIFI_MOBILE_AP_ON);