From: Kyeongchul Kim Date: Tue, 21 Aug 2012 13:14:28 +0000 (+0900) Subject: release tizen_2.0 beta X-Git-Tag: 2.0_alpha^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=HEAD;p=platform%2Fcore%2Ftelephony%2Ftel-plugin-indicator.git release tizen_2.0 beta --- diff --git a/debian/changelog b/debian/changelog index 60f3ddd..2f8d3bf 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,7 +1,23 @@ +tel-plugin-indicator (0.1.4) unstable; urgency=low + + * Add context reset logic after modem crash + * Git: slp/pkgs/t/tel-plugin-indicator + * Tag: tel-plugin-indicator_0.1.4 + + -- DongHoo Park Wed, 23 May 2012 17:37:50 +0900 + +tel-plugin-indicator (0.1.3) unstable; urgency=low + + * package version sync with public + * Git: slp/pkgs/t/tel-plugin-indicator + * Tag: tel-plugin-indicator_0.1.3 + + -- Inho Oh Mon, 02 Apr 2012 14:49:46 +0900 + tel-plugin-indicator (0.1.2) unstable; urgency=low * Fix prefix (TAPI_ to TCORE_) - * Git: pkgs/t/tel-plugin-indicator + * Git: slp/pkgs/t/tel-plugin-indicator * Tag: tel-plugin-indicator_0.1.2 -- Inho Oh Tue, 27 Mar 2012 22:17:37 +0900 @@ -9,7 +25,7 @@ tel-plugin-indicator (0.1.2) unstable; urgency=low tel-plugin-indicator (0.1.1) unstable; urgency=low * Add .spec for OBS - * Git: pkgs/t/tel-plugin-indicator + * Git: slp/pkgs/t/tel-plugin-indicator * Tag: tel-plugin-indicator_0.1.1 -- DongHoo Park Fri, 16 Mar 2012 21:31:53 +0900 @@ -17,7 +33,7 @@ tel-plugin-indicator (0.1.1) unstable; urgency=low tel-plugin-indicator (0.1.0) unstable; urgency=low * Initial - * Git: pkgs/t/tel-plugin-indicator + * Git: slp/pkgs/t/tel-plugin-indicator * Tag: tel-plugin-indicator_0.1.0 -- Inho Oh Thu, 15 Mar 2012 22:37:29 +0900 diff --git a/packaging/tel-plugin-indicator.spec b/packaging/tel-plugin-indicator.spec index e7d0bce..0a134bb 100644 --- a/packaging/tel-plugin-indicator.spec +++ b/packaging/tel-plugin-indicator.spec @@ -1,7 +1,7 @@ #sbs-git:slp/pkgs/t/tel-plugin-indicator Name: tel-plugin-indicator Summary: Telephony Indicator plugin -Version: 0.1.1 +Version: 0.1.4 Release: 1 Group: System/Libraries License: Apache diff --git a/src/desc-indicator.c b/src/desc-indicator.c index 8eba297..6176506 100644 --- a/src/desc-indicator.c +++ b/src/desc-indicator.c @@ -275,6 +275,25 @@ static gboolean _indicator_update_callback(gpointer user_data) return TRUE; } +static enum tcore_hook_return __on_hook_powered(Server *s, CoreObject *source, + enum tcore_notification_command command, unsigned int data_len, void *data, void *user_data) +{ + struct tnoti_modem_power *modem_power = NULL; + + dbg("powered event called"); + g_return_val_if_fail(data != NULL, TCORE_HOOK_RETURN_STOP_PROPAGATION); + + modem_power = (struct tnoti_modem_power *)data; + if ( modem_power->state == MODEM_STATE_ERROR ){ + indicator_info.active = FALSE; + g_free(indicator_info.devname); + indicator_info.devname = NULL; + _indicator_stop_updater(s); + } + + return TCORE_HOOK_RETURN_CONTINUE; +} + static enum tcore_hook_return __on_hook_callstatus(Server *s, CoreObject *source, enum tcore_notification_command command, unsigned int data_len, void *data, void *user_data) @@ -323,6 +342,7 @@ static gboolean on_init(TcorePlugin *p) { Server *s = NULL; s = tcore_plugin_ref_server(p); + tcore_server_add_notification_hook(s, TNOTI_MODEM_POWER, __on_hook_powered, NULL); tcore_server_add_notification_hook(s, TNOTI_PS_CALL_STATUS, __on_hook_callstatus, NULL); dbg("initialized Indicator plugin!"); return TRUE;