#include "Contact.h"
#include "ContactObjectP2AConverter.h"
#include "ContactUtility.h"
+#include <Logger.h>
#define _CONTACTS_SVC_QUERY_FUNC_PREFIX(view_uri, query, filter) \
do { \
ContactArrayPtr result(NULL);
unsigned int length = 0;
- LogDebug("entered");
+ LoggerD("entered");
if(m_isFilterSet)
{
if(m_isSortModeSet)
AttributeProperties &property = iter->second;
length = m_filteredContactIds->size();
- LogDebug("length : " << length);
+ LoggerD("length : " << length);
if(length != 0)
{
else
{
length = m_filteredContactIds->size();
- LogDebug("length : " << length);
+ LoggerD("length : " << length);
if(length != 0)
{
result = getContacts(m_filteredContactIds);
result = getAllContacts();
}
}
- LogDebug("End");
+ LoggerD("End");
return result;
}
map<int,ContactPtr>::iterator idPair = contactMap.find(id);
if(idPair == contactMap.end())
{
- LogWarning("no contact id : " << id);
+ LoggerW("no contact id : " << id);
continue;
}
contacts->push_back(idPair->second);
ContactArrayPtr contacts(new ContactArray());
contacts_list_h list = NULL;
- LogDebug("start : " << m_isAddressBookIdSet);
+ LoggerD("start : " << m_isAddressBookIdSet);
if(!m_isAddressBookIdSet)
{
errorCode = contacts_list_get_current_record_p(list, &record);
if(errorCode != CONTACTS_ERROR_NONE || record == NULL)
{
- LogWarning("contacts_list_get_current_record_p error : " << errorCode << " (" << __FUNCTION__ << ")");
+ LoggerW("contacts_list_get_current_record_p error : " << errorCode << " (" << __FUNCTION__ << ")");
continue;
}
}
Catch(Exception)
{
- LogWarning("fail to convert contact");
+ LoggerW("fail to convert contact");
continue;
}
if(list != NULL)
contacts_list_destroy(list, true);
- LogDebug("end");
+ LoggerD("end");
return contacts;
}
}
Catch(Exception)
{
- LogWarning(_rethrown_exception.GetMessage());
+ LoggerW(_rethrown_exception.GetMessage());
continue;
}
}
}
Catch(Exception)
{
- LogWarning(_rethrown_exception.GetMessage());
+ LoggerW(_rethrown_exception.GetMessage());
continue;
}
}
errorCode = contacts_db_get_record(_contacts_contact._uri, id, &record);
if(errorCode != CONTACTS_ERROR_NONE)
{
- LogError("No contact (id:" << id << ") : " << errorCode << " (" << __FUNCTION__ << ")");
+ LoggerE("No contact (id:" << id << ") : " << errorCode << " (" << __FUNCTION__ << ")");
return ContactPtr(NULL);
}
errorCode = contacts_record_get_int(record, _contacts_contact.address_book_id, &addressBookId);
if(errorCode != CONTACTS_ERROR_NONE)
{
- LogError("No contact (id:" << id << ") 2 : " << errorCode << " (" << __FUNCTION__ << ")");
+ LoggerE("No contact (id:" << id << ") 2 : " << errorCode << " (" << __FUNCTION__ << ")");
return ContactPtr(NULL);
}
const char* view_uri = attributeProperties.viewUri;
unsigned int property_contact_id = attributeProperties.propertyContactId;
unsigned int property_id = attributeProperties.propertyId;
- LogDebug("entered");
+ LoggerD("entered");
int errorCode = 0;
contacts_query_h query = NULL;
}
_CONTACTS_SVC_QUERY_FUNC_SUFFIX(query, filter, list, property_contact_id, result);
- LogDebug("end");
+ LoggerD("end");
}
void ContactSearchEngine::sortContacts(AttributeProperties& attributeProperties, ContactIdArrayPtr& result,
unsigned int property_contact_id = attributeProperties.propertyContactId;
unsigned int property_id = attributeProperties.propertyId;
- LogDebug("entered");
+ LoggerD("entered");
int errorCode = 0;
contacts_query_h query = NULL;
if(query != NULL)
contacts_query_destroy(query);
- LogDebug("end");
+ LoggerD("end");
}
void ContactSearchEngine::sortContacts(AttributeProperties& attributeProperties, ContactIdArrayPtr& result,