libmm-glib: added methods to retrieve new SMS properties
This commit is contained in:
@@ -207,6 +207,42 @@ mm_sms_dup_timestamp (MMSms *self)
|
||||
mm_gdbus_sms_dup_timestamp (self));
|
||||
}
|
||||
|
||||
/**
|
||||
* mm_sms_get_discharge_timestamp:
|
||||
* @self: A #MMSms.
|
||||
*
|
||||
* TODO
|
||||
*
|
||||
* <warning>It is only safe to use this function on the thread where @self was constructed. Use mm_sms_dup_timestamp() if on another thread.</warning>
|
||||
*
|
||||
* Returns: (transfer none): The name of the timestamp, or %NULL if it couldn't be retrieved.
|
||||
*/
|
||||
const gchar *
|
||||
mm_sms_get_discharge_timestamp (MMSms *self)
|
||||
{
|
||||
g_return_val_if_fail (MM_GDBUS_IS_SMS (self), NULL);
|
||||
|
||||
RETURN_NON_EMPTY_CONSTANT_STRING (
|
||||
mm_gdbus_sms_get_discharge_timestamp (self));
|
||||
}
|
||||
|
||||
/**
|
||||
* mm_sms_dup_discharge_timestamp:
|
||||
* @self: A #MMSms.
|
||||
*
|
||||
* TODO
|
||||
*
|
||||
* Returns: (transfer full): The name of the timestamp, or %NULL if it couldn't be retrieved. The returned value should be freed with g_free().
|
||||
*/
|
||||
gchar *
|
||||
mm_sms_dup_discharge_timestamp (MMSms *self)
|
||||
{
|
||||
g_return_val_if_fail (MM_GDBUS_IS_SMS (self), NULL);
|
||||
|
||||
RETURN_NON_EMPTY_STRING (
|
||||
mm_gdbus_sms_dup_discharge_timestamp (self));
|
||||
}
|
||||
|
||||
/**
|
||||
* mm_sms_get_validity:
|
||||
* @self: A #MMSms.
|
||||
@@ -239,6 +275,22 @@ mm_sms_get_class (MMSms *self)
|
||||
return mm_gdbus_sms_get_class (self);
|
||||
}
|
||||
|
||||
/**
|
||||
* mm_sms_get_message_reference:
|
||||
* @self: A #MMSms.
|
||||
*
|
||||
* TODO
|
||||
*
|
||||
* Returns: TODO
|
||||
*/
|
||||
guint
|
||||
mm_sms_get_message_reference (MMSms *self)
|
||||
{
|
||||
g_return_val_if_fail (MM_GDBUS_IS_SMS (self), 0);
|
||||
|
||||
return mm_gdbus_sms_get_message_reference (self);
|
||||
}
|
||||
|
||||
gboolean
|
||||
mm_sms_get_delivery_report_request (MMSms *self)
|
||||
{
|
||||
@@ -247,6 +299,22 @@ mm_sms_get_delivery_report_request (MMSms *self)
|
||||
return mm_gdbus_sms_get_delivery_report_request (self);
|
||||
}
|
||||
|
||||
/**
|
||||
* mm_sms_get_delivery_state:
|
||||
* @self: A #MMSms.
|
||||
*
|
||||
* TODO
|
||||
*
|
||||
* Returns: TODO
|
||||
*/
|
||||
guint
|
||||
mm_sms_get_delivery_state (MMSms *self)
|
||||
{
|
||||
g_return_val_if_fail (MM_GDBUS_IS_SMS (self), MM_SMS_DELIVERY_STATE_UNKNOWN);
|
||||
|
||||
return mm_gdbus_sms_get_delivery_state (self);
|
||||
}
|
||||
|
||||
/**
|
||||
* mm_sms_get_state:
|
||||
* @self: A #MMSms.
|
||||
@@ -279,6 +347,22 @@ mm_sms_get_storage (MMSms *self)
|
||||
return mm_gdbus_sms_get_storage (self);
|
||||
}
|
||||
|
||||
/**
|
||||
* mm_sms_get_pdu_type:
|
||||
* @self: A #MMSms.
|
||||
*
|
||||
* TODO
|
||||
*
|
||||
* Returns: TODO
|
||||
*/
|
||||
MMSmsPduType
|
||||
mm_sms_get_pdu_type (MMSms *self)
|
||||
{
|
||||
g_return_val_if_fail (MM_GDBUS_IS_SMS (self), MM_SMS_PDU_TYPE_UNKNOWN);
|
||||
|
||||
return (MMSmsPduType)mm_gdbus_sms_get_pdu_type (self);
|
||||
}
|
||||
|
||||
/**
|
||||
* mm_sms_send:
|
||||
* @self: A #MMSms.
|
||||
|
@@ -81,11 +81,16 @@ const gchar *mm_sms_get_smsc (MMSms *self);
|
||||
gchar *mm_sms_dup_smsc (MMSms *self);
|
||||
const gchar *mm_sms_get_timestamp (MMSms *self);
|
||||
gchar *mm_sms_dup_timestamp (MMSms *self);
|
||||
const gchar *mm_sms_get_discharge_timestamp (MMSms *self);
|
||||
gchar *mm_sms_dup_discharge_timestamp (MMSms *self);
|
||||
guint mm_sms_get_validity (MMSms *self);
|
||||
guint mm_sms_get_class (MMSms *self);
|
||||
guint mm_sms_get_message_reference (MMSms *self);
|
||||
gboolean mm_sms_get_delivery_report_request (MMSms *self);
|
||||
guint mm_sms_get_delivery_state (MMSms *self);
|
||||
MMSmsState mm_sms_get_state (MMSms *self);
|
||||
MMSmsStorage mm_sms_get_storage (MMSms *self);
|
||||
MMSmsPduType mm_sms_get_pdu_type (MMSms *self);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
Reference in New Issue
Block a user