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 (20)
- Structs:
 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Virtual Methods¶
Properties¶
Signals¶
Fields¶
Name  | 
Type  | 
Access  | 
Description  | 
|---|---|---|---|
parent  | 
r  | 
Class Details¶
- class ModemManager.ModemMessaging(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
The
ModemManager.ModemMessagingstructure 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.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously creates a new
ModemManager.Smsin 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 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.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.ModemMessaging.create().- Raises:
 - Returns:
 A newly created
ModemManager.Sms, orNoneif 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.CancellableorNone) – AGio.CancellableorNone.
- Raises:
 - Returns:
 A newly created
ModemManager.Sms, orNoneif error is set. The returned value should be freed withGObject.Object.unref().- Return type:
 
Synchronously creates a new
ModemManager.Smsin 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.Smsto delete.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously deletes a given
ModemManager.Smsfrom 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 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.AsyncResultobtained from theGio.AsyncReadyCallbackpassed 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.Smsto delete.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
 - Returns:
 - Return type:
 
Synchronously deletes a given
ModemManager.Smsfrom 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.Objectobject 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.Objectobject.- Return type:
 
Gets the DBus path of the
ModemManager.Objectwhich implements this interface.New in version 1.0.
- get_supported_storages()¶
 - Returns:
 Trueif storages and n_storages are set,Falseotherwise.- storages:
 Return location for the array of
ModemManager.SmsStoragevalues. 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.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone.
Asynchronously lists the
ModemManager.Smsobjects in 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 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.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.ModemMessaging.list().- Raises:
 - Returns:
 A list of
ModemManager.Smsobjects, orNoneif either not found or error is set. The returned value should be freed with g_list_free_full() usingGObject.Object.unref() asGLib.DestroyNotifyfunction.- Return type:
 
Finishes an operation started with
ModemManager.ModemMessaging.list().New in version 1.0.
- list_sync(cancellable)¶
 - Parameters:
 cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.- Raises:
 - Returns:
 A list of
ModemManager.Smsobjects, orNoneif either not found or error is set. The returned value should be freed with g_list_free_full() usingGObject.Object.unref() asGLib.DestroyNotifyfunction.- Return type:
 
Synchronously lists the
ModemManager.Smsobjects 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:
 Trueif storages and n_storages are set,Falseotherwise.- storages:
 Return location for the array of
ModemManager.SmsStoragevalues. 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.
- set_default_storage(storage, cancellable, callback, *user_data)¶
 - Parameters:
 storage (
ModemManager.SmsStorage) – AModemManager.SmsStorageto set default storage.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – AGio.AsyncReadyCallbackto call when the request is satisfied orNone
Asynchronously set default
ModemManager.SmsStoragein 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 callModemManager.ModemMessaging.set_default_storage_finish() to get the result of the operation.See
ModemManager.ModemMessaging.set_default_storage_sync() for the synchronous, blocking version of this method.New in version 1.24.
- set_default_storage_finish(res)¶
 - Parameters:
 res (
Gio.AsyncResult) – TheGio.AsyncResultobtained from theGio.AsyncReadyCallbackpassed toModemManager.ModemMessaging.set_default_storage()- Raises:
 - Returns:
 Trueif set default storage is success,Falseif error is set.- Return type:
 
Finishes an operation started with
ModemManager.ModemMessaging.set_default_storage().New in version 1.24.
- set_default_storage_sync(storage, cancellable)¶
 - Parameters:
 storage (
ModemManager.SmsStorage) – AModemManager.SmsStorageto set default storage.cancellable (
Gio.CancellableorNone) – AGio.CancellableorNone.
- Raises:
 - Returns:
 Trueif set default storage is success,Falseif error is set.- Return type:
 
Synchronously set default
ModemManager.SmsStoragein the modem.The calling thread is blocked until a reply is received. See
ModemManager.ModemMessaging.set_default_storage() for the asynchronous version of this method.New in version 1.24.