100 /*! |
100 /*! |
101 * Deactivate the view |
101 * Deactivate the view |
102 */ |
102 */ |
103 void CntHistoryView::deactivate() |
103 void CntHistoryView::deactivate() |
104 { |
104 { |
105 QContactManager* cm = mViewMgr->contactManager(SYMBIAN_BACKEND); |
105 QContactManager* cm = &mEngine->contactManager(SYMBIAN_BACKEND); |
106 disconnect(cm, SIGNAL(contactsRemoved(const QList<QContactLocalId>&)), |
106 disconnect(cm, SIGNAL(contactsRemoved(const QList<QContactLocalId>&)), |
107 this, SLOT(contactDeletedFromOtherSource(const QList<QContactLocalId>&))); |
107 this, SLOT(contactDeletedFromOtherSource(const QList<QContactLocalId>&))); |
108 } |
108 } |
109 |
109 |
110 /** |
110 /** |
111 * Activate the view |
111 * Activate the view |
112 */ |
112 */ |
113 void CntHistoryView::activate( CntAbstractViewManager* aMgr, const CntViewParameters aArgs ) |
113 void CntHistoryView::activate( const CntViewParameters aArgs ) |
114 { |
114 { |
115 mViewMgr = aMgr; |
|
116 mArgs = aArgs; |
115 mArgs = aArgs; |
117 |
116 mViewMgr = &mEngine->viewManager(); |
118 QContactManager* cm = mViewMgr->contactManager(SYMBIAN_BACKEND); |
117 |
|
118 QContactManager* cm = &mEngine->contactManager(SYMBIAN_BACKEND); |
119 mContact = new QContact(mArgs.value(ESelectedContact).value<QContact>()); |
119 mContact = new QContact(mArgs.value(ESelectedContact).value<QContact>()); |
120 |
120 |
121 // Set history view heading |
121 // Set history view heading |
122 HbGroupBox* groupBox = static_cast<HbGroupBox*>(docLoader()->findWidget(QString("groupBox"))); |
122 HbGroupBox* groupBox = static_cast<HbGroupBox*>(docLoader()->findWidget(QString("groupBox"))); |
123 QString name = mContact->displayLabel(); |
123 QString name = mContact->displayLabel(); |