equal
deleted
inserted
replaced
95 * Activate the view |
95 * Activate the view |
96 */ |
96 */ |
97 void CntHistoryView::activate( CntAbstractViewManager* aMgr, const CntViewParameters aArgs ) |
97 void CntHistoryView::activate( CntAbstractViewManager* aMgr, const CntViewParameters aArgs ) |
98 { |
98 { |
99 mViewMgr = aMgr; |
99 mViewMgr = aMgr; |
100 mContact = new QContact(aArgs.value(ESelectedContact).value<QContact>()); |
100 mArgs = aArgs; |
|
101 mContact = new QContact(mArgs.value(ESelectedContact).value<QContact>()); |
101 |
102 |
102 // Set history view heading |
103 // Set history view heading |
103 HbGroupBox* groupBox = static_cast<HbGroupBox*>(docLoader()->findWidget(QString("groupBox"))); |
104 HbGroupBox* groupBox = static_cast<HbGroupBox*>(docLoader()->findWidget(QString("groupBox"))); |
104 groupBox->setHeading(hbTrId("txt_phob_subtitle_history_with_1").arg(mContact->displayLabel())); |
105 groupBox->setHeading(hbTrId("txt_phob_subtitle_history_with_1").arg(mContact->displayLabel())); |
105 |
106 |
190 // Make a call |
191 // Make a call |
191 QVariant v = index.data(CntHistoryModel::PhoneNumberRole); |
192 QVariant v = index.data(CntHistoryModel::PhoneNumberRole); |
192 if (!v.isValid()) |
193 if (!v.isValid()) |
193 return; |
194 return; |
194 |
195 |
195 QString service("com.nokia.services.telephony"); |
196 QString service("com.nokia.symbian.ICallDial"); |
196 QString type("dial(QString)"); |
197 QString type("dial(QString)"); |
197 XQServiceRequest snd(service, type, false); |
198 XQServiceRequest snd(service, type, false); |
198 snd << v.toString(); |
199 snd << v.toString(); |
199 snd.send(); |
200 snd.send(); |
200 } |
201 } |
215 /*! |
216 /*! |
216 Go back to previous view |
217 Go back to previous view |
217 */ |
218 */ |
218 void CntHistoryView::showPreviousView() |
219 void CntHistoryView::showPreviousView() |
219 { |
220 { |
220 CntViewParameters viewParameters; |
|
221 QVariant var; |
221 QVariant var; |
222 var.setValue(*mContact); |
222 var.setValue(*mContact); |
223 viewParameters.insert(ESelectedContact, var); |
223 mArgs.insert(ESelectedContact, var); |
224 mViewMgr->back(viewParameters); |
224 mViewMgr->back( mArgs ); |
225 } |
225 } |
226 |
226 |
227 /*! |
227 /*! |
228 Show or hide the clear history menu |
228 Show or hide the clear history menu |
229 */ |
229 */ |