qtcontactsmobility/plugins/contacts/symbian/src/cntdisplaylabel.cpp
changeset 40 b46a585f6909
parent 37 fd64c38c277d
child 46 efe85016a067
equal deleted inserted replaced
37:fd64c38c277d 40:b46a585f6909
    53  */
    53  */
    54 
    54 
    55 CntDisplayLabel::CntDisplayLabel() :
    55 CntDisplayLabel::CntDisplayLabel() :
    56     m_nameOrder(KOrderFirstLast)
    56     m_nameOrder(KOrderFirstLast)
    57 {
    57 {
    58 #ifdef SYMBIAN_BACKEND_USE_SQLITE
       
    59     CRepository* cenrep;
       
    60     TRAPD(err, cenrep = CRepository::NewL(KCRUiContacts));
       
    61     if (err == KErrNone) {
       
    62         TInt value(-1);
       
    63         if (cenrep->Get(KNameOrdering, value) == KErrNone) {
       
    64             m_nameOrder = static_cast<int>(value);
       
    65         }
       
    66     }
       
    67 #endif
       
    68     setDisplayLabelDetails();
    58     setDisplayLabelDetails();
    69 }
    59 }
    70 
    60 
    71 /*! 
    61 /*! 
    72  * Destructor
    62  * Destructor