diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2011-08-15 16:08:57 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2011-08-17 16:02:57 +0200 |
commit | 713c07290f5bad6ea60200dad1504baf43a91f0d (patch) | |
tree | 7975f51ef6eabe32f78b29d27b51dbb752a0b471 /introspection | |
parent | 8799f4da1fdf0f0cad36dc6de68e3c35cc8177ae (diff) |
introspection: define type MM_MODEM_STATE
Diffstat (limited to 'introspection')
-rw-r--r-- | introspection/org.freedesktop.ModemManager.Modem.xml | 60 |
1 files changed, 55 insertions, 5 deletions
diff --git a/introspection/org.freedesktop.ModemManager.Modem.xml b/introspection/org.freedesktop.ModemManager.Modem.xml index dadaaacd..7fc398f7 100644 --- a/introspection/org.freedesktop.ModemManager.Modem.xml +++ b/introspection/org.freedesktop.ModemManager.Modem.xml @@ -182,10 +182,8 @@ </tp:docstring> </property> - <!-- This ought to be of tp:type="MM_MODEM_STATE" but there are a couple - more wrinkles to be sorted out before we can export that here. - Also, Enabled should be folded into this. --> - <property name="State" type="u" access="read"> + <!-- Enabled should be folded into this. --> + <property name="State" type="u" access="read" tp:type="MM_MODEM_STATE"> <tp:docstring> State of the modem. </tp:docstring> @@ -222,6 +220,59 @@ </tp:enumvalue> </tp:enum> + <tp:enum name="MM_MODEM_STATE" type="u"> + <tp:enumvalue suffix="UNKNOWN" value="0"> + <tp:docstring> + State unknown or not reportable. + </tp:docstring> + </tp:enumvalue> + <tp:enumvalue suffix="DISABLED" value="10"> + <tp:docstring> + Modem is disabled. + </tp:docstring> + </tp:enumvalue> + <tp:enumvalue suffix="DISABLING" value="20"> + <tp:docstring> + Modem is being disabled. + </tp:docstring> + </tp:enumvalue> + <tp:enumvalue suffix="ENABLING" value="30"> + <tp:docstring> + Modem is being enabled. + </tp:docstring> + </tp:enumvalue> + <tp:enumvalue suffix="ENABLED" value="40"> + <tp:docstring> + Modem is enabled. + </tp:docstring> + </tp:enumvalue> + <tp:enumvalue suffix="SEARCHING" value="50"> + <tp:docstring> + Modem is searching networks. + </tp:docstring> + </tp:enumvalue> + <tp:enumvalue suffix="REGISTERED" value="60"> + <tp:docstring> + Modem is registered in a network. + </tp:docstring> + </tp:enumvalue> + <tp:enumvalue suffix="DISCONNECTING" value="70"> + <tp:docstring> + Modem is being disconnected. + </tp:docstring> + </tp:enumvalue> + <tp:enumvalue suffix="CONNECTING" value="80"> + <tp:docstring> + Modem is being connected. + </tp:docstring> + </tp:enumvalue> + <tp:enumvalue suffix="CONNECTED" value="90"> + <tp:docstring> + Modem is connected + </tp:docstring> + </tp:enumvalue> + </tp:enum> + <tp:enum name="MM_MODEM_STATE_CHANGED_REASON" type="u"> <tp:enumvalue suffix="UNKNOWN" value="0"> <tp:docstring> @@ -240,6 +291,5 @@ </tp:enumvalue> </tp:enum> - </interface> </node> |