diff options
author | Torgny Johansson <torgny.johansson@ericsson.com> | 2010-06-22 14:05:09 -0700 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2010-06-22 14:05:09 -0700 |
commit | f179a56908f62f59f5e1419d562e5b9219cfbe7d (patch) | |
tree | 50490c6311f45383231d5194c17140ef279ba9e4 /src/mm-modem.c | |
parent | adfe264b67ba28effd3fb8378cbcbe2081f6ed49 (diff) |
gsm: add UnlockRetries property
Which reports the # of attempts remaining for the current PIN required
by the device or SIM.
Some modifications/cleanups by dcbw.
Diffstat (limited to 'src/mm-modem.c')
-rw-r--r-- | src/mm-modem.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mm-modem.c b/src/mm-modem.c index 35e3b07c..b378fffa 100644 --- a/src/mm-modem.c +++ b/src/mm-modem.c @@ -812,6 +812,14 @@ mm_modem_init (gpointer g_iface) NULL, G_PARAM_READABLE)); + g_object_interface_install_property + (g_iface, + g_param_spec_uint (MM_MODEM_UNLOCK_RETRIES, + "UnlockRetries", + "The remaining number of unlock attempts", + 0, G_MAXUINT32, 0, + G_PARAM_READABLE)); + /* Signals */ g_signal_new ("state-changed", iface_type, |