ModemManager.ModemSimple¶
- Subclasses:
None
Methods¶
- Inherited:
ModemManager.GdbusModemSimpleProxy (6), Gio.DBusProxy (25), GObject.Object (37), Gio.AsyncInitable (4), Gio.DBusInterface (3), Gio.Initable (2), ModemManager.GdbusModemSimple (14)
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Signals¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
||
unused |
r |
Class Details¶
- class ModemManager.ModemSimple(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
ModemManager.ModemSimple
structure contains private data and should only be accessed using the provided API.- connect(properties, cancellable, callback, *user_data)¶
- Parameters:
properties (
ModemManager.SimpleConnectProperties
) – AModemManager.SimpleConnectProperties
bundle.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously requests to connect the modem using the given properties.
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 callModemManager.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.
- connect_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.ModemSimple.connect
().- Raises:
- Returns:
A
ModemManager.Bearer
, orFalse
if error is set. The returned value must be freed withGObject.Object.unref
().- Return type:
Finishes an operation started with
ModemManager.ModemSimple.connect
().New in version 1.0.
- connect_sync(properties, cancellable)¶
- Parameters:
properties (
ModemManager.SimpleConnectProperties
) – AModemManager.SimpleConnectProperties
bundle.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
A
ModemManager.Bearer
, orFalse
if error is set. The returned value must be freed withGObject.Object.unref
().- 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.
- disconnect(bearer, cancellable, callback, *user_data)¶
- Parameters:
bearer (
str
orNone
) – Path of the bearer to disconnect, orNone
to disconnect all connected bearers.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously requests to disconnect 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 callModemManager.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.
- disconnect_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.ModemSimple.disconnect
().- Raises:
- Returns:
True
if the modem is successfully disconnected,False
if error is set.- Return type:
Finishes an operation started with
ModemManager.ModemSimple.disconnect
().New in version 1.0.
- disconnect_sync(bearer, cancellable)¶
- Parameters:
bearer (
str
orNone
) – Path of the bearer to disconnect, orNone
to disconnect all connected bearers.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
True
if the modem is successfully disconnected,False
if 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.
- dup_path()¶
- Returns:
The DBus path of the
ModemManager.Object
. The returned value should be freed withGLib.free
().- Return type:
Gets a copy of the DBus path of the
ModemManager.Object
object which implements this interface.New in version 1.0.
- get_path()¶
- Returns:
The DBus path of the
ModemManager.Object
object.- Return type:
Gets the DBus path of the
ModemManager.Object
which implements this interface.New in version 1.0.
- get_status(cancellable, callback, *user_data)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously requests a compilation of the status of 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 callModemManager.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.
- get_status_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.ModemSimple.connect
().- Raises:
- Returns:
A
ModemManager.SimpleStatus
, orFalse
if error is set. The returned value must be freed withGObject.Object.unref
().- Return type:
Finishes an operation started with
ModemManager.ModemSimple.get_status
().New in version 1.0.
- get_status_sync(cancellable)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.- Raises:
- Returns:
A
ModemManager.SimpleStatus
, orFalse
if error is set. The returned value must be freed withGObject.Object.unref
().- Return type:
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.