core: fatal errors in iface initializations force the modem into a FAILED state

Modems which end up being found unusable (e.g. no SIM, fatal SIM error, no
capabilities) will be exposed in DBus, but just with the Modem interface and
in a FAILED state which allows no actions.
This commit is contained in:
Aleksander Morgado
2012-03-30 13:47:00 +02:00
parent 3b366118b6
commit 7518772d4b
7 changed files with 223 additions and 229 deletions
@@ -172,8 +172,8 @@
The modem's state (see #org.freedesktop.ModemManager1.Modem:State) changed.
-->
<signal name="StateChanged">
<arg name="old" type="u" />
<arg name="new" type="u" />
<arg name="old" type="i" />
<arg name="new" type="i" />
<arg name="reason" type="u" />
</signal>
@@ -333,7 +333,7 @@
<link linkend="MM-MODEM-STATE-UNKNOWN:CAPS"><constant>MM_MODEM_STATE_UNKNOWN</constant></link>
will be reported.
-->
<property name="State" type="u" access="read" />
<property name="State" type="i" access="read" />
<!--
AccessTechnologies: