X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=EventTypes%2FPhoneCall.cpp;fp=EventTypes%2FPhoneCall.cpp;h=257524765923eaeb4b402dfcf99bda2017c3c083;hb=b320c919e28ce961edcdc6672f418861bccc4eff;hp=7997fc2dbb4d252efe06b03c70aef834decf9797;hpb=77c0366132f246cba130af5e01aa511ded864a52;p=qwerkisync diff --git a/EventTypes/PhoneCall.cpp b/EventTypes/PhoneCall.cpp index 7997fc2..2575247 100644 --- a/EventTypes/PhoneCall.cpp +++ b/EventTypes/PhoneCall.cpp @@ -61,12 +61,12 @@ PhoneCall::~PhoneCall() PhoneCall::PhoneCall(const Settings &settings, const RTComElEvent &event, const QList attachments) : m_Settings(settings) { - setDestination(event.fld_outgoing ? Settings::OUTGOING : Settings::INCOMING); - setTimestamp(QDateTime::fromTime_t(event.fld_start_time).toUTC()); - setDurationInSeconds(QDateTime::fromTime_t(event.fld_start_time).toUTC().secsTo(QDateTime::fromTime_t(event.fld_end_time).toUTC())); - setTel(event.fld_remote_uid); + Destination(event.fld_outgoing ? Settings::OUTGOING : Settings::INCOMING); + Timestamp(QDateTime::fromTime_t(event.fld_start_time).toUTC()); + DurationInSeconds(QDateTime::fromTime_t(event.fld_start_time).toUTC().secsTo(QDateTime::fromTime_t(event.fld_end_time).toUTC())); + Tel(event.fld_remote_uid); if(Tel().indexOf("0") == 0) - setTel(QString(Tel()).replace(QRegExp("^0"), "+44")); + Tel(QString(Tel()).replace(QRegExp("^0"), "+44")); if(attachments.count() > 0) foreach(RTComElAttachment *attachment, attachments) @@ -80,7 +80,7 @@ PhoneCall::PhoneCall(const Settings &settings, const Settings::eDirection destin m_DurationInSeconds(durationInSeconds), m_Attachments(attachments) { if(Tel().indexOf("0") == 0) - setTel(QString(Tel()).replace(QRegExp("^0"), "+44")); + Tel(QString(Tel()).replace(QRegExp("^0"), "+44")); // TODO: Copy attachments. // if(attachments.count() > 0)