From 3d0f2ecf126734e96ad1f18d7e069ded3711b9f8 Mon Sep 17 00:00:00 2001 From: Norbert Frese Date: Sun, 31 Jan 2010 11:06:55 -0800 Subject: 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). --- src/mm-modem.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/mm-modem.c') 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, -- cgit v1.2.3-70-g09d2