Revision: 201007 RCL_3
authorDremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 12 Mar 2010 15:43:04 +0200
branchRCL_3
changeset 7 6aee962f6139
parent 5 35a9006a7fc7
child 8 49233e24b2ab
Revision: 201007 Kit: 201008
voicerecorder/AppSrc/CVRAppUI.cpp
voicerecorder/RecViewSrc/CVRRecView.cpp
voicerecorder/group/VoiceRecorderApp.mmp
voicerecorder/group/voicerecorder.rss
--- 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 <sysutil.h>
+#include <StringLoader.h>
 #include "CVRDocument.h"
 #include <featmgr.h>
 #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
 
 		}
--- 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);
--- 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
--- 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; }