1 /* |
|
2 * Copyright (c) 2010 Ixonos Plc. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - Initial contribution |
|
11 * |
|
12 * Contributors: |
|
13 * Ixonos Plc |
|
14 * |
|
15 * Description: |
|
16 * Common settings. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 |
|
22 // INCLUDES |
|
23 // System includes |
|
24 #include <centralrepository.h> |
|
25 #include <MmsEngineDomainCRKeys.h> |
|
26 #include <MPMediaPlayerSettings.h> |
|
27 #include <e32property.h> |
|
28 |
|
29 // User includes |
|
30 #include "VeiVideoEditorSettings.h" |
|
31 #include "VideoEditorCommon.h" |
|
32 #include "VideoEditorDebugUtils.h" |
|
33 |
|
34 |
|
35 // CONSTANTS |
|
36 |
|
37 EXPORT_C void CVeiVideoEditorSettings::GetMediaPlayerVolumeLevelL( TInt& aVolumeLevel ) |
|
38 { |
|
39 LOG(KVideoEditorLogFile, "CVeiVideoEditorSettings::GetMediaPlayerVolumeLevelL(): In"); |
|
40 CMPMediaPlayerSettings* mpSettings = CMPMediaPlayerSettings::NewL(); |
|
41 CleanupStack::PushL( mpSettings ); |
|
42 |
|
43 aVolumeLevel = mpSettings->VolumeLevelL(); |
|
44 |
|
45 CleanupStack::PopAndDestroy( mpSettings ); |
|
46 LOG(KVideoEditorLogFile, "CVeiVideoEditorSettings::GetMediaPlayerVolumeLevelL(): Out"); |
|
47 } |
|
48 |
|
49 EXPORT_C void CVeiVideoEditorSettings::SetMediaPlayerVolumeLevelL( TInt aVolumeLevel ) |
|
50 { |
|
51 LOG(KVideoEditorLogFile, "CVeiVideoEditorSettings::SetMediaPlayerVolumeLevelL(): In"); |
|
52 |
|
53 CMPMediaPlayerSettings* mpSettings = CMPMediaPlayerSettings::NewL(); |
|
54 CleanupStack::PushL( mpSettings ); |
|
55 |
|
56 mpSettings->SetVolumeLevelL( aVolumeLevel ); |
|
57 |
|
58 CleanupStack::PopAndDestroy( mpSettings ); |
|
59 LOG(KVideoEditorLogFile, "CVeiVideoEditorSettings::SetMediaPlayerVolumeLevelL(): Out"); |
|
60 } |
|
61 |
|
62 EXPORT_C void CVeiVideoEditorSettings::GetMaxMmsSizeL( TInt& aMaxMmsSize ) |
|
63 { |
|
64 LOG(KVideoEditorLogFile, "CVeiVideoEditorSettings::GetMaxMmsSizeL(): In"); |
|
65 |
|
66 CRepository* repository = CRepository::NewL(KCRUidMmsEngine); |
|
67 repository->Get(KMmsEngineMaximumSendSize, aMaxMmsSize); |
|
68 LOGFMT(KVideoEditorLogFile, "CVeiVideoEditorSettings::GetMaxMmsSizeL() 1, KMmsEngineMaximumSendSize:%d", aMaxMmsSize); |
|
69 delete repository; |
|
70 |
|
71 LOG(KVideoEditorLogFile, "CVeiVideoEditorSettings::GetMaxMmsSizeL(): Out"); |
|
72 } |
|
73 |
|
74 // End of File |
|