equal
deleted
inserted
replaced
106 |
106 |
107 m_request->setArguments(data); |
107 m_request->setArguments(data); |
108 m_request->send(retValue); |
108 m_request->send(retValue); |
109 emitResult(m_request->lastError(), retValue); |
109 emitResult(m_request->lastError(), retValue); |
110 } |
110 } |
111 |
|
112 // If no detail, pick preferred. |
|
113 // Todo : Temporary fix. Remove setting preferred when selection popup feature available. |
|
114 else if (m_detail.isEmpty()) { |
|
115 QContactDetail detail = m_contact.preferredDetail(m_actionName); |
|
116 QContactEmailAddress email; |
|
117 |
|
118 // If preferred is empty pick first email. |
|
119 if (detail.isEmpty()) { |
|
120 email = m_contact.detail<QContactEmailAddress>(); |
|
121 } |
|
122 else { |
|
123 email = static_cast<QContactEmailAddress>(detail); |
|
124 } |
|
125 |
|
126 recipients.append(email.emailAddress()); |
|
127 map.insert(EMAIL_SEND_TO_KEY, recipients); |
|
128 data.append(map); |
|
129 |
|
130 m_request->setArguments(data); |
|
131 m_request->send(retValue); |
|
132 emitResult(m_request->lastError(), retValue); |
|
133 } |
|
134 else { |
111 else { |
135 emitResult(GeneralError, retValue); |
112 emitResult(GeneralError, retValue); |
136 } |
113 } |
137 } |
114 } |
138 |
115 |