aboutsummaryrefslogtreecommitdiff
path: root/libmm-glib/mm-call.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmm-glib/mm-call.c')
-rw-r--r--libmm-glib/mm-call.c183
1 files changed, 143 insertions, 40 deletions
diff --git a/libmm-glib/mm-call.c b/libmm-glib/mm-call.c
index 7d6b2b33..46edfd6f 100644
--- a/libmm-glib/mm-call.c
+++ b/libmm-glib/mm-call.c
@@ -52,6 +52,8 @@ struct _MMCallPrivate {
* Gets the DBus path of the #MMCall object.
*
* Returns: (transfer none): The DBus path of the #MMCall object.
+ *
+ * Since: 1.6
*/
const gchar *
mm_call_get_path (MMCall *self)
@@ -68,7 +70,10 @@ mm_call_get_path (MMCall *self)
*
* Gets a copy of the DBus path of the #MMCall object.
*
- * Returns: (transfer full): The DBus path of the #MMCall object. The returned value should be freed with g_free().
+ * Returns: (transfer full): The DBus path of the #MMCall object.
+ * The returned value should be freed with g_free().
+ *
+ * Since: 1.6
*/
gchar *
mm_call_dup_path (MMCall *self)
@@ -99,6 +104,8 @@ mm_call_dup_path (MMCall *self)
* thread.</warning>
*
* Returns: (transfer none): The number, or %NULL if it couldn't be retrieved.
+ *
+ * Since: 1.6
*/
const gchar *
mm_call_get_number (MMCall *self)
@@ -116,7 +123,10 @@ mm_call_get_number (MMCall *self)
* Gets the call number. In outgoing calls contains the dialing number or
* the remote number in incoming calls
*
- * Returns: (transfer full): The number, or %NULL if it couldn't be retrieved. The returned value should be freed with g_free().
+ * Returns: (transfer full): The number, or %NULL if it couldn't be retrieved.
+ * The returned value should be freed with g_free().
+ *
+ * Since: 1.6
*/
gchar *
mm_call_dup_number (MMCall *self)
@@ -136,6 +146,8 @@ mm_call_dup_number (MMCall *self)
* Gets the call direction.
*
* Returns: a #MMCallDirection.
+ *
+ * Since: 1.6
*/
MMCallDirection
mm_call_get_direction (MMCall *self)
@@ -153,7 +165,9 @@ mm_call_get_direction (MMCall *self)
*
* Gets whether the call is part of a multiparty call.
*
- * Returns: %TRUE if the call is part of a multiparty call, %FALSE otherwise..
+ * Returns: %TRUE if the call is part of a multiparty call, %FALSE otherwise.
+ *
+ * Since: 1.12
*/
gboolean
mm_call_get_multiparty (MMCall *self)
@@ -172,6 +186,8 @@ mm_call_get_multiparty (MMCall *self)
* Gets the current state of call.
*
* Returns: a #MMCallState.
+ *
+ * Since: 1.6
*/
MMCallState
mm_call_get_state (MMCall *self)
@@ -190,6 +206,8 @@ mm_call_get_state (MMCall *self)
* Gets the reason of why the call changes its state.
*
* Returns: a #MMCallStateReason.
+ *
+ * Since: 1.6
*/
MMCallStateReason
mm_call_get_state_reason (MMCall *self)
@@ -209,6 +227,8 @@ mm_call_get_state_reason (MMCall *self)
*
* Returns: (transfer none): The audio port, or %NULL if call audio is not
* routed via the host or couldn't be retrieved.
+ *
+ * Since: 1.10
*/
const gchar *
mm_call_get_audio_port (MMCall *self)
@@ -227,6 +247,8 @@ mm_call_get_audio_port (MMCall *self)
*
* Returns: (transfer full): The audio port, or %NULL if call audio is not
* routed via the host or couldn't be retrieved.
+ *
+ * Since: 1.10
*/
gchar *
mm_call_dup_audio_port (MMCall *self)
@@ -313,7 +335,10 @@ ensure_internal_audio_format (MMCall *self,
* mm_call_get_audio_format() again to get a new #MMCallAudioFormat with the
* new values.</warning>
*
- * Returns: (transfer full): A #MMCallAudioFormat that must be freed with g_object_unref() or %NULL if unknown.
+ * Returns: (transfer full): A #MMCallAudioFormat that must be freed with
+ * g_object_unref() or %NULL if unknown.
+ *
+ * Since: 1.10
*/
MMCallAudioFormat *
mm_call_get_audio_format (MMCall *self)
@@ -338,7 +363,10 @@ mm_call_get_audio_format (MMCall *self)
* @self was constructed. Use mm_call_get_audio_format() if on another
* thread.</warning>
*
- * Returns: (transfer none): A #MMCallAudioFormat. Do not free the returned value, it belongs to @self.
+ * Returns: (transfer none): A #MMCallAudioFormat. Do not free the returned
+ * value, it belongs to @self.
+ *
+ * Since: 1.10
*/
MMCallAudioFormat *
mm_call_peek_audio_format (MMCall *self)
@@ -354,12 +382,15 @@ mm_call_peek_audio_format (MMCall *self)
/**
* mm_call_start_finish:
* @self: A #MMCall.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_call_start().
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to
+ * mm_call_start().
* @error: Return location for error or %NULL.
*
* Finishes an operation started with mm_call_start().
*
* Returns: %TRUE if the operation succeeded, %FALSE if @error is set.
+ *
+ * Since: 1.6
*/
gboolean
mm_call_start_finish (MMCall *self,
@@ -375,17 +406,22 @@ mm_call_start_finish (MMCall *self,
* mm_call_start:
* @self: A #MMCall.
* @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or
+ * %NULL.
* @user_data: User data to pass to @callback.
*
* Asynchronously requests to queue the call.
*
* Call objects can only be executed once.
*
- * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
- * You can then call mm_call_start_finish() to get the result of the operation.
+ * When the operation is finished, @callback will be invoked in the
+ * <link linkend="g-main-context-push-thread-default">thread-default main loop</link>
+ * of the thread you are calling this method from. You can then call
+ * mm_call_start_finish() to get the result of the operation.
*
* See mm_call_start_sync() for the synchronous, blocking version of this method.
+ *
+ * Since: 1.6
*/
void
mm_call_start (MMCall *self,
@@ -415,6 +451,8 @@ mm_call_start (MMCall *self,
* See mm_call_start() for the asynchronous version of this method.
*
* Returns: %TRUE if the operation succeeded, %FALSE if @error is set.
+ *
+ * Since: 1.6
*/
gboolean
mm_call_start_sync (MMCall *self,
@@ -433,12 +471,15 @@ mm_call_start_sync (MMCall *self,
/**
* mm_call_accept_finish:
* @self: A #MMCall.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_call_accept().
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to
+ * mm_call_accept().
* @error: Return location for error or %NULL.
*
* Finishes an operation started with mm_call_accept().
*
- * Returns: %TRUE if the operation succeeded, %FALSE if @error is set.
+ * Returns: %TRUE if the operation succeeded, %FALSE if @error is set.
+ *
+ * Since: 1.6
*/
gboolean
mm_call_accept_finish (MMCall *self,
@@ -454,17 +495,22 @@ mm_call_accept_finish (MMCall *self,
* mm_call_accept:
* @self: A #MMCall.
* @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or
+ * %NULL.
* @user_data: User data to pass to @callback.
*
* Asynchronously requests to accept the incoming call.
*
* Call objects can only be executed once.
*
- * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
- * You can then call mm_call_accept_finish() to get the result of the operation.
+ * When the operation is finished, @callback will be invoked in the
+ * <link linkend="g-main-context-push-thread-default">thread-default main loop</link>
+ * of the thread you are calling this method from. You can then call
+ * mm_call_accept_finish() to get the result of the operation.
*
* See mm_call_accept_sync() for the synchronous, blocking version of this method.
+ *
+ * Since: 1.6
*/
void
mm_call_accept (MMCall *self,
@@ -494,6 +540,8 @@ mm_call_accept (MMCall *self,
* See mm_call_accept() for the asynchronous version of this method.
*
* Returns: %TRUE if the operation succeeded, %FALSE if @error is set.
+ *
+ * Since: 1.6
*/
gboolean
mm_call_accept_sync (MMCall *self,
@@ -512,12 +560,15 @@ mm_call_accept_sync (MMCall *self,
/**
* mm_call_deflect_finish:
* @self: A #MMCall.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_call_deflect().
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to
+ * mm_call_deflect().
* @error: Return location for error or %NULL.
*
* Finishes an operation started with mm_call_deflect().
*
- * Returns: %TRUE if the operation succeeded, %FALSE if @error is set.
+ * Returns: %TRUE if the operation succeeded, %FALSE if @error is set.
+ *
+ * Since: 1.12
*/
gboolean
mm_call_deflect_finish (MMCall *self,
@@ -534,17 +585,23 @@ mm_call_deflect_finish (MMCall *self,
* @self: A #MMCall.
* @number: new number where the call will be deflected.
* @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or
+ * %NULL.
* @user_data: User data to pass to @callback.
*
* Asynchronously requests to deflect the incoming call.
*
* This call will be considered terminated once the deflection is performed.
*
- * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
- * You can then call mm_call_deflect_finish() to get the result of the operation.
+ * When the operation is finished, @callback will be invoked in the
+ * <link linkend="g-main-context-push-thread-default">thread-default main loop</link>
+ * of the thread you are calling this method from. You can then call
+ * mm_call_deflect_finish() to get the result of the operation.
+ *
+ * See mm_call_deflect_sync() for the synchronous, blocking version of this
+ * method.
*
- * See mm_call_deflect_sync() for the synchronous, blocking version of this method.
+ * Since: 1.12
*/
void
mm_call_deflect (MMCall *self,
@@ -577,6 +634,8 @@ mm_call_deflect (MMCall *self,
* See mm_call_deflect() for the asynchronous version of this method.
*
* Returns: %TRUE if the operation succeeded, %FALSE if @error is set.
+ *
+ * Since: 1.12
*/
gboolean
mm_call_deflect_sync (MMCall *self,
@@ -597,12 +656,15 @@ mm_call_deflect_sync (MMCall *self,
/**
* mm_call_join_multiparty_finish:
* @self: A #MMCall.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_call_join_multiparty().
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to
+ * mm_call_join_multiparty().
* @error: Return location for error or %NULL.
*
* Finishes an operation started with mm_call_join_multiparty().
*
* Returns: %TRUE if the operation succeeded, %FALSE if @error is set.
+ *
+ * Since: 1.12
*/
gboolean
mm_call_join_multiparty_finish (MMCall *self,
@@ -618,15 +680,21 @@ mm_call_join_multiparty_finish (MMCall *self,
* mm_call_join_multiparty:
* @self: A #MMCall.
* @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or
+ * %NULL.
* @user_data: User data to pass to @callback.
*
* Synchronously requests to join this call into a multiparty call.
*
- * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
- * You can then call mm_call_join_multiparty_finish() to get the result of the operation.
+ * When the operation is finished, @callback will be invoked in the
+ * <link linkend="g-main-context-push-thread-default">thread-default main loop</link>
+ * of the thread you are calling this method from. You can then call
+ * mm_call_join_multiparty_finish() to get the result of the operation.
*
- * See mm_call_join_multiparty_sync() for the synchronous, blocking version of this method.
+ * See mm_call_join_multiparty_sync() for the synchronous, blocking version of
+ * this method.
+ *
+ * Since: 1.12
*/
void
mm_call_join_multiparty (MMCall *self,
@@ -654,6 +722,8 @@ mm_call_join_multiparty (MMCall *self,
* See mm_call_join_multiparty() for the asynchronous version of this method.
*
* Returns: %TRUE if the operation succeeded, %FALSE if @error is set.
+ *
+ * Since: 1.12
*/
gboolean
mm_call_join_multiparty_sync (MMCall *self,
@@ -670,12 +740,15 @@ mm_call_join_multiparty_sync (MMCall *self,
/**
* mm_call_leave_multiparty_finish:
* @self: A #MMCall.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_call_leave_multiparty().
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to
+ * mm_call_leave_multiparty().
* @error: Return location for error or %NULL.
*
* Finishes an operation started with mm_call_leave_multiparty().
*
* Returns: %TRUE if the operation succeeded, %FALSE if @error is set.
+ *
+ * Since: 1.12
*/
gboolean
mm_call_leave_multiparty_finish (MMCall *self,
@@ -691,16 +764,22 @@ mm_call_leave_multiparty_finish (MMCall *self,
* mm_call_leave_multiparty:
* @self: A #MMCall.
* @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or
+ * %NULL.
* @user_data: User data to pass to @callback.
*
* Synchronously requests to make this call private again by leaving the
* multiparty call.
*
- * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
- * You can then call mm_call_leave_multiparty_finish() to get the result of the operation.
+ * When the operation is finished, @callback will be invoked in the
+ * <link linkend="g-main-context-push-thread-default">thread-default main loop</link>
+ * of the thread you are calling this method from. You can then call
+ * mm_call_leave_multiparty_finish() to get the result of the operation.
+ *
+ * See mm_call_leave_multiparty_sync() for the synchronous, blocking version
+ * of this method.
*
- * See mm_call_leave_multiparty_sync() for the synchronous, blocking version of this method.
+ * Since: 1.12
*/
void
mm_call_leave_multiparty (MMCall *self,
@@ -729,6 +808,8 @@ mm_call_leave_multiparty (MMCall *self,
* See mm_call_leave_multiparty() for the asynchronous version of this method.
*
* Returns: %TRUE if the operation succeeded, %FALSE if @error is set.
+ *
+ * Since: 1.12
*/
gboolean
mm_call_leave_multiparty_sync (MMCall *self,
@@ -747,12 +828,15 @@ mm_call_leave_multiparty_sync (MMCall *self,
/**
* mm_call_hangup_finish:
* @self: A #MMCall.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_call_hangup().
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to
+ * mm_call_hangup().
* @error: Return location for error or %NULL.
*
* Finishes an operation started with mm_call_hangup().
*
* Returns: %TRUE if the operation succeeded, %FALSE if @error is set.
+ *
+ * Since: 1.6
*/
gboolean
mm_call_hangup_finish (MMCall *self,
@@ -768,17 +852,23 @@ mm_call_hangup_finish (MMCall *self,
* mm_call_hangup:
* @self: A #MMCall.
* @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or
+ * %NULL.
* @user_data: User data to pass to @callback.
*
* Asynchronously requests to hangup the call.
*
* Call objects can only be executed once.
*
- * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
- * You can then call mm_call_hangup_finish() to get the result of the operation.
+ * When the operation is finished, @callback will be invoked in the
+ * <link linkend="g-main-context-push-thread-default">thread-default main loop</link>
+ * of the thread you are calling this method from. You can then call
+ * mm_call_hangup_finish() to get the result of the operation.
+ *
+ * See mm_call_hangup_sync() for the synchronous, blocking version of this
+ * method.
*
- * See mm_call_hangup_sync() for the synchronous, blocking version of this method.
+ * Since: 1.6
*/
void
mm_call_hangup (MMCall *self,
@@ -808,6 +898,8 @@ mm_call_hangup (MMCall *self,
* See mm_call_hangup() for the asynchronous version of this method.
*
* Returns: %TRUE if the operation succeeded, %FALSE if @error is set.
+ *
+ * Since: 1.6
*/
gboolean
mm_call_hangup_sync (MMCall *self,
@@ -826,12 +918,15 @@ mm_call_hangup_sync (MMCall *self,
/**
* mm_call_send_dtmf_finish:
* @self: A #MMCall.
- * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to mm_call_send_dtmf().
+ * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to
+ * mm_call_send_dtmf().
* @error: Return location for error or %NULL.
*
* Finishes an operation started with mm_call_send_dtmf().
*
* Returns: %TRUE if the operation succeeded, %FALSE if @error is set.
+ *
+ * Since: 1.6
*/
gboolean
mm_call_send_dtmf_finish (MMCall *self,
@@ -848,17 +943,23 @@ mm_call_send_dtmf_finish (MMCall *self,
* @self: A #MMCall.
* @dtmf: the DMTF tone.
* @cancellable: (allow-none): A #GCancellable or %NULL.
- * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL.
+ * @callback: A #GAsyncReadyCallback to call when the request is satisfied or
+ * %NULL.
* @user_data: User data to pass to @callback.
*
* Asynchronously requests to send a DTMF tone the call.
*
* Call objects can only be executed once.
*
- * When the operation is finished, @callback will be invoked in the <link linkend="g-main-context-push-thread-default">thread-default main loop</link> of the thread you are calling this method from.
- * You can then call mm_call_send_dtmf_finish() to get the result of the operation.
+ * When the operation is finished, @callback will be invoked in the
+ * <link linkend="g-main-context-push-thread-default">thread-default main loop</link>
+ * of the thread you are calling this method from. You can then call
+ * mm_call_send_dtmf_finish() to get the result of the operation.
*
- * See mm_call_send_dtmf_sync() for the synchronous, blocking version of this method.
+ * See mm_call_send_dtmf_sync() for the synchronous, blocking version of this
+ * method.
+ *
+ * Since: 1.6
*/
void
mm_call_send_dtmf (MMCall *self,
@@ -891,6 +992,8 @@ mm_call_send_dtmf (MMCall *self,
* See mm_call_send_dtmf() for the asynchronous version of this method.
*
* Returns: %TRUE if the operation succeeded, %FALSE if @error is set.
+ *
+ * Since: 1.6
*/
gboolean
mm_call_send_dtmf_sync (MMCall *self,