ModemManager.ModemCellBroadcast¶
- Subclasses:
None
Methods¶
- Inherited:
ModemManager.GdbusModemCellBroadcastProxy (6), Gio.DBusProxy (25), GObject.Object (37), Gio.AsyncInitable (4), Gio.DBusInterface (3), Gio.Initable (2), ModemManager.GdbusModemCellBroadcast (16)
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
Signals¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class ModemManager.ModemCellBroadcast(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
ModemManager.ModemCellBroadcast
structure contains private data and should only be accessed using the provided API.- delete(cbm, cancellable, callback, *user_data)¶
- Parameters:
cbm (
str
) – Path of theModemManager.Cbm
to delete.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously deletes a given
ModemManager.Cbm
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 callModemManager.ModemCellBroadcast.delete_finish
() to get the result of the operation.See
ModemManager.ModemCellBroadcast.delete_sync
() for the synchronous, blocking version of this method.New in version 1.24.
- delete_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.ModemCellBroadcast.delete
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
ModemManager.ModemCellBroadcast.delete
().New in version 1.24.
- delete_sync(cbm, cancellable)¶
- Parameters:
cbm (
str
) – Path of theModemManager.Cbm
to delete.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
- Return type:
Synchronously deletes a given
ModemManager.Cbm
from the modem.The calling thread is blocked until a reply is received. See
ModemManager.ModemCellBroadcast.delete
() for the asynchronous version of this method.New in version 1.24.
- 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.24.
- get_channels(channels, n_storages)¶
- Parameters:
channels (
ModemManager.CellBroadcastChannels
) –n_storages (
int
) –
- Return type:
- 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.24.
- list(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 lists the
ModemManager.Cbm
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 callModemManager.ModemCellBroadcast.list_finish
() to get the result of the operation.See
ModemManager.ModemCellBroadcast.list_sync
() for the synchronous, blocking version of this method.New in version 1.24.
- list_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.ModemCellBroadcast.list
().- Raises:
- Returns:
A list of
ModemManager.Cbm
objects, orNone
if either not found or error is set. The returned value should be freed with g_list_free_full() usingGObject.Object.unref
() asGLib.DestroyNotify
function.- Return type:
Finishes an operation started with
ModemManager.ModemCellBroadcast.list
().New in version 1.24.
- list_sync(cancellable)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.- Raises:
- Returns:
A list of
ModemManager.Cbm
objects, orNone
if either not found or error is set. The returned value should be freed with g_list_free_full() usingGObject.Object.unref
() asGLib.DestroyNotify
function.- Return type:
Synchronously lists the
ModemManager.Cbm
objects in the modem.The calling thread is blocked until a reply is received. See
ModemManager.ModemCellBroadcast.list
() for the asynchronous version of this method.New in version 1.24.
- peek_channels(channels, n_storages)¶
- Parameters:
channels (
ModemManager.CellBroadcastChannels
) –n_storages (
int
) –
- Return type:
- set_channels(channels, n_channels, cancellable, callback, *user_data)¶
- Parameters:
channels (
ModemManager.CellBroadcastChannels
) – The #MMCellbroadcastChannels to setn_channels (
int
) – The number of elements inchannels
cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
Asynchronously set the #MMCellbroadcastChannel s 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 callModemManager.ModemCellBroadcast.set_channels_finish
() to get the result of the operation.See
ModemManager.ModemCellBroadcast.set_channels_sync
() for the synchronous, blocking version of this method.New in version 1.24.
- set_channels_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.ModemCellBroadcast.set_channels
()- Raises:
- Returns:
True
if set default storage is success,False
if error is set.- Return type:
Finishes an operation started with
ModemManager.ModemCellBroadcast.set_channels
().New in version 1.24.
- set_channels_sync(channels, n_channels, cancellable)¶
- Parameters:
channels (
ModemManager.CellBroadcastChannels
) – The #MMCellbroadcastChannels to setn_channels (
int
) – The number of elements inchannels
cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
True
if the operation was successful,False
if error is set.- Return type:
Asynchronously set the #MMCellbroadcastChannel s in the modem.
The calling thread is blocked until a reply is received. See
ModemManager.ModemCellBroadcast.set_channels
() for the asynchronous version of this method.New in version 1.24.