phonebookui/pbkcommonui/src/cnteditviewitembuilder.cpp
changeset 37 fd64c38c277d
parent 31 2a11b5b00470
child 40 b46a585f6909
equal deleted inserted replaced
31:2a11b5b00470 37:fd64c38c277d
    93                     list.append( detailItem );
    93                     list.append( detailItem );
    94                 }
    94                 }
    95                 else if ( subtype == QContactOnlineAccount::SubTypeSipVoip )
    95                 else if ( subtype == QContactOnlineAccount::SubTypeSipVoip )
    96                 {
    96                 {
    97                     if ( context == QContactOnlineAccount::ContextHome )
    97                     if ( context == QContactOnlineAccount::ContextHome )
    98                         detailItem->addText( hbTrId("txt_phob_dblist_internet_telephone_home") );
    98                         detailItem->addText( hbTrId("txt_phob_formlabel_internet_telephone") );
    99                     else if ( context == QContactOnlineAccount::ContextWork )
    99                     else if ( context == QContactOnlineAccount::ContextWork )
   100                         detailItem->addText( hbTrId("txt_phob_dblist_internet_telephone_work") );
   100                         detailItem->addText( hbTrId("txt_phob_formlabel_internet_telephone_home") );
   101                     else
   101                     else
   102                         detailItem->addText( hbTrId("txt_phob_dblist_internet_telephone") );
   102                         detailItem->addText( hbTrId("txt_phob_formlabel_internet_telephone_work") );
   103                     
   103                     
   104                     detailItem->addText( number.accountUri() );
   104                     detailItem->addText( number.accountUri() );
   105                     list.append( detailItem );
   105                     list.append( detailItem );
   106                 }
   106                 }
   107                 else
   107                 else
   147             if ( context == QContactEmailAddress::ContextHome )
   147             if ( context == QContactEmailAddress::ContextHome )
   148                 detailItem->addText(hbTrId("txt_phob_formlabel_email_home"));
   148                 detailItem->addText(hbTrId("txt_phob_formlabel_email_home"));
   149             else if ( context == QContactEmailAddress::ContextWork )
   149             else if ( context == QContactEmailAddress::ContextWork )
   150                 detailItem->addText(hbTrId("txt_phob_formlabel_email_work"));
   150                 detailItem->addText(hbTrId("txt_phob_formlabel_email_work"));
   151             else
   151             else
   152                 detailItem->addText( hbTrId("txt_phob_list_email") );
   152                 detailItem->addText( hbTrId("txt_phob_formlabel_email") );
   153             
   153             
   154             detailItem->addText( address.emailAddress() );
   154             detailItem->addText( address.emailAddress() );
   155             list.append( detailItem );
   155             list.append( detailItem );
   156         }
   156         }
   157     }
   157     }
   209                     QContactUrl::FieldUrl,
   209                     QContactUrl::FieldUrl,
   210                     urlEditorView );
   210                     urlEditorView );
   211             detailItem->addIcon( mMap->getContactEditorIconString(QContactUrl::DefinitionName, context) );
   211             detailItem->addIcon( mMap->getContactEditorIconString(QContactUrl::DefinitionName, context) );
   212             
   212             
   213             if ( context == QContactUrl::ContextHome )
   213             if ( context == QContactUrl::ContextHome )
   214                 detailItem->addText( hbTrId("txt_phob_formlabel_address_home") );
   214                 detailItem->addText( hbTrId("txt_phob_dblist_url_home") );
   215             else if ( context == QContactUrl::ContextWork )
   215             else if ( context == QContactUrl::ContextWork )
   216                 detailItem->addText( hbTrId("txt_phob_formlabel_address_work") );
   216                 detailItem->addText( hbTrId("txt_phob_dblist_url_work") );
   217             else
   217             else
   218                 detailItem->addText( hbTrId("txt_phob_list_url") );
   218                 detailItem->addText( hbTrId("txt_phob_dblist_url") );
   219             
   219             
   220             detailItem->addText( url.url() );
   220             detailItem->addText( url.url() );
   221             list.append( detailItem );
   221             list.append( detailItem );
   222         }
   222         }
   223     }
   223     }
   252             if ( context == QContactAddress::ContextHome )
   252             if ( context == QContactAddress::ContextHome )
   253                 detailItem->addText(hbTrId("txt_phob_formlabel_address_home"));
   253                 detailItem->addText(hbTrId("txt_phob_formlabel_address_home"));
   254             else if ( context == QContactAddress::ContextWork )
   254             else if ( context == QContactAddress::ContextWork )
   255                 detailItem->addText(hbTrId("txt_phob_formlabel_address_work"));
   255                 detailItem->addText(hbTrId("txt_phob_formlabel_address_work"));
   256             else
   256             else
   257                 detailItem->addText(hbTrId("txt_phob_list_address"));
   257                 detailItem->addText(hbTrId("txt_phob_formlabel_address"));
   258             
   258             
   259             detailItem->addText( address );
   259             detailItem->addText( address );
   260             list.append( detailItem );
   260             list.append( detailItem );
   261         }
   261         }
   262     }
   262     }
   283         
   283         
   284         CntEditViewDetailItem* detailItem = new CntEditViewDetailItem(
   284         CntEditViewDetailItem* detailItem = new CntEditViewDetailItem(
   285                 org,
   285                 org,
   286                 fields,
   286                 fields,
   287                 companyEditorView);
   287                 companyEditorView);
   288         detailItem->addText( hbTrId("txt_phob_list_company_details") );
   288         detailItem->addText( hbTrId("txt_phob_formlabel_company_details") );
   289         detailItem->addText( company );
   289         detailItem->addText( company );
   290         list.append( detailItem );
   290         list.append( detailItem );
   291     }
   291     }
   292        
   292        
   293     // Assistant
   293     // Assistant
   347         {
   347         {
   348             CntEditViewDetailItem* detailItem = new CntEditViewDetailItem(
   348             CntEditViewDetailItem* detailItem = new CntEditViewDetailItem(
   349                     note,
   349                     note,
   350                     QContactNote::FieldNote,
   350                     QContactNote::FieldNote,
   351                     noteEditorView);
   351                     noteEditorView);
   352             detailItem->addText( hbTrId("txt_phob_list_note") );
   352             detailItem->addText( hbTrId("txt_phob_formlabel_note") );
   353             detailItem->addText( text );
   353             detailItem->addText( text );
   354             list.append( detailItem );
   354             list.append( detailItem );
   355         }
   355         }
   356     }
   356     }
   357     return list;
   357     return list;