src/native/addrbook/msoutlook/com/MsOutlookAddrBookClient.cxx
/**
 * Callback called each time the COM server forward a contact inserted notify
 * event from MAPI.
 *
 * @param id The contact identifier.
 *
 * @return S_OK.
 */
Callback called each time the COM server forward a contact inserted notify
event from MAPI.

@param id The contact identifier.


Callback called each time the COM server forward a contact inserted notify event from MAPI . @param id The contact identifier .
HRESULT STDMETHODCALLTYPE MsOutlookAddrBookClient::inserted(BSTR id, ULONG type)
{
    char * charId = StringUtils::WideCharToMultiByte(id);
    if(type == CALENDAR_FOLDER_TYPE)
	{
		MAPINotification_jniCallCalendarInsertedMethod(charId);
	}
	else
	{
		MAPINotification_jniCallInsertedMethod(charId);
	}
    free(charId);
    return S_OK;
}
HRESULT STDMETHODCALLTYPE MsOutlookAddrBookClient :: inserted ( BSTR id , ULONG type ) { char * charId = StringUtils :: WideCharToMultiByte ( id ) ; if ( type == CALENDAR_FOLDER_TYPE ) { MAPINotification_jniCallCalendarInsertedMethod ( charId ) ; } else { MAPINotification_jniCallInsertedMethod ( charId ) ; } free ( charId ) ; return S_OK ; }
Callback called each time the COM server forward a contact inserted notify
 event from MAPI.
Callback called each time the COM server forward a contact inserted notify event from MAPI .