⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 im_custom.c

📁 MTK平台QQ移植
💻 C
字号:
#ifdef __IM_APPLICATION__
#include "IM_prot.h"
#include "IM_custom.h"

S32 IM_custom_init()
{
    im_custom_struct *custom = &im_global.custom;
#ifdef XHC_RELEASE
    custom->debug_enable = FALSE;
    custom->log_file_enable = FALSE;
#else
    custom->debug_enable = IM_APP_DEBUG_ENABLE;
    custom->log_file_enable = IM_APP_LOG_FILE_ENABLE;
#endif
    custom->max_chat_history_file_size = IM_APP_MAX_CHAT_HISTORY_FILE_SIZE;
    custom->msg_editor_size = IM_APP_MSG_EDITOR_SIZE;
    custom->full_input_type = IM_APP_FULL_INPUT_TYPE;

    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;

    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);

    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__
}


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 + -