phonebookui/pbkcommonui/src/cntfavoritesview.cpp
changeset 47 7cbcb2896f0e
parent 40 b46a585f6909
child 53 e6aff7b69165
equal deleted inserted replaced
46:efe85016a067 47:7cbcb2896f0e
    86 void CntFavoritesView::openSelectionPopup()
    86 void CntFavoritesView::openSelectionPopup()
    87 {
    87 {
    88     QSet<QContactLocalId> emptySet;
    88     QSet<QContactLocalId> emptySet;
    89     
    89     
    90     if (!mFetchView) {
    90     if (!mFetchView) {
    91         mFetchView = new CntFetchContacts(getContactManager());
    91         mFetchView = new CntFetchContacts(*getContactManager());
    92         connect(mFetchView, SIGNAL(clicked()), this, SLOT(handleMemberSelection()));
    92         connect(mFetchView, SIGNAL(clicked()), this, SLOT(handleMemberSelection()));
    93     }
    93     }
    94     mFetchView->setDetails(hbTrId("txt_phob_subtitle_favorites"), hbTrId("txt_common_button_save"));
    94     mFetchView->setDetails(hbTrId("txt_phob_subtitle_favorites"), hbTrId("txt_common_button_save"));
    95     mFetchView->displayContacts(CntFetchContacts::popup, HbAbstractItemView::MultiSelection, emptySet);
    95     mFetchView->displayContacts(HbAbstractItemView::MultiSelection, emptySet);
    96 }
    96 }
    97 
    97 
    98 void CntFavoritesView::handleMemberSelection()
    98 void CntFavoritesView::handleMemberSelection()
    99 {
    99 {
   100     QSet<QContactLocalId> members = mFetchView->getSelectedContacts();
   100     QSet<QContactLocalId> members = mFetchView->getSelectedContacts();