ModemManager.ModemMessaging¶
- Subclasses:
None
Methods¶
- Inherited:
ModemManager.GdbusModemMessagingProxy (6), Gio.DBusProxy (25), GObject.Object (37), Gio.AsyncInitable (4), Gio.DBusInterface (3), Gio.Initable (2), ModemManager.GdbusModemMessaging (16)
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
Signals¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class ModemManager.ModemMessaging(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
ModemManager.ModemMessaging
structure contains private data and should only be accessed using the provided API.- create(properties, cancellable, callback, *user_data)¶
- Parameters:
properties (
ModemManager.SmsProperties
) – A #:obj:ModemManager.SmsProperties object with the properties to use.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.callback (
Gio.AsyncReadyCallback
orNone
) – AGio.AsyncReadyCallback
to call when the request is satisfied orNone
.
Asynchronously creates a new
ModemManager.Sms
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.ModemMessaging.create_finish
() to get the result of the operation.See
ModemManager.ModemMessaging.create_sync
() for the synchronous, blocking version of this method.New in version 1.0.
- create_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.ModemMessaging.create
().- Raises:
- Returns:
A newly created
ModemManager.Sms
, orNone
if error is set. The returned value should be freed withGObject.Object.unref
().- Return type:
Finishes an operation started with
ModemManager.ModemMessaging.create
().New in version 1.0.
- create_sync(properties, cancellable)¶
- Parameters:
properties (
ModemManager.SmsProperties
) – A #:obj:ModemManager.SmsProperties object with the properties to use.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
A newly created
ModemManager.Sms
, orNone
if error is set. The returned value should be freed withGObject.Object.unref
().- Return type:
Synchronously creates a new
ModemManager.Sms
in the modem.The calling thread is blocked until a reply is received. See
ModemManager.ModemMessaging.create
() for the asynchronous version of this method.New in version 1.0.
- delete(sms, cancellable, callback, *user_data)¶
- Parameters:
sms (
str
) – Path of theModemManager.Sms
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.Sms
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.ModemMessaging.delete_finish
() to get the result of the operation.See
ModemManager.ModemMessaging.delete_sync
() for the synchronous, blocking version of this method.New in version 1.0.
- delete_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.ModemMessaging.delete
().- Raises:
- Returns:
- Return type:
Finishes an operation started with
ModemManager.ModemMessaging.delete
().New in version 1.0.
- delete_sync(sms, cancellable)¶
- Parameters:
sms (
str
) – Path of theModemManager.Sms
to delete.cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.
- Raises:
- Returns:
- Return type:
Synchronously deletes a given
ModemManager.Sms
from the modem.The calling thread is blocked until a reply is received. See
ModemManager.ModemMessaging.delete
() 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_default_storage()¶
- Returns:
the default
ModemManager.SmsStorage
.- Return type:
Gets the default SMS storage used when storing or receiving SMS messages.
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_supported_storages()¶
- Returns:
True
if storages and n_storages are set,False
otherwise.- storages:
Return location for the array of
ModemManager.SmsStorage
values. The returned array should be freed withGLib.free
() when no longer needed.
- Return type:
(
bool
, storages: [ModemManager.SmsStorage
])
Gets the list of SMS storages supported by the
ModemManager.Modem
.New in version 1.0.
- 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.Sms
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.ModemMessaging.list_finish
() to get the result of the operation.See
ModemManager.ModemMessaging.list_sync
() for the synchronous, blocking version of this method.New in version 1.0.
- list_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – TheGio.AsyncResult
obtained from theGio.AsyncReadyCallback
passed toModemManager.ModemMessaging.list
().- Raises:
- Returns:
A list of
ModemManager.Sms
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.ModemMessaging.list
().New in version 1.0.
- list_sync(cancellable)¶
- Parameters:
cancellable (
Gio.Cancellable
orNone
) – AGio.Cancellable
orNone
.- Raises:
- Returns:
A list of
ModemManager.Sms
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.Sms
objects in the modem.The calling thread is blocked until a reply is received. See
ModemManager.ModemMessaging.list
() for the asynchronous version of this method.New in version 1.0.
- peek_supported_storages()¶
- Returns:
True
if storages and n_storages are set,False
otherwise.- storages:
Return location for the array of
ModemManager.SmsStorage
values. Do not free the returned array, it is owned by self.- n_storages:
Return location for the number of values in storages.
- Return type:
(
bool
, storages:ModemManager.SmsStorage
, n_storages:int
)
Gets the list of SMS storages supported by the
ModemManager.Modem
.New in version 1.0.