ModemManager.ModemVoice

g GObject.GInterface GObject.GInterface Gio.AsyncInitable Gio.AsyncInitable GObject.GInterface->Gio.AsyncInitable Gio.DBusInterface Gio.DBusInterface GObject.GInterface->Gio.DBusInterface Gio.Initable Gio.Initable GObject.GInterface->Gio.Initable ModemManager.GdbusModemVoice ModemManager.GdbusModemVoice GObject.GInterface->ModemManager.GdbusModemVoice GObject.Object GObject.Object Gio.DBusProxy Gio.DBusProxy GObject.Object->Gio.DBusProxy Gio.AsyncInitable->Gio.DBusProxy Gio.DBusInterface->Gio.DBusProxy ModemManager.GdbusModemVoiceProxy ModemManager.GdbusModemVoiceProxy Gio.DBusProxy->ModemManager.GdbusModemVoiceProxy Gio.Initable->Gio.DBusProxy ModemManager.GdbusModemVoice->ModemManager.GdbusModemVoiceProxy ModemManager.ModemVoice ModemManager.ModemVoice ModemManager.GdbusModemVoiceProxy->ModemManager.ModemVoice

Subclasses:

None

Methods

Inherited:

ModemManager.GdbusModemVoiceProxy (6), Gio.DBusProxy (25), GObject.Object (37), Gio.AsyncInitable (4), Gio.DBusInterface (3), Gio.Initable (2), ModemManager.GdbusModemVoice (40)

Structs:

GObject.ObjectClass (5)

call_waiting_query (cancellable, callback, *user_data)

call_waiting_query_finish (res, status)

call_waiting_query_sync (cancellable, status)

call_waiting_setup (enable, cancellable, callback, *user_data)

call_waiting_setup_finish (res)

call_waiting_setup_sync (enable, cancellable)

create_call (properties, cancellable, callback, *user_data)

create_call_finish (res)

create_call_sync (properties, cancellable)

delete_call (call, cancellable, callback, *user_data)

delete_call_finish (res)

delete_call_sync (call, cancellable)

dup_path ()

get_emergency_only ()

get_path ()

hangup_all (cancellable, callback, *user_data)

hangup_all_finish (res)

hangup_all_sync (cancellable)

hangup_and_accept (cancellable, callback, *user_data)

hangup_and_accept_finish (res)

hangup_and_accept_sync (cancellable)

hold_and_accept (cancellable, callback, *user_data)

hold_and_accept_finish (res)

hold_and_accept_sync (cancellable)

list_calls (cancellable, callback, *user_data)

list_calls_finish (res)

list_calls_sync (cancellable)

transfer (cancellable, callback, *user_data)

transfer_finish (res)

transfer_sync (cancellable)

Virtual Methods

Inherited:

Gio.DBusProxy (2), GObject.Object (7), Gio.AsyncInitable (2), Gio.DBusInterface (3), Gio.Initable (1), ModemManager.GdbusModemVoice (11)

Properties

Inherited:

Gio.DBusProxy (9), ModemManager.GdbusModemVoice (2)

Signals

Inherited:

Gio.DBusProxy (2), GObject.Object (1), ModemManager.GdbusModemVoice (11)

Fields

Inherited:

Gio.DBusProxy (2), GObject.Object (1), ModemManager.GdbusModemVoice (11)

Name

Type

Access

Description

parent

ModemManager.GdbusModemVoiceProxy

r

Class Details

class ModemManager.ModemVoice(**kwargs)
Bases:

ModemManager.GdbusModemVoiceProxy

Abstract:

No

Structure:

ModemManager.ModemVoiceClass

The ModemManager.ModemVoice structure contains private data and should only be accessed using the provided API.

call_waiting_query(cancellable, callback, *user_data)
Parameters:

Asynchronously queries the status of the call waiting network service.

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 ModemManager.ModemVoice.call_waiting_query_finish() to get the result of the operation.

See ModemManager.ModemVoice.call_waiting_query_sync() for the synchronous, blocking version of this method.

New in version 1.12.

call_waiting_query_finish(res, status)
Parameters:
Raises:

GLib.Error

Returns:

True if status is set, False if error is set.

Return type:

bool

Finishes an operation started with ModemManager.ModemVoice.call_waiting_query().

New in version 1.12.

call_waiting_query_sync(cancellable, status)
Parameters:
Raises:

GLib.Error

Returns:

True if status is set, False if error is set.

Return type:

bool

Synchronously queries the status of the call waiting network service.

The calling thread is blocked until a reply is received. See ModemManager.ModemVoice.call_waiting_query() for the asynchronous version of this method.

New in version 1.12.

call_waiting_setup(enable, cancellable, callback, *user_data)
Parameters:

Asynchronously enables or disables the call waiting network service.

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 ModemManager.ModemVoice.call_waiting_setup_finish() to get the result of the operation.

See ModemManager.ModemVoice.call_waiting_setup_sync() for the synchronous, blocking version of this method.

New in version 1.12.

call_waiting_setup_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.ModemVoice.call_waiting_setup().

Raises:

GLib.Error

Returns:

True if status is set, False if error is set.

Return type:

bool

Finishes an operation started with ModemManager.ModemVoice.call_waiting_setup().

New in version 1.12.

call_waiting_setup_sync(enable, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True if the operation is successful, False if error is set.

Return type:

bool

Synchronously enables or disables the call waiting network service.

The calling thread is blocked until a reply is received. See ModemManager.ModemVoice.call_waiting_setup() for the asynchronous version of this method.

New in version 1.12.

create_call(properties, cancellable, callback, *user_data)
Parameters:

Asynchronously creates a new ModemManager.Call 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 ModemManager.ModemVoice.create_call_finish() to get the result of the operation.

See ModemManager.ModemVoice.create_call_sync() for the synchronous, blocking version of this method.

New in version 1.6.

create_call_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.ModemVoice.create_call().

Raises:

GLib.Error

Returns:

A newly created ModemManager.Call, or None if error is set. The returned value should be freed with GObject.Object.unref().

Return type:

ModemManager.Call

Finishes an operation started with ModemManager.ModemVoice.create_call().

New in version 1.6.

create_call_sync(properties, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

A newly created ModemManager.Call, or None if error is set. The returned value should be freed with GObject.Object.unref().

Return type:

ModemManager.Call

Synchronously creates a new ModemManager.Call in the modem.

The calling thread is blocked until a reply is received. See ModemManager.ModemVoice.create_call() for the asynchronous version of this method.

New in version 1.6.

delete_call(call, cancellable, callback, *user_data)
Parameters:

Asynchronously deletes a given ModemManager.Call 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 ModemManager.ModemVoice.delete_call_finish() to get the result of the operation.

See ModemManager.ModemVoice.delete_call_sync() for the synchronous, blocking version of this method.

New in version 1.6.

delete_call_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.ModemVoice.delete_call().

Raises:

GLib.Error

Returns:

True if the call was deleted, False if error is set.

Return type:

bool

Finishes an operation started with ModemManager.ModemVoice.delete_call().

New in version 1.6.

delete_call_sync(call, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True if the CALL was deleted, False if error is set.

Return type:

bool

Synchronously deletes a given ModemManager.Call from the modem.

The calling thread is blocked until a reply is received. See ModemManager.ModemVoice.delete_call() for the asynchronous version of this method.

New in version 1.6.

dup_path()
Returns:

The DBus path of the ModemManager.Object. The returned value should be freed with GLib.free().

Return type:

str

Gets a copy of the DBus path of the ModemManager.Object object which implements this interface.

New in version 1.6.

get_emergency_only()
Returns:

True if only emergency calls are allowed, False otherwise.

Return type:

bool

Checks whether emergency calls only are allowed.

New in version 1.12.

get_path()
Returns:

The DBus path of the ModemManager.Object object.

Return type:

str

Gets the DBus path of the ModemManager.Object which implements this interface.

New in version 1.6.

hangup_all(cancellable, callback, *user_data)
Parameters:

Asynchronously hangs up all ongoing (active, waiting, held) calls.

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 ModemManager.ModemVoice.hangup_all_finish() to get the result of the operation.

See ModemManager.ModemVoice.hangup_all_sync() for the synchronous, blocking version of this method.

New in version 1.12.

hangup_all_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.ModemVoice.hangup_all().

Raises:

GLib.Error

Returns:

True if the operation was successful, False if error is set.

Return type:

bool

Finishes an operation started with ModemManager.ModemVoice.hangup_all().

New in version 1.12.

hangup_all_sync(cancellable)
Parameters:

cancellable (Gio.Cancellable or None) – A Gio.Cancellable or None.

Raises:

GLib.Error

Returns:

True if the operation was successful, False if error is set.

Return type:

bool

Synchronously hangs up all ongoing (active, waiting, held) calls.

The calling thread is blocked until a reply is received. See ModemManager.ModemVoice.hangup_all() for the asynchronous version of this method.

New in version 1.12.

hangup_and_accept(cancellable, callback, *user_data)
Parameters:

Asynchronously hangs up all active calls and accepts the next waiting or held call.

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 ModemManager.ModemVoice.hangup_and_accept_finish() to get the result of the operation.

See ModemManager.ModemVoice.hangup_and_accept_sync() for the synchronous, blocking version of this method.

New in version 1.12.

hangup_and_accept_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.ModemVoice.hangup_and_accept().

Raises:

GLib.Error

Returns:

True if the operation was successful, False if error is set.

Return type:

bool

Finishes an operation started with ModemManager.ModemVoice.hangup_and_accept().

New in version 1.12.

hangup_and_accept_sync(cancellable)
Parameters:

cancellable (Gio.Cancellable or None) – A Gio.Cancellable or None.

Raises:

GLib.Error

Returns:

True if the operation was successful, False if error is set.

Return type:

bool

Synchronously hangs up all active calls and accepts the next waiting or held call.

The calling thread is blocked until a reply is received. See ModemManager.ModemVoice.hangup_and_accept() for the asynchronous version of this method.

New in version 1.12.

hold_and_accept(cancellable, callback, *user_data)
Parameters:

Asynchronously puts all active calls on hold and accepts the next waiting or held call.

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 ModemManager.ModemVoice.hold_and_accept_finish() to get the result of the operation.

See ModemManager.ModemVoice.hold_and_accept_sync() for the synchronous, blocking version of this method.

New in version 1.12.

hold_and_accept_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.ModemVoice.hold_and_accept().

Raises:

GLib.Error

Returns:

True if the operation was successful, False if error is set.

Return type:

bool

Finishes an operation started with ModemManager.ModemVoice.hold_and_accept().

New in version 1.12.

hold_and_accept_sync(cancellable)
Parameters:

cancellable (Gio.Cancellable or None) – A Gio.Cancellable or None.

Raises:

GLib.Error

Returns:

True if the operation was successful, False if error is set.

Return type:

bool

Synchronously puts all active calls on hold and accepts the next waiting or held call.

The calling thread is blocked until a reply is received. See ModemManager.ModemVoice.hold_and_accept() for the asynchronous version of this method.

New in version 1.12.

list_calls(cancellable, callback, *user_data)
Parameters:

Asynchronously lists the ModemManager.Call 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 ModemManager.ModemVoice.list_calls_finish() to get the result of the operation.

See ModemManager.ModemVoice.list_calls_sync() for the synchronous, blocking version of this method.

New in version 1.6.

list_calls_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.ModemVoice.list_calls().

Raises:

GLib.Error

Returns:

A list of ModemManager.Call objects, or None if either not found or error is set. The returned value should be freed with g_list_free_full() using GObject.Object.unref() as GLib.DestroyNotify function.

Return type:

[ModemManager.Call]

Finishes an operation started with ModemManager.ModemVoice.list_calls().

New in version 1.6.

list_calls_sync(cancellable)
Parameters:

cancellable (Gio.Cancellable or None) – A Gio.Cancellable or None.

Raises:

GLib.Error

Returns:

A list of ModemManager.Call objects, or None if either not found or error is set. The returned value should be freed with g_list_free_full() using GObject.Object.unref() as GLib.DestroyNotify function.

Return type:

[ModemManager.Call]

Synchronously lists the ModemManager.Call objects in the modem.

The calling thread is blocked until a reply is received. See ModemManager.ModemVoice.list_calls() for the asynchronous version of this method.

New in version 1.6.

transfer(cancellable, callback, *user_data)
Parameters:

Asynchronously joins all active and held calls, and disconnects from them.

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 ModemManager.ModemVoice.transfer_finish() to get the result of the operation.

See ModemManager.ModemVoice.transfer_sync() for the synchronous, blocking version of this method.

New in version 1.12.

transfer_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.ModemVoice.transfer().

Raises:

GLib.Error

Returns:

True if the operation was successful, False if error is set.

Return type:

bool

Finishes an operation started with ModemManager.ModemVoice.transfer().

New in version 1.12.

transfer_sync(cancellable)
Parameters:

cancellable (Gio.Cancellable or None) – A Gio.Cancellable or None.

Raises:

GLib.Error

Returns:

True if the operation was successful, False if error is set.

Return type:

bool

Synchronously joins all active and held calls, and disconnects from them.

The calling thread is blocked until a reply is received. See ModemManager.ModemVoice.transfer() for the asynchronous version of this method.

New in version 1.12.