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 #include <TPbk2AppIconId.h> |
64 #include <TPbk2AppIconId.h> |
64 |
65 |
65 #include <aknlists.h> |
66 #include <aknlists.h> |
66 |
67 |
67 #include <avkon.rsg> |
68 #include <avkon.rsg> |
68 #include <vpbkeng.rsg> |
69 #include <vpbkeng.rsg> |
69 #include <pbk2uicontrols.rsg> |
70 #include <pbk2uicontrols.rsg> |
|
71 |
|
72 #include <Pbk2Config.hrh> |
70 |
73 |
71 #include "ccappdetailsviewlistboxmodel.h" |
74 #include "ccappdetailsviewlistboxmodel.h" |
72 #include "ccappdetailsviewdefs.h" |
75 #include "ccappdetailsviewdefs.h" |
73 #include <ccappdetailsviewpluginrsc.rsg> |
76 #include <ccappdetailsviewpluginrsc.rsg> |
74 #include "ccappdetailsviewplugin.h" |
77 #include "ccappdetailsviewplugin.h" |
922 CleanupStack::PushL(row); |
925 CleanupStack::PushL(row); |
923 |
926 |
924 // add icon. |
927 // add icon. |
925 buffer.Zero(); |
928 buffer.Zero(); |
926 TInt iconIndex = 0; |
929 TInt iconIndex = 0; |
927 if (IsAddressValidated(groupId)) |
930 TInt iconId = 0; |
928 { |
931 // UnSync feature indicator flag and chinese flag |
929 TPbk2IconId iconId(TUid::Uid(KPbk2UID3), EPbk2qgn_prop_locev_map); |
932 TBool supportUnSyncFeature = FeatureManager::FeatureSupported( |
930 iconIndex = iIconArray.FindIcon(iconId); |
933 KFeatureIdFfTdUnSyncabPbfieldsInd); |
931 buffer.AppendNum(iconIndex); |
934 TBool supportChinese = FeatureManager::FeatureSupported(KFeatureIdChinese); |
932 } |
935 // Valid address |
|
936 TBool addressValidated = IsAddressValidated(groupId); |
|
937 if(supportChinese && supportUnSyncFeature) |
|
938 { |
|
939 // UnSync Icon |
|
940 iconId = EPbk2qgn_prop_phonebook2_unsync; |
|
941 } |
933 else |
942 else |
934 { |
943 { |
935 TPbk2IconId iconId(TUid::Uid(KPbk2UID3), EPbk2qgn_prop_pb_no_valid_lm); |
944 iconId = addressValidated ? |
936 iconIndex = iIconArray.FindIcon(iconId); |
945 EPbk2qgn_prop_locev_map : EPbk2qgn_prop_pb_no_valid_lm; |
937 buffer.AppendNum(iconIndex); |
946 } |
938 } |
947 TPbk2IconId pbkIconId( TUid::Uid(KPbk2UID3),iconId ); |
|
948 iconIndex = iIconArray.FindIcon(pbkIconId); |
|
949 buffer.AppendNum(iconIndex); |
939 row->AppendColumnL(buffer); |
950 row->AppendColumnL(buffer); |
940 |
951 |
941 // add label. |
952 // add label. |
942 row->AppendColumnL(*label); |
953 row->AppendColumnL(*label); |
943 |
954 |