ModemManager.ModemVoice¶
| Subclasses: | None | 
|---|
Methods¶
| 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.ModemVoicestructure contains private data and should only be accessed using the provided API.- 
call_waiting_query(cancellable, callback, *user_data)¶
- Parameters: - cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
- callback (Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
- user_data (objectorNone) – User data to pass to callback.
 - Asynchronously queries the status of the call waiting network service. - When the operation is finished, callback will be invoked in the - thread-default main loopof 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. 
- cancellable (
 - 
call_waiting_query_finish(res, status)¶
- Parameters: - res (Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.ModemVoice.call_waiting_query().
- status (bool) – Output location where to store the status.
 - Raises: - Returns: - Return type: - Finishes an operation started with - ModemManager.ModemVoice.call_waiting_query().- New in version 1.12. 
- res (
 - 
call_waiting_query_sync(cancellable, status)¶
- Parameters: - cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
- status (bool) – Output location where to store the status.
 - Raises: - Returns: - Return type: - 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. 
- cancellable (
 - 
call_waiting_setup(enable, cancellable, callback, *user_data)¶
- Parameters: - enable (bool) – Whether the call waiting service should be enabled.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
- callback (Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
- user_data (objectorNone) – User data to pass to callback.
 - Asynchronously enables or disables the call waiting network service. - When the operation is finished, callback will be invoked in the - thread-default main loopof 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. 
- enable (
 - 
call_waiting_setup_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.ModemVoice.call_waiting_setup().- Raises: - GLib.Error- Returns: - Trueif status is set,- Falseif 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: - enable (bool) – Whether the call waiting service should be enabled.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
 - Raises: - Returns: - Return type: - 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. 
- enable (
 - 
create_call(properties, cancellable, callback, *user_data)¶
- Parameters: - properties (ModemManager.CallProperties) – A #:obj:ModemManager.CallProperties object with the properties to use.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
- callback (Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
- user_data (objectorNone) – User data to pass to callback.
 - Asynchronously creates a new - ModemManager.Callin the modem.- When the operation is finished, callback will be invoked in the - thread-default main loopof 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. 
- properties (
 - 
create_call_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.ModemVoice.create_call().- Raises: - GLib.Error- Returns: - A newly created - ModemManager.Call, or- Noneif 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: - properties (ModemManager.CallProperties) – A #:obj:ModemManager.CallProperties object with the properties to use.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
 - Raises: - Returns: - A newly created - ModemManager.Call, or- Noneif error is set. The returned value should be freed with- GObject.Object.unref().- Return type: - Synchronously creates a new - ModemManager.Callin 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. 
- properties (
 - 
delete_call(call, cancellable, callback, *user_data)¶
- Parameters: - call (str) – Path of theModemManager.Callto delete.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
- callback (Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
- user_data (objectorNone) – User data to pass to callback.
 - Asynchronously deletes a given - ModemManager.Callfrom the modem.- When the operation is finished, callback will be invoked in the - thread-default main loopof 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. 
- call (
 - 
delete_call_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.ModemVoice.delete_call().- Raises: - GLib.Error- Returns: - Trueif the call was deleted,- Falseif 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: - call (str) – Path of theModemManager.Callto delete.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
 - Raises: - Returns: - Return type: - Synchronously deletes a given - ModemManager.Callfrom 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. 
- call (
 - 
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.Objectobject which implements this interface.- New in version 1.6. 
 - 
get_emergency_only()¶
- Returns: - Trueif only emergency calls are allowed,- Falseotherwise.- Return type: - bool- Checks whether emergency calls only are allowed. - New in version 1.12. 
 - 
get_path()¶
- Returns: - The DBus path of the - ModemManager.Objectobject.- Return type: - str- Gets the DBus path of the - ModemManager.Objectwhich implements this interface.- New in version 1.6. 
 - 
hangup_all(cancellable, callback, *user_data)¶
- Parameters: - cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
- callback (Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
- user_data (objectorNone) – User data to pass to callback.
 - Asynchronously hangs up all ongoing (active, waiting, held) calls. - When the operation is finished, callback will be invoked in the - thread-default main loopof 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. 
- cancellable (
 - 
hangup_all_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.ModemVoice.hangup_all().- Raises: - GLib.Error- Returns: - Trueif the operation was successful,- Falseif 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.Cancellableor- None) – A- Gio.Cancellableor- None.- Raises: - GLib.Error- Returns: - Trueif the operation was successful,- Falseif 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: - cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
- callback (Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
- user_data (objectorNone) – User data to pass to callback.
 - 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 loopof 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. 
- cancellable (
 - 
hangup_and_accept_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.ModemVoice.hangup_and_accept().- Raises: - GLib.Error- Returns: - Trueif the operation was successful,- Falseif 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.Cancellableor- None) – A- Gio.Cancellableor- None.- Raises: - GLib.Error- Returns: - Trueif the operation was successful,- Falseif 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: - cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
- callback (Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
- user_data (objectorNone) – User data to pass to callback.
 - 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 loopof 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. 
- cancellable (
 - 
hold_and_accept_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.ModemVoice.hold_and_accept().- Raises: - GLib.Error- Returns: - Trueif the operation was successful,- Falseif 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.Cancellableor- None) – A- Gio.Cancellableor- None.- Raises: - GLib.Error- Returns: - Trueif the operation was successful,- Falseif 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: - cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
- callback (Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
- user_data (objectorNone) – User data to pass to callback.
 - Asynchronously lists the - ModemManager.Callobjects in the modem.- When the operation is finished, callback will be invoked in the - thread-default main loopof 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. 
- cancellable (
 - 
list_calls_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.ModemVoice.list_calls().- Raises: - GLib.Error- Returns: - A list of - ModemManager.Callobjects, or- Noneif either not found or error is set. The returned value should be freed with g_list_free_full() using- GObject.Object.unref() as- GLib.DestroyNotifyfunction.- 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.Cancellableor- None) – A- Gio.Cancellableor- None.- Raises: - GLib.Error- Returns: - A list of - ModemManager.Callobjects, or- Noneif either not found or error is set. The returned value should be freed with g_list_free_full() using- GObject.Object.unref() as- GLib.DestroyNotifyfunction.- Return type: - [ - ModemManager.Call]- Synchronously lists the - ModemManager.Callobjects 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: - cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
- callback (Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
- user_data (objectorNone) – User data to pass to callback.
 - 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 loopof 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. 
- cancellable (
 - 
transfer_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.ModemVoice.transfer().- Raises: - GLib.Error- Returns: - Trueif the operation was successful,- Falseif 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.Cancellableor- None) – A- Gio.Cancellableor- None.- Raises: - GLib.Error- Returns: - Trueif the operation was successful,- Falseif 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. 
 
-