Cleanup: Minor API tweaks for USSD

This commit is contained in:
Denis Kenzior 2010-02-16 09:55:47 -06:00
parent 7d7739f7d6
commit 1bebc1b469
2 changed files with 12 additions and 12 deletions

View File

@ -49,16 +49,16 @@ Signals NotificationReceived(string message)
Signal is emitted whenever a property has changed.
The new value is passed as the signal argument.
Properties string USSDState [readonly]
Properties string State [readonly]
Reflects the state of current USSD session. The
values have the following meanings:
"idle" No active USSD session.
"active" A session is active between the
network and the ME, the ME is
waiting for a reply from the
network.
"awaiting-user-response" The network is waiting for the
user's response, client must
call Respond().
"idle" No active USSD session.
"active" A session is active between the
network and the ME, the ME is
waiting for a reply from the
network.
"user-response" The network is waiting for the
user's response, client must
call Respond().

View File

@ -280,7 +280,7 @@ static const char *ussd_get_state_string(struct ofono_ussd *ussd)
case USSD_STATE_ACTIVE:
return "active";
case USSD_STATE_USER_ACTION:
return "awaiting-user-response";
return "user-response";
}
return "";
@ -300,7 +300,7 @@ static void ussd_change_state(struct ofono_ussd *ussd, int state)
value = ussd_get_state_string(ussd);
ofono_dbus_signal_property_changed(conn, path,
SUPPLEMENTARY_SERVICES_INTERFACE,
"USSDState", DBUS_TYPE_STRING, &value);
"State", DBUS_TYPE_STRING, &value);
}
void ofono_ussd_notify(struct ofono_ussd *ussd, int status, const char *str)
@ -572,7 +572,7 @@ static DBusMessage *ussd_get_properties(DBusConnection *conn,
&dict);
value = ussd_get_state_string(ussd);
ofono_dbus_dict_append(&dict, "USSDState", DBUS_TYPE_STRING, &value);
ofono_dbus_dict_append(&dict, "State", DBUS_TYPE_STRING, &value);
dbus_message_iter_close_container(&iter, &dict);