phonebookui/phonebookservices/src/cntservicecontactfetchview.cpp
changeset 25 76a2435edfd4
parent 24 0ba2181d7c28
child 27 de1630741fbe
equal deleted inserted replaced
24:0ba2181d7c28 25:76a2435edfd4
    58     {
    58     {
    59         QContact contact = contactModel()->contact(temp.at(i));
    59         QContact contact = contactModel()->contact(temp.at(i));
    60         CntServicesContact servicesContact;
    60         CntServicesContact servicesContact;
    61 
    61 
    62         //get the name
    62         //get the name
    63         servicesContact.mDisplayName = contactManager()->synthesizeDisplayLabel(contact);
    63         servicesContact.mDisplayName = contactManager()->synthesizedDisplayLabel(contact);
    64 
    64 
    65         //get the phonenumber
    65         //get the phonenumber
    66         QList<QContactPhoneNumber> phonenumbers = contact.details<QContactPhoneNumber>();
    66         QList<QContactPhoneNumber> phonenumbers = contact.details<QContactPhoneNumber>();
    67         if(phonenumbers.count() > 0)
    67         if(phonenumbers.count() > 0)
    68         {
    68         {
    88 
    88 
    89     connect(mServiceHandler, SIGNAL(returnValueDelivered()), qApp, SLOT(quit()));
    89     connect(mServiceHandler, SIGNAL(returnValueDelivered()), qApp, SLOT(quit()));
    90     mServiceHandler->completeFetch(serviceList);
    90     mServiceHandler->completeFetch(serviceList);
    91 }
    91 }
    92 
    92 
       
    93 void CntServiceContactFetchView::activateView(const CntViewParameters &aArgs)
       
    94 {
       
    95     // Set action filter
       
    96     QMap<int,QVariant> map = aArgs.parameters();
       
    97     QString filter = map.value(CntViewParameters::Filter).toString();
       
    98     QString action = map.value(CntViewParameters::Action).toString();
       
    99     setActionFilter(action, filter);
       
   100     
       
   101     // Set title of the view.
       
   102     QString title = map.value(CntViewParameters::Title).toString();
       
   103     setTitle(title);
       
   104     
       
   105     CntBaseSelectionView::activateView(aArgs);
       
   106 }
    93 
   107 
    94 void CntServiceContactFetchView::setActionFilter(QString action, QString filter)
   108 void CntServiceContactFetchView::setActionFilter(QString action, QString filter)
    95 {
   109 {
    96     Q_UNUSED(filter);
   110     Q_UNUSED(filter);
    97     
   111