ModemManager.ModemSimple

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.GdbusModemSimple ModemManager.GdbusModemSimple GObject.GInterface->ModemManager.GdbusModemSimple GObject.Object GObject.Object Gio.DBusProxy Gio.DBusProxy GObject.Object->Gio.DBusProxy Gio.AsyncInitable->Gio.DBusProxy Gio.DBusInterface->Gio.DBusProxy ModemManager.GdbusModemSimpleProxy ModemManager.GdbusModemSimpleProxy Gio.DBusProxy->ModemManager.GdbusModemSimpleProxy Gio.Initable->Gio.DBusProxy ModemManager.GdbusModemSimple->ModemManager.GdbusModemSimpleProxy ModemManager.ModemSimple ModemManager.ModemSimple ModemManager.GdbusModemSimpleProxy->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:

GObject.ObjectClass (5)

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.ModemSimple structure contains private data and should only be accessed using the provided API.

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

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 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.

connect_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.ModemSimple.connect().

Raises:

GLib.Error

Returns:

A ModemManager.Bearer, or False if error is set. The returned value must be freed with GObject.Object.unref().

Return type:

ModemManager.Bearer

Finishes an operation started with ModemManager.ModemSimple.connect().

New in version 1.0.

connect_sync(properties, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

A ModemManager.Bearer, or False if error is set. The returned value must be freed with GObject.Object.unref().

Return type:

ModemManager.Bearer

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:

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 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.

disconnect_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.ModemSimple.disconnect().

Raises:

GLib.Error

Returns:

True if the modem is successfully disconnected, False if error is set.

Return type:

bool

Finishes an operation started with ModemManager.ModemSimple.disconnect().

New in version 1.0.

disconnect_sync(bearer, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

True if the modem is successfully disconnected, False if error is set.

Return type:

bool

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 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.0.

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.0.

get_status(cancellable, callback, *user_data)
Parameters:

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 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.

get_status_finish(res)
Parameters:

res (Gio.AsyncResult) – The Gio.AsyncResult obtained from the Gio.AsyncReadyCallback passed to ModemManager.ModemSimple.connect().

Raises:

GLib.Error

Returns:

A ModemManager.SimpleStatus, or False if error is set. The returned value must be freed with GObject.Object.unref().

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.Cancellable or None) – A Gio.Cancellable or None.

Raises:

GLib.Error

Returns:

A ModemManager.SimpleStatus, or False if error is set. The returned value must be freed with GObject.Object.unref().

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.