判断当前手机存储电话薄是否已达最大容量
if (g_phb_cntx.phone_used == g_phb_cntx.phone_total)
存储方式
typedef enum
{
MMI_STORAGE_NONE, /* none */
MMI_SIM, /* storage SIM */
MMI_NVRAM, /* storage phone */
#ifdef __MMI_DUAL_SIM_MASTER__
/* under construction !*/
#endif
MMI_STORAGE_BOTH
} MMI_PHB_STORAGE_LOCATION; /* storage all */
保存至通讯录的相关函数
/保存至通讯录
void mmi_phb_save_contact_from_others(U8 storage, MMI_PHB_FIELDS_STRUCT* phb_data)
mmi_phb_save_entry_from_others(
(PS8) pbName,
(PS8) pbNumber,
&opt_fields,
bday,
&info_fields,
(PS8) pbNick,
mmi_bcr_add_new_entry_callback);
void mmi_phb_op_update_optional_field(U16 store_index, U8 storage, U8 type)
void mmi_phb_info_update_field(U16 store_index)
void mmi_dmui_entry_download_progress(void)
发送彩信入口
void mmi_uc_entry_sending_mms(void)
获取收件箱等内总邮件数
U16 mmi_frm_sms_get_sms_list_size(U16 type)
mmi_frm_sms_archive_list
编辑时间界面相关语句
SetInlineItemTime(
&(wgui_inline_items[inline_item_index]),
(U8*) g_alm_cntx.HourBuf,
(U8*) g_alm_cntx.MinBuf,
NULL,
AlmTimeEditorCallBack);
ReadMultiRecord的用法
ReadMultiRecord(
NVRAM_EF_PHB_FIELDS_LID,
(U16) (processed_index + 1),
p_data,
(U16) (OPTIONAL_FIELDS_RECORD_SIZE * read_rec_amount),
read_rec_amount,
&pError);
WriteRecord的用法
WriteRecord(
NVRAM_EF_PHB_INFO_LID,
(U16) (store_index + 1),
(void*)&PhoneBookInfoFields,
MMI_PHB_INFO_RECORD_SIZE,
&pError);
查看电话薄中某个联系人
void mmi_phb_pre_entry_caller_group_members_list_op_view(void)
{
/*----------------------------------------------------------------*/
/* Local Variables */
/*----------------------------------------------------------------*/
/*----------------------------------------------------------------*/
/* Code Body */
/*----------------------------------------------------------------*/
g_phb_cntx.active_index = mmi_phb_list_get_inner_index(g_phb_cntx.highlight_entry);
mmi_phb_entry_op_view_entry();
DeleteScreenIfPresent(SCR_ID_PHB_CALLER_GROUP_MEMBERS_LIST_OP);
}
void mmi_phb_entry_op_view_entry(void)
update_field, 09b版本中会用到?
void mmi_phb_info_update_field(U16 store_index)
所有按键响应函数(不包括触屏?)
SetGroupKeyHandler(
GoBackHistory,
(PU16)PresentAllKeys,
(U8)TOTAL_KEYS,
KEY_EVENT_UP);