![]() |
![]() |
![]() |
libmm-glib Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces |
struct MMModemVoice; const gchar * mm_modem_voice_get_path (MMModemVoice *self
); gchar * mm_modem_voice_dup_path (MMModemVoice *self
); void mm_modem_voice_create_call (MMModemVoice *self
,MMCallProperties *properties
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); MMCall * mm_modem_voice_create_call_finish (MMModemVoice *self
,GAsyncResult *res
,GError **error
); MMCall * mm_modem_voice_create_call_sync (MMModemVoice *self
,MMCallProperties *properties
,GCancellable *cancellable
,GError **error
); void mm_modem_voice_delete_call (MMModemVoice *self
,const gchar *call
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); gboolean mm_modem_voice_delete_call_finish (MMModemVoice *self
,GAsyncResult *res
,GError **error
); gboolean mm_modem_voice_delete_call_sync (MMModemVoice *self
,const gchar *call
,GCancellable *cancellable
,GError **error
); void mm_modem_voice_list_calls (MMModemVoice *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
); GList * mm_modem_voice_list_calls_finish (MMModemVoice *self
,GAsyncResult *res
,GError **error
); GList * mm_modem_voice_list_calls_sync (MMModemVoice *self
,GCancellable *cancellable
,GError **error
);
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.
struct MMModemVoice;
The MMModemVoice structure contains private data and should only be accessed using the provided API.
const gchar * mm_modem_voice_get_path (MMModemVoice *self
);
Gets the DBus path of the MMObject which implements this interface.
|
A MMModemVoice. |
Returns : |
The DBus path of the MMObject object. [transfer none] |
gchar * mm_modem_voice_dup_path (MMModemVoice *self
);
Gets a copy of the DBus path of the MMObject object which implements this interface.
|
A MMModemVoice. |
Returns : |
The DBus path of the MMObject. The returned value should be freed with g_free() . [transfer full]
|
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.
|
A MMModemVoice. |
|
A #MMCallProperties object with the properties to use. |
|
A GCancellable or NULL . [allow-none]
|
|
A GAsyncReadyCallback to call when the request is satisfied or NULL . |
|
User data to pass to callback . |
MMCall * mm_modem_voice_create_call_finish (MMModemVoice *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_modem_voice_create_call()
.
|
A MMModemVoice. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_modem_voice_create_call() . |
|
Return location for error or NULL . |
Returns : |
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.
|
A MMModemVoice. |
|
A #MMCallProperties object with the properties to use. |
|
A GCancellable or NULL . [allow-none]
|
|
Return location for error or NULL . |
Returns : |
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.
|
A MMModemVoice. |
|
Path of the MMCall to delete. |
|
A GCancellable or NULL . [allow-none]
|
|
A GAsyncReadyCallback to call when the request is satisfied or NULL . |
|
User data to pass to callback . |
gboolean mm_modem_voice_delete_call_finish (MMModemVoice *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_modem_voice_delete_call()
.
|
A MMModemVoice. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_modem_voice_delete_call() . |
|
Return location for error or NULL . |
Returns : |
TRUE if the call was deleted, FALSE if error is set. |
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.
|
A MMModemVoice. |
|
Path of the MMCall to delete. |
|
A GCancellable or NULL . [allow-none]
|
|
Return location for error or NULL . |
Returns : |
TRUE if the CALL was deleted, FALSE if error is set. |
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.
|
A MMModemVoice. |
|
A GCancellable or NULL . [allow-none]
|
|
A GAsyncReadyCallback to call when the request is satisfied or NULL . |
|
User data to pass to callback . |
GList * mm_modem_voice_list_calls_finish (MMModemVoice *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_modem_voice_list_calls()
.
|
A MMModem. |
|
The GAsyncResult obtained from the GAsyncReadyCallback passed to mm_modem_voice_list_calls() . |
|
Return location for error or NULL . |
Returns : |
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.
|
A MMModemVoice. |
|
A GCancellable or NULL . [allow-none]
|
|
Return location for error or NULL . |
Returns : |
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]
|