/*! \internal Returns the first detail stored in the contact which with the given \a definitionName */ QContactDetail QContact::detail(const char* definitionName) const { if (definitionName == 0) return d->m_details.first(); // build the sub-list of matching details. for (int i = 0; i < d->m_details.size(); i++) { const QContactDetail& existing = d->m_details.at(i); if (QContactDetailPrivate::detailPrivate(existing)->m_definitionName == definitionName) { return existing; } } return QContactDetail(); }
//Clears the action data, is called after the result has been emitted to contact (emitResult function) void MobBaseAction::resetAction() { m_contact = QContact(); m_detail = QContactDetail(); }