25 #include <StringLoader.h> |
25 #include <StringLoader.h> |
26 #include <AknQueryDialog.h> |
26 #include <AknQueryDialog.h> |
27 #include <AknWaitDialog.h> |
27 #include <AknWaitDialog.h> |
28 #include <CAknMemorySelectionSettingItemMultiDrive.h> |
28 #include <CAknMemorySelectionSettingItemMultiDrive.h> |
29 #include <driveinfo.h> // DriveInfo |
29 #include <driveinfo.h> // DriveInfo |
|
30 #include <AknCommonDialogsDynMem.h> |
30 |
31 |
31 #include "GSCamcorderPlugin.hrh" |
32 #include "GSCamcorderPlugin.hrh" |
32 #include "Cam.hrh" |
33 #include "Cam.hrh" |
33 #include "CamSettings.hrh" |
34 #include "CamSettings.hrh" |
34 #include "CamSettingsInternal.hrh" |
35 #include "CamSettingsInternal.hrh" |
44 #include "CameraUiConfigManager.h" |
45 #include "CameraUiConfigManager.h" |
45 #include "CamCollectionManagerAo.h" |
46 #include "CamCollectionManagerAo.h" |
46 #include "CamWaitDialog.h" |
47 #include "CamWaitDialog.h" |
47 #include "CamLocationSettingItem.h" |
48 #include "CamLocationSettingItem.h" |
48 #include "camconfiguration.h" |
49 #include "camconfiguration.h" |
|
50 #include "GSCamCaptureToneSettingItem.h" |
49 |
51 |
50 // ========================= MEMBER FUNCTIONS ================================ |
52 // ========================= MEMBER FUNCTIONS ================================ |
51 |
53 |
52 // --------------------------------------------------------------------------- |
54 // --------------------------------------------------------------------------- |
53 // CGSCamPhotoSettingsList::CGSCamPhotoSettingsList |
55 // CGSCamPhotoSettingsList::CGSCamPhotoSettingsList |
225 case ECamSettingItemPhotoMediaStorage: |
227 case ECamSettingItemPhotoMediaStorage: |
226 { |
228 { |
227 // Convert the setting to a memory enum |
229 // Convert the setting to a memory enum |
228 iMemVal = static_cast<DriveInfo::TDefaultDrives> |
230 iMemVal = static_cast<DriveInfo::TDefaultDrives> |
229 ( CamUtility::MapToSettingsListMemory( valueId ) ); |
231 ( CamUtility::MapToSettingsListMemory( valueId ) ); |
230 __ASSERT_DEBUG( iMemVal != KErrNotFound, |
232 |
231 CamPanic( ECamPanicUnhandledCreateSettingItem ) ); |
|
232 |
|
233 // Get the root path of the default mass storage memory. |
233 // Get the root path of the default mass storage memory. |
234 TInt driveInt; |
234 if(iMemVal != KErrNotFound) |
235 TInt err = DriveInfo::GetDefaultDrive( iMemVal, driveInt ); |
235 { |
236 iDrive = static_cast<TDriveNumber>(driveInt); |
236 TInt driveInt; |
237 |
237 TInt err = DriveInfo::GetDefaultDrive( iMemVal, driveInt ); |
|
238 iDrive = static_cast<TDriveNumber>(driveInt); |
|
239 } |
|
240 else |
|
241 { |
|
242 iDrive = static_cast<TDriveNumber>(0); //Doesn't matter |
|
243 } |
|
244 TInt includedMedias = AknCommonDialogsDynMem::EMemoryTypeMMCExternal | |
|
245 AknCommonDialogsDynMem::EMemoryTypeInternalMassStorage; |
238 settingItem = new ( ELeave ) |
246 settingItem = new ( ELeave ) |
239 CAknMemorySelectionSettingItemMultiDrive( |
247 CAknMemorySelectionSettingItemMultiDrive( |
240 aIdentifier, |
248 aIdentifier, |
241 iDrive ); |
249 iDrive |
|
250 ); |
|
251 static_cast<CAknMemorySelectionSettingItemMultiDrive*>(settingItem) |
|
252 ->SetIncludedMediasL(includedMedias); |
242 } |
253 } |
243 break; |
254 break; |
244 |
255 |
245 case ECamSettingItemPhotoNameBaseType: |
256 case ECamSettingItemPhotoNameBaseType: |
246 { |
257 { |
327 // ...then convert the memory value to settings model type value. |
338 // ...then convert the memory value to settings model type value. |
328 if ( editedItem->Identifier() == ECamSettingItemPhotoMediaStorage ) |
339 if ( editedItem->Identifier() == ECamSettingItemPhotoMediaStorage ) |
329 { |
340 { |
330 iMemVal = static_cast<DriveInfo::TDefaultDrives>(CamUtility::GetDriveTypeFromDriveNumber( iDrive )); |
341 iMemVal = static_cast<DriveInfo::TDefaultDrives>(CamUtility::GetDriveTypeFromDriveNumber( iDrive )); |
331 settingValue = CamUtility::MapFromSettingsListMemory( iMemVal ); |
342 settingValue = CamUtility::MapFromSettingsListMemory( iMemVal ); |
|
343 settingValue = ( (settingValue == ECamMediaStoragePhone) && |
|
344 parent->IntegerSettingValue(ECamSettingItemRemovePhoneMemoryUsage) )? |
|
345 ECamMediaStorageNone:settingValue; |
332 } |
346 } |
333 else if ( editedItem->Identifier() == ECamSettingItemPhotoQuality ) |
347 else if ( editedItem->Identifier() == ECamSettingItemPhotoQuality ) |
334 { |
348 { |
335 settingValue = iQualityValue; |
349 settingValue = iQualityValue; |
336 } |
350 } |