#include "MsgStorageTypes.h"
#include "MsgInternalTypes.h"
-#ifndef MSG_CONTACTS_SERVICE_NOT_SUPPORTED
/*==================================================================================================
FUNCTION PROTOTYPES
==================================================================================================*/
void MsgDeletePhoneLog(msg_message_id_t msgId);
bool checkBlockingMode(char *address, bool *pisFavorites);
-#endif /* MSG_CONTACTS_SERVICE_NOT_SUPPORTED */
int MsgContactGetMinMatchDigit();
void MsgConvertNumber(const char* pSrcNum, char* pDestNum, int destSize);
int MsgStoCheckMsgCntLimit(const MSG_MESSAGE_TYPE_S* pMsgType, msg_folder_id_t FolderId);
msg_error_t MsgStoAddAddress(MsgDbHandler *pDbHandle, const MSG_MESSAGE_INFO_S *pMsg, msg_thread_id_t *pConvId);
-
-/* contacts-service is not used for gear */
-#ifndef MSG_CONTACTS_SERVICE_NOT_SUPPORTED
msg_error_t MsgStoGetAddressByMsgId(MsgDbHandler *pDbHandle, msg_message_id_t msgId, int contactNameOrder, int *nAddressCnt, MSG_ADDRESS_INFO_S **pAddress);
msg_error_t MsgStoGetAddressByMsgId(MsgDbHandler *pDbHandle, msg_message_id_t msgId, int contactNameOrder, msg_struct_list_s *pAddress);
msg_error_t MsgStoGetAddressByConvId(MsgDbHandler *pDbHandle, msg_thread_id_t convId, int contactNameOrder, msg_struct_list_s *pAddrlist);
-#else /* MSG_CONTACTS_SERVICE_NOT_SUPPORTED */
-/* contactNameOrder is never used */
-msg_error_t MsgStoGetAddressByMsgId(MsgDbHandler *pDbHandle, msg_message_id_t msgId, int *nAddressCnt, MSG_ADDRESS_INFO_S **pAddress);
-msg_error_t MsgStoGetAddressByMsgId(MsgDbHandler *pDbHandle, msg_message_id_t msgId, msg_struct_list_s *pAddress);
-msg_error_t MsgStoGetAddressByConvId(MsgDbHandler *pDbHandle, msg_thread_id_t convId, msg_struct_list_s *pAddrlist);
-#endif /* MSG_CONTACTS_SERVICE_NOT_SUPPORTED */
-
void MsgStoUpdateAddress(MsgDbHandler *pDbHandle, const MSG_MESSAGE_INFO_S *pMsg, msg_thread_id_t convId);
msg_error_t MsgStoAddConversation(MsgDbHandler *pDbHandle, msg_thread_id_t *pConvId);
msg_error_t MsgStoUpdateConversation(MsgDbHandler *pDbHandle, msg_thread_id_t convId);
/* Get address informations. */
MsgDbHandler *dbHandle = getDbHandle();
- /* contacts-service is not used for gear */
-#ifndef MSG_CONTACTS_SERVICE_NOT_SUPPORTED
MsgStoGetAddressByMsgId(dbHandle, pReqInfo->msgInfo.msgId, 0, &pReqInfo->msgInfo.nAddressCnt, &pReqInfo->msgInfo.addressList);
-#else /* MSG_CONTACTS_SERVICE_NOT_SUPPORTED */
- /* contactNameOrder is never used */
- MsgStoGetAddressByMsgId(dbHandle, pReqInfo->msgInfo.msgId, &pReqInfo->msgInfo.nAddressCnt, &pReqInfo->msgInfo.addressList);
-#endif /* MSG_CONTACTS_SERVICE_NOT_SUPPORTED */
-
MSG_DEBUG("pReqInfo->msgInfo.nAddressCnt [%d]", pReqInfo->msgInfo.nAddressCnt);
/* Get MSISDN */
extern "C"
{
-#ifndef MSG_CONTACTS_SERVICE_NOT_SUPPORTED
#include <contacts.h>
-#endif /* MSG_CONTACTS_SERVICE_NOT_SUPPORTED */
}
/*==================================================================================================
}
-#ifndef MSG_CONTACTS_SERVICE_NOT_SUPPORTED
/*==================================================================================================
FUNCTION IMPLEMENTATION
==================================================================================================*/
return false;
#endif
}
-#endif /* MSG_CONTACTS_SERVICE_NOT_SUPPORTED */
int MsgContactGetMinMatchDigit()
{
return err;
}
- /*contacts-service is not used for gear */
-#ifndef MSG_CONTACTS_SERVICE_NOT_SUPPORTED
int order = MsgGetContactNameOrder();
-#else /* MSG_CONTACTS_SERVICE_NOT_SUPPORTED */
- int order = 0;
-#endif /* MSG_CONTACTS_SERVICE_NOT_SUPPORTED */
msg_struct_s *pAddrInfo = NULL;
MSG_ADDRESS_INFO_S *address = NULL;
msg_struct_list_s addressList = {0, };
- /* contacts-service is not used for gear */
-#ifndef MSG_CONTACTS_SERVICE_NOT_SUPPORTED
int order = MsgGetContactNameOrder();
-#else /* MSG_CONTACTS_SERVICE_NOT_SUPPORTED */
- int order = 0;
-#endif /* MSG_CONTACTS_SERVICE_NOT_SUPPORTED */
msg_struct_s *pAddrInfo = NULL;
MSG_ADDRESS_INFO_S *address = NULL;
msg_error_t err = MSG_SUCCESS;
/* contacts-service is not used for gear */
-#ifndef MSG_CONTACTS_SERVICE_NOT_SUPPORTED
int order = MsgGetContactNameOrder();
-#else /* MSG_CONTACTS_SERVICE_NOT_SUPPORTED */
- int order = 0;
-#endif /* MSG_CONTACTS_SERVICE_NOT_SUPPORTED */
-
err = MsgStoGetAddressByConvId(dbHandle, threadId, order, pAddrList);