CommHistory::Event Ut_NotificationManager::createMissedCallEvent(const QString& remoteUid, int contactId)
{
    CommHistory::Event event;
    event.setType(CommHistory::Event::CallEvent);
    event.setDirection(CommHistory::Event::Inbound);
    event.setIsMissedCall (true);
    event.setStartTime(QDateTime::currentDateTime());
    event.setEndTime(QDateTime::currentDateTime());
    event.setLocalUid(DUT_ACCOUNT_PATH);
    event.setRemoteUid(remoteUid);
    event.setContactId(contactId);
    event.setId(eventId);
    eventId++;
    return event;
}
CommHistory::Event Ut_NotificationManager::createImEvent(const QString& remoteUid, int contactId)
{
    eventId++;
    CommHistory::Event event;
    event.setType(CommHistory::Event::IMEvent);
    event.setDirection(CommHistory::Event::Inbound);
    event.setStartTime(QDateTime::currentDateTime());
    event.setEndTime(QDateTime::currentDateTime());
    event.setLocalUid(DUT_ACCOUNT_PATH);
    event.setRemoteUid(remoteUid);
    event.setFreeText(MESSAGE_TEXT);
    event.setMessageToken(MESSAGE_TEXT + QString::number(eventId));
    event.setContactId(contactId);
    event.setGroupId(1);
    event.setId(eventId);
    return event;
}