phonebookui/Phonebook2/ccapplication/ccadetailsviewplugin/src/ccappdetailsviewlistboxmodel.cpp
equal
deleted
inserted
replaced
58 #include <Pbk2PresentationUtils.h> |
58 #include <Pbk2PresentationUtils.h> |
59 #include <Pbk2AddressTools.h> |
59 #include <Pbk2AddressTools.h> |
60 #include <TVPbkFieldTypeParameters.h> |
60 #include <TVPbkFieldTypeParameters.h> |
61 #include <TVPbkFieldVersitProperty.h> |
61 #include <TVPbkFieldVersitProperty.h> |
62 #include <StringLoader.h> |
62 #include <StringLoader.h> |
63 #include <featmgr.h> |
63 |
64 #include <TPbk2AppIconId.h> |
64 #include <TPbk2AppIconId.h> |
65 |
65 |
66 #include <aknlists.h> |
66 #include <aknlists.h> |
67 |
67 |
68 #include <avkon.rsg> |
68 #include <avkon.rsg> |
69 #include <vpbkeng.rsg> |
69 #include <VPbkEng.rsg> |
70 #include <pbk2uicontrols.rsg> |
70 #include <Pbk2UIControls.rsg> |
71 |
|
72 #include <Pbk2Config.hrh> |
|
73 |
71 |
74 #include "ccappdetailsviewlistboxmodel.h" |
72 #include "ccappdetailsviewlistboxmodel.h" |
75 #include "ccappdetailsviewdefs.h" |
73 #include "ccappdetailsviewdefs.h" |
76 #include <ccappdetailsviewpluginrsc.rsg> |
74 #include <ccappdetailsviewpluginrsc.rsg> |
77 #include "ccappdetailsviewplugin.h" |
75 #include "ccappdetailsviewplugin.h" |
698 AddDataL(); |
696 AddDataL(); |
699 SetTitleL(); |
697 SetTitleL(); |
700 UpdateMSKinCbaL(); |
698 UpdateMSKinCbaL(); |
701 ); |
699 ); |
702 |
700 |
703 // check if any item highlighted |
701 SetFocusedListIndex(iInitialFocusIndex); |
704 TBool highLightEnabled = iListBox.IsHighlightEnabled(); |
|
705 if ( !highLightEnabled ) |
|
706 { |
|
707 SetFocusedListIndex(iInitialFocusIndex); |
|
708 } |
|
709 |
702 |
710 /*if (!iXspIdModifyState) |
703 /*if (!iXspIdModifyState) |
711 { |
704 { |
712 iXspIdModifyState++; |
705 iXspIdModifyState++; |
713 switch (iXspIdModifyState) |
706 switch (iXspIdModifyState) |
925 CleanupStack::PushL(row); |
918 CleanupStack::PushL(row); |
926 |
919 |
927 // add icon. |
920 // add icon. |
928 buffer.Zero(); |
921 buffer.Zero(); |
929 TInt iconIndex = 0; |
922 TInt iconIndex = 0; |
930 TInt iconId = 0; |
923 if (IsAddressValidated(groupId)) |
931 // UnSync feature indicator flag and chinese flag |
924 { |
932 TBool supportUnSyncFeature = FeatureManager::FeatureSupported( |
925 TPbk2IconId iconId(TUid::Uid(KPbk2UID3), EPbk2qgn_prop_locev_map); |
933 KFeatureIdFfTdUnSyncabPbfieldsInd); |
926 iconIndex = iIconArray.FindIcon(iconId); |
934 TBool supportChinese = FeatureManager::FeatureSupported(KFeatureIdChinese); |
927 buffer.AppendNum(iconIndex); |
935 // Valid address |
928 } |
936 TBool addressValidated = IsAddressValidated(groupId); |
|
937 if(supportChinese && supportUnSyncFeature) |
|
938 { |
|
939 // UnSync Icon |
|
940 iconId = EPbk2qgn_prop_phonebook2_unsync; |
|
941 } |
|
942 else |
929 else |
943 { |
930 { |
944 iconId = addressValidated ? |
931 TPbk2IconId iconId(TUid::Uid(KPbk2UID3), EPbk2qgn_prop_pb_no_valid_lm); |
945 EPbk2qgn_prop_locev_map : EPbk2qgn_prop_pb_no_valid_lm; |
932 iconIndex = iIconArray.FindIcon(iconId); |
946 } |
933 buffer.AppendNum(iconIndex); |
947 TPbk2IconId pbkIconId( TUid::Uid(KPbk2UID3),iconId ); |
934 } |
948 iconIndex = iIconArray.FindIcon(pbkIconId); |
|
949 buffer.AppendNum(iconIndex); |
|
950 row->AppendColumnL(buffer); |
935 row->AppendColumnL(buffer); |
951 |
936 |
952 // add label. |
937 // add label. |
953 row->AppendColumnL(*label); |
938 row->AppendColumnL(*label); |
954 |
939 |