mmcli: added Modem.Voice and Call support

This commit is contained in:
Riccardo Vangelisti
2015-08-02 10:39:12 +02:00
committed by Aleksander Morgado
parent 0bf4ad6b66
commit c3bec1537b
7 changed files with 1132 additions and 1 deletions
+22
View File
@@ -204,6 +204,8 @@ main (gint argc, gchar **argv)
mmcli_modem_location_get_option_group ());
g_option_context_add_group (context,
mmcli_modem_messaging_get_option_group ());
g_option_context_add_group (context,
mmcli_modem_voice_get_option_group ());
g_option_context_add_group (context,
mmcli_modem_time_get_option_group ());
g_option_context_add_group (context,
@@ -218,6 +220,8 @@ main (gint argc, gchar **argv)
mmcli_bearer_get_option_group ());
g_option_context_add_group (context,
mmcli_sms_get_option_group ());
g_option_context_add_group (context,
mmcli_call_get_option_group ());
g_option_context_add_main_entries (context, main_entries, NULL);
g_option_context_parse (context, &argc, &argv, NULL);
g_option_context_free (context);
@@ -280,6 +284,13 @@ main (gint argc, gchar **argv)
else
mmcli_sms_run_synchronous (connection);
}
/* Call options? */
else if (mmcli_call_options_enabled ()) {
if (async_flag)
mmcli_call_run_asynchronous (connection, cancellable);
else
mmcli_call_run_synchronous (connection);
}
/* Modem 3GPP options? */
else if (mmcli_modem_3gpp_options_enabled ()) {
if (async_flag)
@@ -315,6 +326,13 @@ main (gint argc, gchar **argv)
else
mmcli_modem_messaging_run_synchronous (connection);
}
/* Voice options? */
else if (mmcli_modem_voice_options_enabled ()) {
if (async_flag)
mmcli_modem_voice_run_asynchronous (connection, cancellable);
else
mmcli_modem_voice_run_synchronous (connection);
}
/* Modem Time options? */
else if (mmcli_modem_time_options_enabled ()) {
if (async_flag)
@@ -375,6 +393,8 @@ main (gint argc, gchar **argv)
mmcli_modem_location_shutdown ();
} else if (mmcli_modem_messaging_options_enabled ()) {
mmcli_modem_messaging_shutdown ();
} else if (mmcli_modem_voice_options_enabled ()) {
mmcli_modem_voice_shutdown ();
} else if (mmcli_modem_time_options_enabled ()) {
mmcli_modem_time_shutdown ();
} else if (mmcli_modem_firmware_options_enabled ()) {
@@ -389,6 +409,8 @@ main (gint argc, gchar **argv)
mmcli_bearer_shutdown ();
} else if (mmcli_sms_options_enabled ()) {
mmcli_sms_shutdown ();
} else if (mmcli_call_options_enabled ()) {
mmcli_call_shutdown ();
} else if (mmcli_modem_options_enabled ()) {
mmcli_modem_shutdown ();
}