X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=EventTypes%2FPhoneCall.cpp;fp=EventTypes%2FPhoneCall.cpp;h=df8387ad8a4c12de9e8882429b79822be9851990;hb=1672d85141d3ee1ac7f2996c122f3f9ed974b702;hp=be07b32721b190256a49b2eeba04bb90dbc49c18;hpb=6e8e3d1a87a2b784abd818caeacb713f0cc2b582;p=qwerkisync diff --git a/EventTypes/PhoneCall.cpp b/EventTypes/PhoneCall.cpp index be07b32..df8387a 100644 --- a/EventTypes/PhoneCall.cpp +++ b/EventTypes/PhoneCall.cpp @@ -75,9 +75,9 @@ PhoneCall::PhoneCall(const Settings &settings, const RTComElEvent &event, const qDebug() << "Created new Phone Call from RtCom:\n" << *this; } -PhoneCall::PhoneCall(const Settings &settings, const Settings::eDirection destination, const QDateTime ×tamp, const QString &tel, int durationInSeconds, const AttachmentCollection &attachments) : +PhoneCall::PhoneCall(const Settings &settings, const Settings::eDirection destination, const QDateTime ×tamp, const QString &tel, const int durationInSeconds, const bool isMissedCall, const AttachmentCollection &attachments) : m_Settings(settings), m_Destination(destination), m_Timestamp(timestamp), m_Tel(tel), - m_DurationInSeconds(durationInSeconds), m_Attachments(attachments) + m_DurationInSeconds(durationInSeconds), m_IsMissedCall(isMissedCall), m_Attachments(attachments) { if(Tel().indexOf("0") == 0) Tel(QString(Tel()).replace(QRegExp("^0"), "+44")); @@ -123,6 +123,8 @@ RTComElEvent * PhoneCall::toRTComEvent(const NumberToNameLookup &numberToNameLoo RTCOM_EL_EVENT_SET_FIELD (event, service, g_strdup("RTCOM_EL_SERVICE_CALL")); if(voiceMailList.contains(Tel())) RTCOM_EL_EVENT_SET_FIELD (event, event_type, g_strdup("RTCOM_EL_EVENTTYPE_CALL_VOICEMAIL")); + else if(IsMissedCall()) + RTCOM_EL_EVENT_SET_FIELD (event, event_type, g_strdup("RTCOM_EL_EVENTTYPE_CALL_MISSED")); else RTCOM_EL_EVENT_SET_FIELD (event, event_type, g_strdup("RTCOM_EL_EVENTTYPE_CALL")); RTCOM_EL_EVENT_SET_FIELD (event, start_time, Timestamp().toUTC().toTime_t());