Top |
The MMCall is an object providing access to the methods, signals and properties of the call interface.
When the call is exposed and available in the bus, it is ensured that at least this interface is also available.
const gchar *
mm_call_get_path (MMCall *self
);
Gets the DBus path of the MMCall object.
Since: 1.6
gchar *
mm_call_dup_path (MMCall *self
);
Gets a copy of the DBus path of the MMCall object.
The DBus path of the MMCall object.
The returned value should be freed with g_free()
.
[transfer full]
Since: 1.6
const gchar *
mm_call_get_number (MMCall *self
);
Gets the call number. In outgoing calls contains the dialing number or the remote number in incoming calls
self
was constructed. Use mm_call_dup_number()
if on another
thread.Since: 1.6
gchar *
mm_call_dup_number (MMCall *self
);
Gets the call number. In outgoing calls contains the dialing number or the remote number in incoming calls
The number, or NULL
if it couldn't be retrieved.
The returned value should be freed with g_free()
.
[transfer full]
Since: 1.6
MMCallDirection
mm_call_get_direction (MMCall *self
);
Gets the call direction.
Since: 1.6
MMCallState
mm_call_get_state (MMCall *self
);
Gets the current state of call.
Since: 1.6
MMCallStateReason
mm_call_get_state_reason (MMCall *self
);
Gets the reason of why the call changes its state.
Since: 1.6
const gchar *
mm_call_get_audio_port (MMCall *self
);
Gets the kernel device used for audio (if any).
The audio port, or NULL
if call audio is not
routed via the host or couldn't be retrieved.
[transfer none]
Since: 1.10
gchar *
mm_call_dup_audio_port (MMCall *self
);
Gets the kernel device used for audio (if any).
The audio port, or NULL
if call audio is not
routed via the host or couldn't be retrieved.
[transfer full]
Since: 1.10
MMCallAudioFormat *
mm_call_get_audio_format (MMCall *self
);
Gets a MMCallAudioFormat object specifying the audio format used by the audio port if call audio is routed via the host.
self
are not updated when the values in the
interface change. Instead, the client is expected to call
mm_call_get_audio_format()
again to get a new MMCallAudioFormat with the
new values.A MMCallAudioFormat that must be freed with
g_object_unref()
or NULL
if unknown.
[transfer full]
Since: 1.10
MMCallAudioFormat *
mm_call_peek_audio_format (MMCall *self
);
Gets a MMCallAudioFormat object specifying the audio format used by the audio port if call audio is routed via the host.
self
was constructed. Use mm_call_get_audio_format()
if on another
thread.Since: 1.10
gboolean
mm_call_get_multiparty (MMCall *self
);
Gets whether the call is part of a multiparty call.
Since: 1.12
void mm_call_start (MMCall *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously requests to queue the call.
Call objects can only be executed once.
When the operation is finished, callback
will be invoked in the
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.
self |
A MMCall. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or
|
|
user_data |
User data to pass to |
Since: 1.6
gboolean mm_call_start_finish (MMCall *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_call_start()
.
self |
A MMCall. |
|
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
Since: 1.6
gboolean mm_call_start_sync (MMCall *self
,GCancellable *cancellable
,GError **error
);
Synchronously requests to queue the call for delivery.
Call objects can only be sent once.
The calling thread is blocked until a reply is received.
See mm_call_start()
for the asynchronous version of this method.
self |
A MMCall. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
Since: 1.6
void mm_call_accept (MMCall *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
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
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.
self |
A MMCall. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or
|
|
user_data |
User data to pass to |
Since: 1.6
gboolean mm_call_accept_finish (MMCall *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_call_accept()
.
self |
A MMCall. |
|
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
Since: 1.6
gboolean mm_call_accept_sync (MMCall *self
,GCancellable *cancellable
,GError **error
);
Synchronously requests to accept the incoming call.
Call objects can only be sent once.
The calling thread is blocked until an incoming call is ready.
See mm_call_accept()
for the asynchronous version of this method.
self |
A MMCall. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
Since: 1.6
void mm_call_hangup (MMCall *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously requests to hangup the call.
Call objects can only be executed once.
When the operation is finished, callback
will be invoked in the
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.
self |
A MMCall. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or
|
|
user_data |
User data to pass to |
Since: 1.6
gboolean mm_call_hangup_finish (MMCall *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_call_hangup()
.
self |
A MMCall. |
|
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
Since: 1.6
gboolean mm_call_hangup_sync (MMCall *self
,GCancellable *cancellable
,GError **error
);
Synchronously requests to hangup the call.
Call objects can only be sent once.
The calling thread is blocked until an incoming call is ready.
See mm_call_hangup()
for the asynchronous version of this method.
self |
A MMCall. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
Since: 1.6
void mm_call_send_dtmf (MMCall *self
,const gchar *dtmf
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
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
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.
self |
A MMCall. |
|
dtmf |
the DMTF tone. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or
|
|
user_data |
User data to pass to |
Since: 1.6
gboolean mm_call_send_dtmf_finish (MMCall *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_call_send_dtmf()
.
self |
A MMCall. |
|
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
Since: 1.6
gboolean mm_call_send_dtmf_sync (MMCall *self
,const gchar *dtmf
,GCancellable *cancellable
,GError **error
);
Synchronously requests to send a DTMF tone the call.
Call objects can only be sent once.
The calling thread is blocked until an incoming call is ready.
See mm_call_send_dtmf()
for the asynchronous version of this method.
self |
A MMCall. |
|
dtmf |
the DMTF tone. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
Since: 1.6
void mm_call_deflect (MMCall *self
,const gchar *number
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
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
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.
self |
A MMCall. |
|
number |
new number where the call will be deflected. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or
|
|
user_data |
User data to pass to |
Since: 1.12
gboolean mm_call_deflect_finish (MMCall *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_call_deflect()
.
self |
A MMCall. |
|
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
Since: 1.12
gboolean mm_call_deflect_sync (MMCall *self
,const gchar *number
,GCancellable *cancellable
,GError **error
);
Synchronously requests to deflect the incoming call.
This call will be considered terminated once the deflection is performed.
The calling thread is blocked until an incoming call is ready.
See mm_call_deflect()
for the asynchronous version of this method.
self |
A MMCall. |
|
number |
new number where the call will be deflected. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
Since: 1.12
void mm_call_join_multiparty (MMCall *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Synchronously requests to join this call into a multiparty call.
When the operation is finished, callback
will be invoked in the
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.
self |
A MMCall. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or
|
|
user_data |
User data to pass to |
Since: 1.12
gboolean mm_call_join_multiparty_finish (MMCall *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_call_join_multiparty()
.
self |
A MMCall. |
|
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
Since: 1.12
gboolean mm_call_join_multiparty_sync (MMCall *self
,GCancellable *cancellable
,GError **error
);
Synchronously requests to join this call into a multiparty call.
The calling thread is blocked until an incoming call is ready.
See mm_call_join_multiparty()
for the asynchronous version of this method.
self |
A MMCall. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
Since: 1.12
void mm_call_leave_multiparty (MMCall *self
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Synchronously requests to make this call private again by leaving the multiparty call.
When the operation is finished, callback
will be invoked in the
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.
self |
A MMCall. |
|
cancellable |
A GCancellable or |
[allow-none] |
callback |
A GAsyncReadyCallback to call when the request is satisfied or
|
|
user_data |
User data to pass to |
Since: 1.12
gboolean mm_call_leave_multiparty_finish (MMCall *self
,GAsyncResult *res
,GError **error
);
Finishes an operation started with mm_call_leave_multiparty()
.
self |
A MMCall. |
|
res |
The GAsyncResult obtained from the GAsyncReadyCallback passed to
|
|
error |
Return location for error or |
Since: 1.12
gboolean mm_call_leave_multiparty_sync (MMCall *self
,GCancellable *cancellable
,GError **error
);
Synchronously requests to make this call private again by leaving the multiparty call.
The calling thread is blocked until an incoming call is ready.
See mm_call_leave_multiparty()
for the asynchronous version of this method.
self |
A MMCall. |
|
cancellable |
A GCancellable or |
[allow-none] |
error |
Return location for error or |
Since: 1.12
struct MMCall;
The MMCall structure contains private data and should only be accessed using the provided API.