phonebookengines/cntlistmodel/src/cntcache.cpp
changeset 59 a642906a277a
parent 47 7cbcb2896f0e
child 61 d30183af6ca6
equal deleted inserted replaced
47:7cbcb2896f0e 59:a642906a277a
   437     CNT_ENTRY_ARGS( contactId )
   437     CNT_ENTRY_ARGS( contactId )
   438 
   438 
   439     bool foundContact = false;
   439     bool foundContact = false;
   440 
   440 
   441     QContactFetchHint nameOnlyFetchHint;
   441     QContactFetchHint nameOnlyFetchHint;
   442     QStringList details;
   442     /*QStringList details;
   443     details << QContactDisplayLabel::DefinitionName;
   443     details << QContactDisplayLabel::DefinitionName;
   444     nameOnlyFetchHint.setDetailDefinitionsHint(details);
   444     nameOnlyFetchHint.setDetailDefinitionsHint(details);*/
   445     nameOnlyFetchHint.setOptimizationHints(QContactFetchHint::NoRelationships);
   445     nameOnlyFetchHint.setOptimizationHints(QContactFetchHint::NoRelationships);
   446     QContact contact = mContactManager->contact(contactId, nameOnlyFetchHint);
   446     QContact contact = mContactManager->contact(contactId, nameOnlyFetchHint);
   447     
   447     
   448     if (mContactManager->error() == QContactManager::NoError) {
   448     if (mContactManager->error() == QContactManager::NoError) {
   449         contactName = contact.displayLabel();
   449         contactName = contact.displayLabel();
   646  */
   646  */
   647 void CntCache::onShutdown()
   647 void CntCache::onShutdown()
   648 {
   648 {
   649 	CNT_ENTRY
   649 	CNT_ENTRY
   650 
   650 
   651     delete this;
   651     deleteLater();
   652 
   652 
   653 	CNT_EXIT
   653 	CNT_EXIT
   654 }
   654 }
   655 
   655 
   656 
   656