cli: implement 3GPP related actions

This commit is contained in:
Aleksander Morgado
2012-03-15 14:14:36 +01:00
parent 73ca5dcb24
commit 6583bd61e1
6 changed files with 336 additions and 4 deletions
+13
View File
@@ -550,6 +550,19 @@ mmcli_get_lock_string (MMModemLock lock)
return value->value_nick;
}
const gchar *
mmcli_get_3gpp_network_availability_string (MMModem3gppNetworkAvailability availability)
{
static GEnumClass *enum_class = NULL;
GEnumValue *value;
if (!enum_class)
enum_class = G_ENUM_CLASS (g_type_class_ref (MM_TYPE_MODEM_3GPP_NETWORK_AVAILABILITY));
value = g_enum_get_value (enum_class, availability);
return value->value_nick;
}
/* Common options */
static gchar *modem_str;
static gchar *bearer_str;