# HG changeset patch # User Dremov Kirill (Nokia-D-MSW/Tampere) # Date 1268401384 -7200 # Node ID 6aee962f6139a32faa61f856fa7a1c016be4bddd # Parent 35a9006a7fc773f00830995f52a170a79b75f14f Revision: 201007 Kit: 201008 diff -r 35a9006a7fc7 -r 6aee962f6139 voicerecorder/AppSrc/CVRAppUI.cpp --- a/voicerecorder/AppSrc/CVRAppUI.cpp Fri Feb 19 22:53:07 2010 +0200 +++ b/voicerecorder/AppSrc/CVRAppUI.cpp Fri Mar 12 15:43:04 2010 +0200 @@ -28,6 +28,8 @@ #include "CVRRecView.h" #include "MVRSelectionProvider.h" #include "CVRAppUi.h" +#include +#include #include "CVRDocument.h" #include #include "VRConsts.h" @@ -206,6 +208,17 @@ } + /***** check if memory is below min value, if yes, close app*****/ + RFs& fs( CEikonEnv::Static()->FsSession() ); + if (SysUtil::DiskSpaceBelowCriticalLevelL( &fs, 0, VRUtils::MemoDriveL())) + { + HBufC* errorText = StringLoader::LoadLC( R_VR_MEMORY_LOW_STOP_WARNING ); + CAknErrorNote* dlg = new( ELeave ) CAknErrorNote( ETrue ); + dlg->ExecuteLD( *errorText ); + CleanupStack::PopAndDestroy( errorText ); + Exit(); + } + // check memory size end #endif } diff -r 35a9006a7fc7 -r 6aee962f6139 voicerecorder/RecViewSrc/CVRRecView.cpp --- a/voicerecorder/RecViewSrc/CVRRecView.cpp Fri Feb 19 22:53:07 2010 +0200 +++ b/voicerecorder/RecViewSrc/CVRRecView.cpp Fri Mar 12 15:43:04 2010 +0200 @@ -552,6 +552,11 @@ TUid aCustomMessageId, const TDesC8& aCustomMessage) { + // dismiss sound player / file manager if it was active so that recording + // view becomes visible + delete iLaunchService; + iLaunchService = NULL; + iModel->ActivateL(); CAknView::ViewActivatedL(aPrevViewId, aCustomMessageId, aCustomMessage); diff -r 35a9006a7fc7 -r 6aee962f6139 voicerecorder/group/VoiceRecorderApp.mmp --- a/voicerecorder/group/VoiceRecorderApp.mmp Fri Feb 19 22:53:07 2010 +0200 +++ b/voicerecorder/group/VoiceRecorderApp.mmp Fri Mar 12 15:43:04 2010 +0200 @@ -68,6 +68,7 @@ LIBRARY cone.lib LIBRARY euser.lib LIBRARY commonui.lib +LIBRARY sysutil.lib LIBRARY VoiceRecorderRecView.lib LIBRARY VoiceRecorderUtils.lib diff -r 35a9006a7fc7 -r 6aee962f6139 voicerecorder/group/voicerecorder.rss --- a/voicerecorder/group/voicerecorder.rss Fri Feb 19 22:53:07 2010 +0200 +++ b/voicerecorder/group/voicerecorder.rss Fri Mar 12 15:43:04 2010 +0200 @@ -326,6 +326,7 @@ RESOURCE TBUF r_vr_server_error_infonote_label { buf = qtn_vorec_info_server_error; } RESOURCE TBUF r_vr_memory_warning { buf = qtn_memlo_memory_running_out; } RESOURCE TBUF r_vr_memory_mmc_warning { buf = qtn_memlo_mmc_memory_running_out; } +RESOURCE TBUF r_vr_memory_low_stop_warning { buf = qtn_memlo_not_enough_memory; } // Quality strings for UI RESOURCE TBUF r_vorec_quality_mms_optimized { buf = qtn_vorec_quality_mms_optimized; }