📄 im_custom.c
字号:
#ifdef __IM_APPLICATION__
#include "IM_custom.h"
#include "IM_prot.h"
S32 IM_custom_init()
{
im_custom_struct *custom = &im_global.custom;
#ifdef XHC_RELEASE
custom->log_file_enable = FALSE;
#else
custom->log_file_enable = IM_APP_LOG_FILE_ENABLE;
#endif
custom->debug_enable = IM_APP_DEBUG_ENABLE;
custom->max_chat_history_file_size = IM_APP_MAX_CHAT_HISTORY_FILE_SIZE;
custom->msg_editor_size = IM_APP_MSG_EDITOR_SIZE;
custom->edit_name_password_full_screen = IM_APP_EDIT_NAME_PASSWORD_FULL_SCREEN;
custom->read_new_msg_on_idle = IM_APP_READ_NEW_MSG_ON_IDLE;
custom->status_icon_enable = IM_APP_STATUS_ICON_ENABLE;
custom->disable_background_running = IM_APP_DISABLE_BACKGROUND_RUNNING;
custom->dur_auto_offline_in_sleep_mode = IM_APP_DUR_AUTO_OFFLINE_IN_SLEEP_MODE;
custom->default_enable_audio = IM_APP_DEFAULT_ENABLE_AUDIO;
custom->default_enable_vibrator = IM_APP_DEFAULT_ENABLE_VIBRATOR;
custom->default_enable_theme = IM_APP_DEFAULT_ENABLE_THEME;
custom->show_weather_in_status = IM_APP_SHOW_WEATHER_IN_STATUS;
custom->show_help_in_status = IM_APP_SHOW_HELP_IN_STATUS;
custom->show_buddy_state_in_status = IM_APP_SHOW_BUDDY_STATE_IN_STATUS;
memset((S8*)custom->cust_file_path_root, 0, sizeof(custom->cust_file_path_root));
XHC_ucs2_sprintf((S8*)custom->cust_file_path_root, "%c:\\IM\\", MMI_PUBLIC_DRV);
//编辑信息窗口默认输入法
#if (defined(XHC_MTK_VERNO_08A))
custom->full_input_type = IMM_INPUT_TYPE_SENTENCE; //08A或08A以后的版本
#else
//custom->full_input_type = INPUT_TYPE_SM_PINYIN;//08A以前的版本
custom->full_input_type = INPUT_TYPE_ALPHANUMERIC_SENTENCECASE;//08A以前的版本,当没有INPUT_TYPE_SM_PINYIN时用此输入法,或自行定义别的输入法
#endif
#ifdef __QQ_SUPPORT__
IM_qq_custom_init();
#endif //__QQ_SUPPORT__
return XHC_OK;
}
void IM_reg_all_user_type()
{
IM_trace("IM_reg_all_user_type()");
#ifdef __QQ_SUPPORT__
IM_reg_qq_user_type();
#endif //__QQ_SUPPORT__
}
S32 IM_entry_weather(void* para)
{
#ifdef __WEATHER_SUPPORT__
extern S8* weather_entry_from_other_app();
weather_entry_from_other_app();
#endif
return XHC_OK;
}
S32 IM_show_weather(void* app)
{
S8* weather_str = NULL;
#ifdef __WEATHER_SUPPORT__
extern S8* weather_get_simple_info(BOOL);
weather_str = weather_get_simple_info(TRUE);
if (weather_str)
{
IM_statusbar_add_weather(app, (U16*)weather_str, IM_entry_weather);
}
#endif
return XHC_OK;
}
void IM_update_weather(void)
{
#ifdef __WEATHER_SUPPORT__
extern void weather_download(BOOL);
weather_download(TRUE);
#endif
}
void IM_create_all_app()
{
IM_trace("IM_create_all_app()");
#ifdef __QQ_SUPPORT__
IM_qq_create_app(&im_global.app_list[IM_APP_QQ]);
#endif //__QQ_SUPPORT__
}
#endif //__IM_APPLICATION__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -