api,modem: new 'SetPowerState()' method and 'PowerState' property

Going into/outof low-power state is now a user-requested action.
This commit is contained in:
Aleksander Morgado
2013-01-11 10:05:45 +01:00
parent f50aa47fb2
commit 49aecb57dc
4 changed files with 47 additions and 0 deletions
@@ -124,6 +124,18 @@
<arg name="code" type="s" direction="in" />
</method>
<!--
SetPowerState:
@state: A <link linkend="MMModemPowerState">MMModemPowerState</link> value, to specify the desired power state.
Set the power state of the modem. This action can only be run when the
modem is in <link linkend="MM-MODEM-STATE-DISABLED:CAPS"><constant>MM_MODEM_STATE_DISABLED</constant></link>
state.
-->
<method name="SetPowerState">
<arg name="state" type="u" direction="in" />
</method>
<!--
SetAllowedModes:
@modes: Bitmask of <link linkend="MMModemMode">MMModemMode</link> values, to specify all the modes allowed in the modem.
@@ -377,6 +389,14 @@
-->
<property name="OwnNumbers" type="as" access="read" />
<!--
PowerState:
A <link linkend="MMModemPowerState">MMModemPowerState</link> value
specifying the current power state of the modem.
-->
<property name="PowerState" type="u" access="read" />
<!--
SupportedModes: