static int unregister_battery_module(void)
{
	int ret;

	ret = vconf_ignore_key_changed(VCONFKEY_SYSMAN_BATTERY_CAPACITY,
				       indicator_battery_change_cb);
	if (ret != OK)
		ERR("Failed to unregister callback!");

	ret = vconf_ignore_key_changed(VCONFKEY_SYSMAN_BATTERY_STATUS_LOW,
				       indicator_battery_change_cb);
	if (ret != OK)
		ERR("Failed to unregister callback!");

	ret = vconf_ignore_key_changed(VCONFKEY_SYSMAN_BATTERY_CHARGE_NOW,
				       indicator_battery_charging_cb);
	if (ret != OK)
		ERR("Failed to unregister callback!");

	ret = vconf_ignore_key_changed(VCONFKEY_SETAPPL_BATTERY_PERCENTAGE_BOOL,
				       indicator_battery_percentage_option_cb);
	if (ret != OK)
		ERR("Failed to unregister callback!");

	delete_timer();
	indicator_util_icon_hide(&battery);

	if (battery.txt_obj.data != NULL)
		free(battery.txt_obj.data);

	return OK;
}
void MsgSettingRemoveVconfCB()
{
	if (vconf_ignore_key_changed(VCONFKEY_CISSAPPL_AUTO_REJECT_BOOL, MsgVconfCB) < 0) {
		MSG_DEBUG("Fail to regist vconf CB with [%s]", VCONFKEY_CISSAPPL_AUTO_REJECT_BOOL);
	}

	if (vconf_ignore_key_changed(VCONFKEY_CISSAPPL_AUTO_REJECT_UNKNOWN_BOOL, MsgVconfCB) < 0) {
		MSG_DEBUG("Fail to regist vconf CB with [%s]", VCONFKEY_CISSAPPL_AUTO_REJECT_UNKNOWN_BOOL);
	}
}
示例#3
0
bool
mp_app_noti_ignore(void)
{
	sound_manager_unset_available_route_changed_cb();
	sound_manager_unset_active_device_changed_cb();

	if (vconf_ignore_key_changed(VCONFKEY_FILEMANAGER_DB_STATUS, _mp_app_noti_changed_cb) < 0)
	{
		ERROR_TRACE("Error when ignore callback\n");
		return FALSE;
	}
	if (vconf_ignore_key_changed(VCONFKEY_SETAPPL_SOUND_STATUS_BOOL, _mp_app_noti_changed_cb) < 0)
	{
		ERROR_TRACE("Error when ignore callback\n");
		return FALSE;
	}

	if (vconf_ignore_key_changed(VCONFKEY_SYSMAN_EARJACKKEY, _mp_app_noti_changed_cb) < 0)
	{
		ERROR_TRACE("Error when ignore callback\n");
		return FALSE;
	}

	if (vconf_ignore_key_changed(VCONFKEY_SYSMAN_MMC_STATUS, _mp_app_noti_changed_cb) < 0)
	{
		ERROR_TRACE("Error when ignore callback\n");
		return FALSE;
	}

	if (vconf_ignore_key_changed(MP_VCONFKEY_PLAYING_PID, _mp_app_noti_changed_cb) < 0)
	{
		ERROR_TRACE("Error when ignore callback\n");
		return FALSE;
	}

#ifdef MP_FEATURE_AVRCP_13
	mp_avrcp_target_finalize();
#endif

	if(gNotiPipe)
	{
		ecore_pipe_del(gNotiPipe);
		gNotiPipe = NULL;
	}
	return TRUE;
}
static int unregister_mmc_module(void)
{
	int ret;

	ret = vconf_ignore_key_changed(VCONFKEY_FILEMANAGER_DB_STATUS,
				       indicator_mmc_change_cb);
	if (ret != OK)
		ERR("Failed to unregister mmcback!");

	indicator_util_icon_hide(&mmc);

	return OK;
}
static int unregister_fm_radio_module(void)
{
	int ret;

	ret = vconf_ignore_key_changed(VCONFKEY_RADIO_STATE,
				       indicator_fm_radio_change_cb);
	if (ret != OK)
		ERR("Failed to unregister callback!");

	hide_image_icon();

	return OK;
}
示例#6
0
文件: appcore.c 项目: pjhwan92/tizen
static int __del_vconf(void)
{
	int i;
	int r;

	for (i = 0; i < sizeof(evtops) / sizeof(evtops[0]); i++) {
		struct evt_ops *eo = &evtops[i];

		switch (eo->type) {
		case _CB_VCONF:
			r = vconf_ignore_key_changed(eo->key.vkey, __vconf_cb);
			break;
		default:
			/* do nothing */
			break;
		}
	}

	return 0;
}
static void cleanup(void)
{
	vconf_ignore_key_changed(KEY_DB, test_cb);
	vconf_unset(KEY_DB);
}
StyleMonitor::~StyleMonitor()
{
  vconf_ignore_key_changed( VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_SIZE, DefaultFontSizeChangeNotification );
}