// limitations under the License.
//
-
-#include <dpl/log/log.h>
#include <iomanip>
-
#include "CallHistoryDefine.h"
#include "CallHistoryFilter.h"
+#include <Logger.h>
using namespace std;
using namespace DeviceAPI::Tizen;
void CallHistoryFilter::visitPreComposite(FilterType& type, int depth)
{
- LogDebug(" type [" << type << "] depth[" << depth << "]");
+ LoggerD(" type [" << type << "] depth[" << depth << "]");
contacts_filter_h filter = NULL;
contacts_filter_create(_contacts_phone_log._uri, &filter);
if (filter != NULL) {
m_filterStack.push(filter);
}
- LogDebug("filter stack size [" << m_filterStack.size() << "]");
+ LoggerD("filter stack size [" << m_filterStack.size() << "]");
}
void CallHistoryFilter::visitInComposite(FilterType& type, int depth)
{
- LogDebug("type [" << type << "] depth[" << depth << "]");
+ LoggerD("type [" << type << "] depth[" << depth << "]");
contacts_filter_h filter = m_filterStack.top();
if(type == DeviceAPI::Tizen::UNION_FILTER)
contacts_filter_add_operator(filter, CONTACTS_FILTER_OPERATOR_OR);
else if(type == DeviceAPI::Tizen::INTERSECTION_FILTER)
contacts_filter_add_operator(filter, CONTACTS_FILTER_OPERATOR_AND);
- LogDebug("filter stack size [" << m_filterStack.size() << "]");
+ LoggerD("filter stack size [" << m_filterStack.size() << "]");
}
void CallHistoryFilter::visitPostComposite(FilterType& type, int depth)
{
- LogDebug(" type [" << type << "] depth[" << depth << "]");
+ LoggerD(" type [" << type << "] depth[" << depth << "]");
contacts_filter_h filter = m_filterStack.top();
if (m_filterStack.size() > 1) {
m_filterStack.pop();
contacts_filter_add_filter(filterParent, filter);
contacts_filter_destroy(filter);
}
- LogDebug("filter stack size [" << m_filterStack.size() << "]");
+ LoggerD("filter stack size [" << m_filterStack.size() << "]");
}
void CallHistoryFilter::visitAttribute(std::string& attrName, MatchFlag& matchFlag, DeviceAPI::Tizen::AnyPtr& matchValue, int depth)
return;
}
- LogDebug("attrName [" << attrName << "] matchValue[" << matchValue->toString() << "] depth[" << depth << "]");
+ LoggerD("attrName [" << attrName << "] matchValue[" << matchValue->toString() << "] depth[" << depth << "]");
contacts_filter_h filter = m_filterStack.top();
contacts_filter_h subFilter = NULL;
contacts_filter_create(_contacts_phone_log._uri, &subFilter);
if(initialValue == NULL || endValue == NULL)
return;
- LogDebug("attrName [" << attrName << "] initialValue[" << initialValue->toString() << "] endValue[" << endValue->toString() << "] depth[" << depth <<"]");
+ LoggerD("attrName [" << attrName << "] initialValue[" << initialValue->toString() << "] endValue[" << endValue->toString() << "] depth[" << depth <<"]");
contacts_filter_h filter = m_filterStack.top();
unsigned int propertyId = 0;
iValue = atoi(initialValue->getString().c_str());
}
}
- LogDebug("attrName [" << attrName << "] initialValue[" << initialValue->toString() << "] iValue[" << iValue << "]");
+ LoggerD("attrName [" << attrName << "] initialValue[" << initialValue->toString() << "] iValue[" << iValue << "]");
}
if (!endValue->isNullOrUndefined()) {
eValue = atoi(endValue->getString().c_str());
}
}
- LogDebug("attrName [" << attrName << "] endValue[" << endValue->toString() << "] eValue[" << eValue << "]");
+ LoggerD("attrName [" << attrName << "] endValue[" << endValue->toString() << "] eValue[" << eValue << "]");
}
contacts_filter_h subFilter = NULL;
contacts_filter_h CallHistoryFilter::getResult() const
{
- LogDebug("filter stack size [" << m_filterStack.size() << "]");
+ LoggerD("filter stack size [" << m_filterStack.size() << "]");
contacts_filter_h filter = m_filterStack.top();
return filter;
}