79 |
79 |
80 iAppServices = CPbk2ApplicationServices::InstanceL(); |
80 iAppServices = CPbk2ApplicationServices::InstanceL(); |
81 CVPbkContactManager& contactManager = iAppServices->ContactManager(); |
81 CVPbkContactManager& contactManager = iAppServices->ContactManager(); |
82 |
82 |
83 FeatureManager::InitializeLibL(); |
83 FeatureManager::InitializeLibL(); |
84 if( FeatureManager::FeatureSupported( KFeatureIdFfContactsSocial ) ) |
84 const TBool isFeatureIdFfContactsSocial = |
85 { |
85 FeatureManager::FeatureSupported( KFeatureIdFfContactsSocial ); |
|
86 FeatureManager::UnInitializeLib(); |
|
87 |
|
88 if( isFeatureIdFfContactsSocial ) |
|
89 { |
86 iProvider = CSpbContentProvider::NewL( contactManager, |
90 iProvider = CSpbContentProvider::NewL( contactManager, |
87 iAppServices->StoreManager(), |
91 iAppServices->StoreManager(), |
88 CSpbContentProvider::EStatusMessage | CSpbContentProvider::EServiceIcon ); |
92 CSpbContentProvider::EStatusMessage | CSpbContentProvider::EServiceIcon ); |
89 iStatusControl = CCCAppStatusControl::NewL( *iProvider, aObserver ); |
93 iStatusControl = CCCAppStatusControl::NewL( *iProvider, aObserver, CCCAppStatusControl::EMyCardContact ); |
90 iStatusControl->SetContainerWindowL( *this ); |
94 iStatusControl->SetContainerWindowL( *this ); |
91 iStatusControl->MakeVisible( EFalse ); |
95 iStatusControl->MakeVisible( EFalse ); |
92 |
96 |
93 CFbsBitmap* bmp = NULL; |
97 CFbsBitmap* bmp = NULL; |
94 CFbsBitmap* bmpMask = NULL; |
98 CFbsBitmap* bmpMask = NULL; |
95 |
99 |
96 AknsUtils::CreateIconL( |
100 AknsUtils::CreateIconL( |
97 AknsUtils::SkinInstance(), |
101 AknsUtils::SkinInstance(), |
98 KAknsIIDQgnPropWmlBmOvi, |
102 KAknsIIDQgnPropSocialCommunities, |
99 bmp, |
103 bmp, |
100 bmpMask, |
104 bmpMask, |
101 KMyCardIconDefaultFileName, |
105 KMyCardIconDefaultFileName, |
102 EMbmPhonebook2eceQgn_prop_wml_bm_ovi, |
106 EMbmPhonebook2eceQgn_prop_social_communities, |
103 EMbmPhonebook2eceQgn_prop_wml_bm_ovi_mask ); |
107 EMbmPhonebook2eceQgn_prop_social_communities_mask ); |
104 |
108 |
105 CGulIcon* guiIcon = CGulIcon::NewL( bmp, bmpMask ); |
109 CGulIcon* guiIcon = CGulIcon::NewL( bmp, bmpMask ); |
106 iStatusControl->SetDefaultStatusIconL( guiIcon ); |
110 iStatusControl->SetDefaultStatusIconL( guiIcon ); |
107 HBufC* defaultText = StringLoader::LoadL( R_QTN_CCA_MC_MY_CARD_IN_OVI ); |
111 HBufC* defaultText = StringLoader::LoadL( R_QTN_CCA_SOCIAL_NETWORKS ); |
108 iStatusControl->SetDefaultStatusTextL( defaultText ); |
112 iStatusControl->SetDefaultStatusTextL( defaultText ); |
109 } |
113 } |
110 FeatureManager::UnInitializeLib(); |
|
111 |
114 |
112 |
115 |
113 // Create portrait image |
116 // Create portrait image |
114 iPortraitImage = new(ELeave) CEikImage; |
117 iPortraitImage = new(ELeave) CEikImage; |
115 iPortraitImage->SetAlignment(EHCenterVCenter); |
118 iPortraitImage->SetAlignment(EHCenterVCenter); |