Nokia_PC_Connectivity_API_3.2的使用问题
本人是一名大二学生,现在正在开发一个短信平台,实现如下功能:
参与者发送短信到一个指定电话,指定电话负责接收和处理短信,并以某种形式显示在大屏幕。
目前程序借鉴了诺基亚API提供的例子,管理端功能大致完成,但是遇到一个很要命的问题,在手机连接上电脑,手机成功同步之后,程序无法接收新短信。
研究了一下,貌似与这个函数有关:
CAGetIDList(m_hSMS, pTargetPath->dwFolderId, CA_OPTION_USE_CACHE, &caIDList);
//=========================================================
// CAGetIDList
//
// Description:
// Reads content specific ID list from the device.
//
// In S60 devices, if device is missing support for specific
// content ( SMS , MMS or BOOKMARKS), error code
// ECONA_SYNC_INSTALL_PLUGIN_FIRST will be returned ..
//
// Parameters:
// hCAHandle[in]Handle to opened CA connection
// dwFolderId[in]Amount of UID's returned
// dwOptions[in]Options for ID listing. Following options
//are available :
//CA_OPTION_USE_CACHE option reads item ID list from
//from cache DB. If cache database is empty,
//ID listing is read from device.
//CA_OPTION_USE_ONLY_CACHE option reads item ID list
//only from cache DB, and returns amount of ID's in
//cache
// pIDList[out]Structure containing list of item ID's
//
// Return values:
// CONA_OK
// ECONA_INVALID_HANDLE
// ECONA_INVALID_POINTER
// ECONA_UNKNOWN_ERROR_DEVICE
// ECONA_INVALID_PARAMETER
// ECONA_CONNECTION_BUSY
// ECONA_CONNECTION_LOST
// ECONA_SYNC_INSTALL_PLUGIN_FIRST
// ECONA_UNKNOWN_ERROR
//
PCCS_CAAPI CAGetIDList(CAHANDLE hCAHandle,
DWORD dwFolderId,
DWORD dwOptions,
CA_ID_LIST* pIDList );
//=========================================================