ModemManager.SmsProperties¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class ModemManager.SmsProperties(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
ModemManager.SmsProperties
structure contains private data and should only be accessed using the provided API.- classmethod new()¶
- Returns:
a
ModemManager.SmsProperties
. The returned value should be freed withGObject.Object.unref
().- Return type:
Creates a new empty
ModemManager.SmsProperties
.New in version 1.0.
- get_class()¶
- Returns:
the message class, or -1 for invalid/unset class.
- Return type:
Gets the 3GPP message class of the SMS.
New in version 1.0.
- get_data()¶
- Returns:
The message data, or
None
if it doesn’t contain any (e.g. contains text instead).- data_len:
Size of the output data, if any given.
- Return type:
Gets the message data.
New in version 1.0.
- get_data_bytearray()¶
- Returns:
A
GLib.ByteArray
with the message data, orNone
if it doesn’t contain any (e.g. contains text instead). The returned value should be freed withGLib.ByteArray.unref
().- Return type:
Gets the message data.
New in version 1.0.
- get_delivery_report_request()¶
-
Checks whether delivery report is requested for the SMS.
New in version 1.0.
- get_number()¶
- Returns:
The number, or
None
if it couldn’t be retrieved. Do not free the returned value, it is owned by self.- Return type:
Gets the number to which the message is addressed.
New in version 1.0.
- get_service_category()¶
- Returns:
the CDMA service category.
- Return type:
Gets the CDMA message service category of the SMS.
New in version 1.2.
- get_smsc()¶
- Returns:
The number of the SMSC, or
None
if it couldn’t be retrieved. Do not free the returned value, it is owned by self.- Return type:
Gets the SMS service center number.
New in version 1.0.
- get_teleservice_id()¶
- Returns:
the CDMA teleservice ID.
- Return type:
Gets the CDMA teleservice ID of the SMS.
New in version 1.2.
- get_text()¶
- Returns:
The message text, or
None
if it doesn’t contain any (e.g. contains data instead). Do not free the returned value, it is owned by self.- Return type:
Gets the message text, in UTF-8.
New in version 1.0.
- get_validity_relative()¶
- Returns:
the validity time or 0 if unknown.
- Return type:
Gets the relative validity time of the SMS.
New in version 1.0.
- get_validity_type()¶
- Returns:
- Return type:
Gets the relative validity type the SMS.
New in version 1.0.
- peek_data_bytearray()¶
- Returns:
A
GLib.ByteArray
with the message data, orNone
if it doesn’t contain any (e.g. contains text instead). Do not free the returned value, it is owned by self.- Return type:
Gets the message data.
New in version 1.0.
- set_class(message_class)¶
- Parameters:
message_class (
int
) – The message class (0..3), or -1 for invalid/unset class.
Sets the 3GPP message class of the SMS.
New in version 1.0.
- set_data(data, data_length)¶
-
Sets the message data.
New in version 1.0.
- set_data_bytearray(data)¶
- Parameters:
data (
bytes
) – AGLib.ByteArray
with the data to set. This method takes a new reference of data.
Sets the message data.
New in version 1.0.
- set_delivery_report_request(request)¶
-
Sets whether delivery report is requested for the SMS.
New in version 1.0.
- set_number(number)¶
- Parameters:
number (
str
) – The number.
Sets the number to which the message is addressed.
New in version 1.0.
- set_service_category(service_category)¶
- Parameters:
service_category (
ModemManager.SmsCdmaServiceCategory
) – The CDMA service category.
Sets the CDMA service category of the SMS.
New in version 1.2.
- set_smsc(smsc)¶
- Parameters:
smsc (
str
) – The SMSC number.
Sets the SMS service center number.
New in version 1.0.
- set_teleservice_id(teleservice_id)¶
- Parameters:
teleservice_id (
ModemManager.SmsCdmaTeleserviceId
) – The CDMA teleservice ID.
Sets the CDMA teleservice ID of the SMS.
New in version 1.2.
- set_text(text)¶
- Parameters:
text (
str
) – The text to set, in UTF-8.
Sets the message text.
New in version 1.0.
- set_validity_relative(validity)¶
- Parameters:
validity (
int
) – The validity ofModemManager.SmsValidityType.RELATIVE
type.
Sets the relative validity time of the SMS. Validity time is in minutes. If relative validity time is not set, the default is 24 hours.
New in version 1.0.