194 foreach (HbContact cnt,retValue) { |
194 foreach (HbContact cnt,retValue) { |
195 //HbContact cnt = qVariantValue<HbContact>(v); |
195 //HbContact cnt = qVariantValue<HbContact>(v); |
196 QString tmp = QString::number(++count) + " : " + cnt.mLabel + " " + cnt.mNumber + "\n"; |
196 QString tmp = QString::number(++count) + " : " + cnt.mLabel + " " + cnt.mNumber + "\n"; |
197 data.append(tmp) ; |
197 data.append(tmp) ; |
198 } |
198 } |
199 QMessageBox msgBox; |
199 HbMessageBox::information(data); |
200 msgBox.setWindowTitle("Return value"); |
200 // QMessageBox msgBox; |
201 msgBox.setText(data); |
201 // msgBox.setWindowTitle("Return value"); |
202 msgBox.exec(); |
202 // msgBox.setText(data); |
|
203 // msgBox.exec(); |
203 //mRetMapValue->setText(QString::number(retValue)); |
204 //mRetMapValue->setText(QString::number(retValue)); |
204 } |
205 } |
205 } |
206 } |
206 |
207 |
207 void HbServiceClientView::launchContactSelecting() |
208 void HbServiceClientView::launchContactSelecting() |
232 else { |
233 else { |
233 ; |
234 ; |
234 } |
235 } |
235 |
236 |
236 if (list.count() == 0) { |
237 if (list.count() == 0) { |
237 HbMessageBox note; |
238 HbMessageBox::information(tr("Nothing returned")); |
238 note.setTimeout(10000); |
239 // note.setTimeout(10000); |
239 // "Nothing returned" will be replaced by a hbTrId when it is ready |
240 // "Nothing returned" will be replaced by a hbTrId when it is ready |
240 note.setText(tr("Nothing returned")); |
241 // note.setText(tr("Nothing returned")); |
241 note.exec(); |
242 // note.information(); |
242 } |
243 } |
243 else { |
244 else { |
244 QString data; |
245 QString data; |
245 foreach (CntServicesContact cnt, list) |
246 foreach (CntServicesContact cnt, list) |
246 { |
247 { |
247 QString recipientName = cnt.mDisplayName; |
248 QString recipientName = cnt.mDisplayName; |
248 data += recipientName + "\n"; |
249 data += recipientName + "\n"; |
249 } |
250 } |
250 HbMessageBox msgBox; |
251 HbMessageBox::information(data); |
251 msgBox.setWindowTitle("Returned value"); |
252 //HbMessageBox msgBox; |
252 msgBox.setText(data); |
253 //msgBox.setWindowTitle("Returned value"); |
253 msgBox.exec(); |
254 //msgBox.setText(data); |
|
255 //msgBox.information(); |
254 } |
256 } |
255 } |
257 } |
256 |
258 |
257 Q_IMPLEMENT_USER_METATYPE(HbContact) |
259 Q_IMPLEMENT_USER_METATYPE(HbContact) |
258 Q_IMPLEMENT_USER_METATYPE_NO_OPERATORS(HbContactList) |
260 Q_IMPLEMENT_USER_METATYPE_NO_OPERATORS(HbContactList) |