| Top |
The MMSmsProperties is an object handling the properties to be set in newly created SMS objects.
This object is created by the user and passed to ModemManager with either
mm_modem_messaging_create() or mm_modem_messaging_create_sync().
MMSmsProperties *
mm_sms_properties_new (void);
Creates a new empty MMSmsProperties.
a MMSmsProperties. The returned value should be freed with g_object_unref().
[transfer full]
Since: 1.0
const gchar *
mm_sms_properties_get_text (MMSmsProperties *self);
Gets the message text, in UTF-8.
The message text, or NULL if it doesn't contain
any (e.g. contains data instead). Do not free the returned value, it is
owned by self
.
[transfer none]
Since: 1.0
void mm_sms_properties_set_text (MMSmsProperties *self,const gchar *text);
Sets the message text.
Since: 1.0
const guint8 * mm_sms_properties_get_data (MMSmsProperties *self,gsize *data_len);
Gets the message data.
The message data, or NULL if it doesn't contain
any (e.g. contains text instead).
[transfer none]
Since: 1.0
void mm_sms_properties_set_data (MMSmsProperties *self,const guint8 *data,gsize data_length);
Sets the message data.
Since: 1.0
GByteArray *
mm_sms_properties_peek_data_bytearray (MMSmsProperties *self);
Gets the message data.
A GByteArray with the message data, or NULL if it
doesn't contain any (e.g. contains text instead). Do not free the returned
value, it is owned by self
.
[transfer none]
Since: 1.0
GByteArray *
mm_sms_properties_get_data_bytearray (MMSmsProperties *self);
Gets the message data.
A GByteArray with the message data, or NULL if it
doesn't contain any (e.g. contains text instead). The returned value should
be freed with g_byte_array_unref().
[transfer full]
Since: 1.0
void mm_sms_properties_set_data_bytearray (MMSmsProperties *self,GByteArray *data);
Sets the message data.
Since: 1.0
const gchar *
mm_sms_properties_get_number (MMSmsProperties *self);
Gets the number to which the message is addressed.
The number, or NULL if it couldn't be retrieved.
Do not free the returned value, it is owned by self
.
[transfer none]
Since: 1.0
void mm_sms_properties_set_number (MMSmsProperties *self,const gchar *number);
Sets the number to which the message is addressed.
Since: 1.0
const gchar *
mm_sms_properties_get_smsc (MMSmsProperties *self);
Gets the SMS service center number.
The number of the SMSC, or NULL if it couldn't be
retrieved. Do not free the returned value, it is owned by self
.
[transfer none]
Since: 1.0
void mm_sms_properties_set_smsc (MMSmsProperties *self,const gchar *smsc);
Sets the SMS service center number.
Since: 1.0
MMSmsValidityType
mm_sms_properties_get_validity_type (MMSmsProperties *self);
Gets the relative validity type the SMS.
Since: 1.0
guint
mm_sms_properties_get_validity_relative
(MMSmsProperties *self);
Gets the relative validity time of the SMS.
Since: 1.0
void mm_sms_properties_set_validity_relative (MMSmsProperties *self,guint validity);
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.
Since: 1.0
gint
mm_sms_properties_get_class (MMSmsProperties *self);
Gets the 3GPP message class of the SMS.
Since: 1.0
void mm_sms_properties_set_class (MMSmsProperties *self,gint message_class);
Sets the 3GPP message class of the SMS.
Since: 1.0
gboolean
mm_sms_properties_get_delivery_report_request
(MMSmsProperties *self);
Checks whether delivery report is requested for the SMS.
Since: 1.0
void mm_sms_properties_set_delivery_report_request (MMSmsProperties *self,gboolean request);
Sets whether delivery report is requested for the SMS.
Since: 1.0
MMSmsCdmaTeleserviceId
mm_sms_properties_get_teleservice_id (MMSmsProperties *self);
Gets the CDMA teleservice ID of the SMS.
Since: 1.2
void mm_sms_properties_set_teleservice_id (MMSmsProperties *self,MMSmsCdmaTeleserviceId teleservice_id);
Sets the CDMA teleservice ID of the SMS.
Since: 1.2
MMSmsCdmaServiceCategory
mm_sms_properties_get_service_category
(MMSmsProperties *self);
Gets the CDMA message service category of the SMS.
Since: 1.2
void mm_sms_properties_set_service_category (MMSmsProperties *self,MMSmsCdmaServiceCategory service_category);
Sets the CDMA service category of the SMS.
Since: 1.2
struct MMSmsProperties;
The MMSmsProperties structure contains private data and should only be accessed using the provided API.