diff -r 000000000000 -r 951a5db380a0 videditor/VideoEditorCommon/src/VeiVideoEditorSettings.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/videditor/VideoEditorCommon/src/VeiVideoEditorSettings.cpp Fri Jan 29 14:08:33 2010 +0200 @@ -0,0 +1,74 @@ +/* +* Copyright (c) 2010 Ixonos Plc. +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - Initial contribution +* +* Contributors: +* Ixonos Plc +* +* Description: +* Common settings. +* +*/ + + + +// INCLUDES +// System includes +#include +#include +#include +#include + +// User includes +#include "VeiVideoEditorSettings.h" +#include "VideoEditorCommon.h" +#include "VideoEditorDebugUtils.h" + + +// CONSTANTS + +EXPORT_C void CVeiVideoEditorSettings::GetMediaPlayerVolumeLevelL( TInt& aVolumeLevel ) + { + LOG(KVideoEditorLogFile, "CVeiVideoEditorSettings::GetMediaPlayerVolumeLevelL(): In"); + CMPMediaPlayerSettings* mpSettings = CMPMediaPlayerSettings::NewL(); + CleanupStack::PushL( mpSettings ); + + aVolumeLevel = mpSettings->VolumeLevelL(); + + CleanupStack::PopAndDestroy( mpSettings ); + LOG(KVideoEditorLogFile, "CVeiVideoEditorSettings::GetMediaPlayerVolumeLevelL(): Out"); + } + +EXPORT_C void CVeiVideoEditorSettings::SetMediaPlayerVolumeLevelL( TInt aVolumeLevel ) + { + LOG(KVideoEditorLogFile, "CVeiVideoEditorSettings::SetMediaPlayerVolumeLevelL(): In"); + + CMPMediaPlayerSettings* mpSettings = CMPMediaPlayerSettings::NewL(); + CleanupStack::PushL( mpSettings ); + + mpSettings->SetVolumeLevelL( aVolumeLevel ); + + CleanupStack::PopAndDestroy( mpSettings ); + LOG(KVideoEditorLogFile, "CVeiVideoEditorSettings::SetMediaPlayerVolumeLevelL(): Out"); + } + +EXPORT_C void CVeiVideoEditorSettings::GetMaxMmsSizeL( TInt& aMaxMmsSize ) + { + LOG(KVideoEditorLogFile, "CVeiVideoEditorSettings::GetMaxMmsSizeL(): In"); + + CRepository* repository = CRepository::NewL(KCRUidMmsEngine); + repository->Get(KMmsEngineMaximumSendSize, aMaxMmsSize); + LOGFMT(KVideoEditorLogFile, "CVeiVideoEditorSettings::GetMaxMmsSizeL() 1, KMmsEngineMaximumSendSize:%d", aMaxMmsSize); + delete repository; + + LOG(KVideoEditorLogFile, "CVeiVideoEditorSettings::GetMaxMmsSizeL(): Out"); + } + +// End of File