28 #include <centralrepository.h> |
28 #include <centralrepository.h> |
29 #include <ProfileEngineInternalCRKeys.h> |
29 #include <ProfileEngineInternalCRKeys.h> |
30 #include <ProfileSettingsView.rsg> |
30 #include <ProfileSettingsView.rsg> |
31 #include <data_caging_path_literals.hrh> |
31 #include <data_caging_path_literals.hrh> |
32 #include <CLFContentListing.hrh> // For TCLFMediaType::ECLFMediaTypeVideo |
32 #include <CLFContentListing.hrh> // For TCLFMediaType::ECLFMediaTypeVideo |
|
33 #include <featdiscovery.h> // CFeatureDiscovery |
33 |
34 |
34 // for mediafilelist |
35 // for mediafilelist |
35 #include <mediafilelist.h> |
36 #include <mediafilelist.h> |
36 #include <ProfileInternal.hrh> |
37 #include <ProfileInternal.hrh> |
37 #include <DRMHelper.h> |
38 #include <DRMHelper.h> |
191 { |
192 { |
192 list->SetAttrL( CMediaFileList::EAttrAutomatedType, CDRMHelper::EAutomatedTypeEmailAlert ); |
193 list->SetAttrL( CMediaFileList::EAttrAutomatedType, CDRMHelper::EAutomatedTypeEmailAlert ); |
193 } |
194 } |
194 |
195 |
195 // Size limit for voice call tone files |
196 // Size limit for voice call tone files |
|
197 // Messaging tone size is also limited if the |
|
198 // "FF_LIMITED_MESSAGE_AND_ALARM_TONE_SIZE" feature flag is enabled |
196 if ( id == EProfileSettingRingingToneId || |
199 if ( id == EProfileSettingRingingToneId || |
197 id == EProfileSettingRingingToneLine1Id || |
200 id == EProfileSettingRingingToneLine1Id || |
198 id == EProfileSettingRingingToneLine2Id ) |
201 id == EProfileSettingRingingToneLine2Id || |
|
202 ( id == EProfileSettingMessageAlertToneId && |
|
203 CFeatureDiscovery::IsFeatureSupportedL( KFeatureIdFfLimitedMessageAndAlarmToneSize ) ) ) |
199 { |
204 { |
200 TInt sizeLimitKB = 0; |
205 TInt sizeLimitKB = 0; |
201 CRepository* cenrep = CRepository::NewL( KCRUidProfileEngine ); |
206 CRepository* cenrep = CRepository::NewL( KCRUidProfileEngine ); |
202 CleanupStack::PushL( cenrep ); |
207 CleanupStack::PushL( cenrep ); |
203 User::LeaveIfError( cenrep->Get( KProEngRingingToneMaxSize, sizeLimitKB ) ); |
208 User::LeaveIfError( cenrep->Get( KProEngRingingToneMaxSize, sizeLimitKB ) ); |
204 CleanupStack::PopAndDestroy(); // cenrep |
209 CleanupStack::PopAndDestroy(); // cenrep |
205 |
210 |
206 list->SetAttrL( CMediaFileList::EAttrFileSize, sizeLimitKB ); |
211 list->SetAttrL( CMediaFileList::EAttrFileSize, sizeLimitKB ); |
207 |
|
208 |
212 |
209 } |
213 } |
210 |
214 |
211 list->SetAttrL( CMediaFileList::EAttr3DEffect, i3DEffect ); |
215 list->SetAttrL( CMediaFileList::EAttr3DEffect, i3DEffect ); |
212 list->SetAttrL( CMediaFileList::EAttr3DEcho, i3DEcho ); |
216 list->SetAttrL( CMediaFileList::EAttr3DEcho, i3DEcho ); |