ModemManager.ModemSimple¶
| Subclasses: | None | 
|---|
Methods¶
| connect(properties, cancellable, callback, *user_data) | |
| connect_finish(res) | |
| connect_sync(properties, cancellable) | |
| disconnect(bearer, cancellable, callback, *user_data) | |
| disconnect_finish(res) | |
| disconnect_sync(bearer, cancellable) | |
| dup_path() | |
| get_path() | |
| get_status(cancellable, callback, *user_data) | |
| get_status_finish(res) | |
| get_status_sync(cancellable) | 
Virtual Methods¶
| Inherited: | Gio.DBusProxy (2), GObject.Object (7), Gio.AsyncInitable (2), Gio.DBusInterface (3), Gio.Initable (1), ModemManager.GdbusModemSimple (3) | 
|---|
Properties¶
| Inherited: | Gio.DBusProxy (9) | 
|---|
Signals¶
| Inherited: | Gio.DBusProxy (2), GObject.Object (1), ModemManager.GdbusModemSimple (3) | 
|---|
Fields¶
| Inherited: | Gio.DBusProxy (2), GObject.Object (1), ModemManager.GdbusModemSimple (3) | 
|---|
| Name | Type | Access | Description | 
|---|---|---|---|
| parent | ModemManager.GdbusModemSimpleProxy | r | |
| unused | object | r | 
Class Details¶
- 
class ModemManager.ModemSimple(**kwargs)¶
- Bases: - ModemManager.GdbusModemSimpleProxy- Abstract: - No - Structure: - ModemManager.ModemSimpleClass- The - ModemManager.ModemSimplestructure contains private data and should only be accessed using the provided API.- 
connect(properties, cancellable, callback, *user_data)¶
- Parameters: - properties (ModemManager.SimpleConnectProperties) – AModemManager.SimpleConnectPropertiesbundle.
- 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 requests to connect the modem using the given properties. - 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.ModemSimple.connect_finish() to get the result of the operation.- See - ModemManager.ModemSimple.connect_sync() for the synchronous, blocking version of this method.- New in version 1.0. 
- properties (
 - 
connect_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.ModemSimple.connect().- Raises: - GLib.Error- Returns: - A - ModemManager.Bearer, or- Falseif error is set. The returned value must be freed with- GObject.Object.ref().- Return type: - ModemManager.Bearer- Finishes an operation started with - ModemManager.ModemSimple.connect().- New in version 1.0. 
 - 
connect_sync(properties, cancellable)¶
- Parameters: - properties (ModemManager.SimpleConnectProperties) – AModemManager.SimpleConnectPropertiesbundle.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
 - Raises: - Returns: - A - ModemManager.Bearer, or- Falseif error is set. The returned value must be freed with- GObject.Object.ref().- Return type: - Synchronously requests to connect the modem using the given properties. - The calling thread is blocked until a reply is received. See - ModemManager.ModemSimple.connect() for the asynchronous version of this method.- New in version 1.0. 
- properties (
 - 
disconnect(bearer, cancellable, callback, *user_data)¶
- Parameters: - bearer (strorNone) – Path of the bearer to disconnect, orNoneto disconnect all connected bearers.
- 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 requests to disconnect 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.ModemSimple.disconnect_finish() to get the result of the operation.- See - ModemManager.ModemSimple.disconnect_sync() for the synchronous, blocking version of this method.- New in version 1.0. 
- bearer (
 - 
disconnect_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.ModemSimple.disconnect().- Raises: - GLib.Error- Returns: - Trueif the modem is successfully disconnected,- Falseif error is set.- Return type: - bool- Finishes an operation started with - ModemManager.ModemSimple.disconnect().- New in version 1.0. 
 - 
disconnect_sync(bearer, cancellable)¶
- Parameters: - bearer (strorNone) – Path of the bearer to disconnect, orNoneto disconnect all connected bearers.
- cancellable (Gio.CancellableorNone) – AGio.CancellableorNone.
 - Raises: - Returns: - Trueif the modem is successfully disconnected,- Falseif error is set.- Return type: - Synchronously requests to disconnect the modem. - The calling thread is blocked until a reply is received. See - ModemManager.ModemSimple.disconnect() for the asynchronous version of this method.- New in version 1.0. 
- bearer (
 - 
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.0. 
 - 
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.0. 
 - 
get_status(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 requests a compilation of the status of 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.ModemSimple.get_status_finish() to get the result of the operation.- See - ModemManager.ModemSimple.get_status_sync() for the synchronous, blocking version of this method.- New in version 1.0. 
- cancellable (
 - 
get_status_finish(res)¶
- Parameters: - res ( - Gio.AsyncResult) – The- Gio.AsyncResultobtained from the- Gio.AsyncReadyCallbackpassed to- ModemManager.ModemSimple.connect().- Raises: - GLib.Error- Returns: - A - ModemManager.SimpleStatus, or- Falseif error is set. The returned value must be freed with- GObject.Object.ref().- Return type: - ModemManager.SimpleStatus- Finishes an operation started with - ModemManager.ModemSimple.get_status().- New in version 1.0. 
 - 
get_status_sync(cancellable)¶
- Parameters: - cancellable ( - Gio.Cancellableor- None) – A- Gio.Cancellableor- None.- Raises: - GLib.Error- Returns: - A - ModemManager.SimpleStatus, or- Falseif error is set. The returned value must be freed with- GObject.Object.ref().- Return type: - ModemManager.SimpleStatus- Synchronously requests a compilation of the status of the modem. - The calling thread is blocked until a reply is received. See - ModemManager.ModemSimple.get_status() for the asynchronous version of this method.- New in version 1.0. 
 
-