gsm: allow subclasses to retrieve current character set
This commit is contained in:
@@ -2835,6 +2835,15 @@ set_charset (MMModem *modem,
|
||||
g_free (command);
|
||||
}
|
||||
|
||||
MMModemCharset
|
||||
mm_generic_gsm_get_charset (MMGenericGsm *self)
|
||||
{
|
||||
g_return_val_if_fail (self != NULL, MM_MODEM_CHARSET_UNKNOWN);
|
||||
g_return_val_if_fail (MM_IS_GENERIC_GSM (self), MM_MODEM_CHARSET_UNKNOWN);
|
||||
|
||||
return MM_GENERIC_GSM_GET_PRIVATE (self)->cur_charset;
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
/* MMModemGsmSms interface */
|
||||
|
||||
|
@@ -22,6 +22,7 @@
|
||||
#include "mm-modem-base.h"
|
||||
#include "mm-at-serial-port.h"
|
||||
#include "mm-callback-info.h"
|
||||
#include "mm-charsets.h"
|
||||
|
||||
#define MM_TYPE_GENERIC_GSM (mm_generic_gsm_get_type ())
|
||||
#define MM_GENERIC_GSM(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_TYPE_GENERIC_GSM, MMGenericGsm))
|
||||
@@ -123,6 +124,8 @@ gint mm_generic_gsm_get_cid (MMGenericGsm *modem);
|
||||
void mm_generic_gsm_set_reg_status (MMGenericGsm *modem,
|
||||
MMModemGsmNetworkRegStatus status);
|
||||
|
||||
MMModemCharset mm_generic_gsm_get_charset (MMGenericGsm *modem);
|
||||
|
||||
/* Called to asynchronously update the current allowed operating mode that the
|
||||
* device is allowed to use when connecting to a network. This isn't the
|
||||
* specific access technology the device is currently using (see
|
||||
|
Reference in New Issue
Block a user