aboutsummaryrefslogtreecommitdiff
path: root/src/mm-modem.c
diff options
context:
space:
mode:
authorNorbert Frese <nf2.email@gmail.com>2010-01-31 11:06:55 -0800
committerDan Williams <dcbw@redhat.com>2010-01-31 11:06:55 -0800
commit3d0f2ecf126734e96ad1f18d7e069ded3711b9f8 (patch)
treea9a58264458560723d2a5afd9cb5cd84ccabf827 /src/mm-modem.c
parent649b7e25a038cd6df735b2558bf22ee9d379924b (diff)
core: add an UnlockRequired property that provides lock status (bgo #604551)
Clients can check the property to determine lock/unlock status and thus unlock the modem before trying to connect if required. Bits of the patch by dcbw (see the bug).
Diffstat (limited to 'src/mm-modem.c')
-rw-r--r--src/mm-modem.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mm-modem.c b/src/mm-modem.c
index a65d8831..5bb2ef6b 100644
--- a/src/mm-modem.c
+++ b/src/mm-modem.c
@@ -694,6 +694,15 @@ mm_modem_init (gpointer g_iface)
FALSE,
G_PARAM_READABLE));
+ g_object_interface_install_property
+ (g_iface,
+ g_param_spec_string (MM_MODEM_UNLOCK_REQUIRED,
+ "UnlockRequired",
+ "Whether or not the modem requires an unlock "
+ "code to become usable, and if so, which unlock code is required",
+ NULL,
+ G_PARAM_READABLE));
+
/* Signals */
g_signal_new ("state-changed",
iface_type,