Don't emit signals for unexposed properties

Signals shouldn't be emitted, but we should still track the information
so it can be written to the SIM reliably
This commit is contained in:
Denis Kenzior 2009-08-05 12:44:36 -05:00
parent ed56d7c585
commit 965fc09e6a
1 changed files with 7 additions and 5 deletions

View File

@ -331,12 +331,12 @@ static void mw_mwis_read_cb(struct ofono_modem *modem, int ok,
info.message_count) {
memcpy(&mw->messages[i], &info, sizeof(info));
if (!mw_message_waiting_property_name[i])
continue;
indication = info.indication;
count = info.message_count;
if (!mw_message_waiting_property_name[i])
continue;
ofono_dbus_signal_property_changed(conn, modem->path,
MESSAGE_WAITING_INTERFACE,
mw_message_waiting_property_name[i],
@ -475,7 +475,8 @@ static void mw_set_indicator(struct ofono_modem *modem, int profile,
indication = present;
mw->messages[type].indication = present;
ofono_dbus_signal_property_changed(conn, modem->path,
if (!mw_message_waiting_property_name[type])
ofono_dbus_signal_property_changed(conn, modem->path,
MESSAGE_WAITING_INTERFACE,
mw_message_waiting_property_name[type],
DBUS_TYPE_BOOLEAN, &indication);
@ -484,7 +485,8 @@ static void mw_set_indicator(struct ofono_modem *modem, int profile,
if (mw->messages[type].message_count != messages) {
mw->messages[type].message_count = messages;
ofono_dbus_signal_property_changed(conn, modem->path,
if (!mw_message_waiting_property_name[type])
ofono_dbus_signal_property_changed(conn, modem->path,
MESSAGE_WAITING_INTERFACE,
mw_message_count_property_name[type],
DBUS_TYPE_BYTE, &messages);