| Top |
MMModemVoice implements GDBusInterface, GInitable, GAsyncInitable and MmGdbusModemVoice.
The MMModemVoice is an object providing access to the methods, signals and properties of the Voice interface.
The Voice interface is exposed whenever a modem has voice capabilities.
const gchar *
mm_modem_voice_get_path (MMModemVoice *self);
Gets the DBus path of the MMObject which implements this interface.
gchar *
mm_modem_voice_dup_path (MMModemVoice *self);
Gets a copy of the DBus path of the MMObject object which implements this interface.
void mm_modem_voice_create_call (MMModemVoice *self,MMCallProperties *properties,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously creates a new MMCall in the modem.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call mm_modem_voice_create_call_finish() to get the result of the operation.
See mm_modem_voice_create_call_sync() for the synchronous, blocking version of this method.
self |
A MMModemVoice. |
|
properties |
A #MMCallProperties object with the properties to use. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
MMCall * mm_modem_voice_create_call_finish (MMModemVoice *self,GAsyncResult *res,GError **error);
Finishes an operation started with mm_modem_voice_create_call().
self |
A MMModemVoice. |
|
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
A newly created MMCall, or NULL if error
is set. The returned value should be freed with g_object_unref().
[transfer full]
MMCall * mm_modem_voice_create_call_sync (MMModemVoice *self,MMCallProperties *properties,GCancellable *cancellable,GError **error);
Synchronously creates a new MMCall in the modem.
The calling thread is blocked until a reply is received. See mm_modem_voice_create_call()
for the asynchronous version of this method.
self |
A MMModemVoice. |
|
properties |
A #MMCallProperties object with the properties to use. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
A newly created MMCall, or NULL if error
is set. The returned value should be freed with g_object_unref().
[transfer full]
void mm_modem_voice_delete_call (MMModemVoice *self,const gchar *call,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously deletes a given MMCall from the modem.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call mm_modem_voice_delete_call_finish() to get the result of the operation.
See mm_modem_voice_delete_call_sync() for the synchronous, blocking version of this method.
self |
A MMModemVoice. |
|
call |
Path of the MMCall to delete. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
gboolean mm_modem_voice_delete_call_finish (MMModemVoice *self,GAsyncResult *res,GError **error);
Finishes an operation started with mm_modem_voice_delete_call().
self |
A MMModemVoice. |
|
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
gboolean mm_modem_voice_delete_call_sync (MMModemVoice *self,const gchar *call,GCancellable *cancellable,GError **error);
Synchronously deletes a given MMCall from the modem.
The calling thread is blocked until a reply is received. See mm_modem_voice_delete_call()
for the asynchronous version of this method.
self |
A MMModemVoice. |
|
call |
Path of the MMCall to delete. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
void mm_modem_voice_list_calls (MMModemVoice *self,GCancellable *cancellable,GAsyncReadyCallback callback,gpointer user_data);
Asynchronously lists the MMCall objects in the modem.
When the operation is finished, callback
will be invoked in the thread-default main loop of the thread you are calling this method from.
You can then call mm_modem_voice_list_calls_finish() to get the result of the operation.
See mm_modem_voice_list_calls_sync() for the synchronous, blocking version of this method.
self |
A MMModemVoice. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or |
|
user_data |
User data to pass to |
GList * mm_modem_voice_list_calls_finish (MMModemVoice *self,GAsyncResult *res,GError **error);
Finishes an operation started with mm_modem_voice_list_calls().
self |
A MMModem. |
|
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to |
|
error |
Return location for error or |
A list of MMCall objects, or NULL if either not found or error
is set. The returned value should be freed with g_list_free_full() using g_object_unref() as GDestroyNotify function.
[element-type ModemManager.Call][transfer full]
GList * mm_modem_voice_list_calls_sync (MMModemVoice *self,GCancellable *cancellable,GError **error);
Synchronously lists the MMCall objects in the modem.
The calling thread is blocked until a reply is received. See mm_modem_voice_list_calls()
for the asynchronous version of this method.
self |
A MMModemVoice. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
A list of MMCall objects, or NULL if either not found or error
is set. The returned value should be freed with g_list_free_full() using g_object_unref() as GDestroyNotify function.
[element-type MMCall][transfer full]
struct MMModemVoice;
The MMModemVoice structure contains private data and should only be accessed using the provided API.