From 85a473cd9a9f3c6ef34a80245696aa009a6facf0 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Wed, 26 Sep 2018 15:26:21 +0800 Subject: binding: bluetooth: remove useless setHMIStatus Since homescreen now uses libqtappfw to set the Bluetooth status icon, and no longer uses dbus the setHMIStatus function can be removed. Change-Id: I9155a4eb9b380c034deca6402de43bf785b323cd Signed-off-by: Matt Ranostay --- binding-bluetooth/bluetooth-manager.c | 36 ----------------------------------- 1 file changed, 36 deletions(-) (limited to 'binding-bluetooth/bluetooth-manager.c') diff --git a/binding-bluetooth/bluetooth-manager.c b/binding-bluetooth/bluetooth-manager.c index 38e780b..fd80f10 100644 --- a/binding-bluetooth/bluetooth-manager.c +++ b/binding-bluetooth/bluetooth-manager.c @@ -1140,10 +1140,7 @@ gboolean bt_autoconnect(gpointer ptr) tmp = tmp->next; if (ret == FALSE) - { - setHMIStatus(ACTIVE); break; - } } return ret; @@ -1982,36 +1979,3 @@ void BindingAPIRegister(const Binding_RegisterCallback_t* pstRegisterCallback) } } } - -GError* setHMIStatus(enum btStates state) { - - gchar *iconString = NULL; - GDBusConnection *connection; - GVariant *params = NULL; - GVariant *message = NULL; - GError *error = NULL; - - if (state==INACTIVE) iconString = "qrc:/images/Status/HMI_Status_Bluetooth_Inactive-01.png"; - else if (state==ACTIVE) iconString = "qrc:/images/Status/HMI_Status_Bluetooth_On-01.png"; - else iconString = "qrc:/images/Status/HMI_Status_Bluetooth_Inactive-01.png"; - - connection = g_bus_get_sync(G_BUS_TYPE_SESSION, NULL, &error); - - params = g_variant_new("(is)", HOMESCREEN_BT_ICON_POSITION, iconString); - - message = g_dbus_connection_call_sync(connection, HOMESCREEN_SERVICE, - HOMESCREEN_ICON_PATH, HOMESCREEN_ICON_INTERFACE, "setStatusIcon", params, - NULL, G_DBUS_CALL_FLAGS_NONE, - DBUS_REPLY_TIMEOUT, NULL, &error); - - if (error) { - printf("error: %s\n", error->message); - - return error; - } else { - return NULL; - } - -} - - -- cgit 1.2.3-korg