Revision: 201010 RCL_3
authorDremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 31 Mar 2010 21:35:17 +0300
branchRCL_3
changeset 9 45ab7373901d
parent 8 49233e24b2ab
child 10 bb90e4148332
Revision: 201010 Kit: 201013
package_definition.xml
voicerecorder/RecViewSrc/CVRRecViewContainer.cpp
--- a/package_definition.xml	Mon Mar 15 12:40:50 2010 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,27 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<SystemDefinition schema="3.0.0">
-  <package id="voicerec" name="Voice Recorder Apps">
-    <collection id="voicerecorder" name="Voice Recorder">
-      <component id="voicerecordergsplugin" filter="s60" name="Voice Recorder GS Plugin" class="plugin">
-        <!-- <unit bldFile="voicerecorder/gsplugin/group"/> -->
-      </component>
-      <component id="voicerecorder_help" filter="s60" name="Voice Recorder Help">
-        <unit bldFile="voicerecorder/help/group"/>
-      </component>
-      <component id="voicerecorder_build" filter="s60" name="Voice Recorder Build">
-        <unit bldFile="voicerecorder/group"/>
-      </component>
-    </collection>
-    <collection id="voicerec_info" name="Voice Recorder Apps Info">
-      <component id="voicerec_test" filter="s60" purpose="development" name="Voice Recorder Apps Test">
-		<!-- should this be uncommented? -->
-        <!-- <unit bldFile="tsrc/group"/> -->
-      </component>
-      <component id="voicerec_plat" filter="s60" name="Voice Recorder Apps Platform Interfaces" class="api">
-        <unit bldFile="voicerec_plat/group"/>
-			<!-- can only have one unit, need to #include the latter from the former -->
-        <unit bldFile="voicerec_plat/new_file_service_api/tsrc/group"/>
-      </component>
-    </collection>
-  </package>
-</SystemDefinition>
--- a/voicerecorder/RecViewSrc/CVRRecViewContainer.cpp	Mon Mar 15 12:40:50 2010 +0200
+++ b/voicerecorder/RecViewSrc/CVRRecViewContainer.cpp	Wed Mar 31 21:35:17 2010 +0300
@@ -681,19 +681,19 @@
 							iVolumeChangeObserver->SetVolume( newValue, KVRMaxVolumeSteps );
 							}
 
-						// determine if the volume was already at either end
-						// (of the scale)
-						// play a system sound in that case.
-						if ( prevLevel == control->Value() )
+						TInt sid( EAvkonSIDStandardKeyClick );
+
+						if ( prevLevel <= KVRVolumeControlMin )
 							{
-							TInt sid( EAvkonSIDVolumeMaxTone );
-							if ( prevLevel == 1 )
-								{
-								sid = EAvkonSIDVolumeMinTone;
-								}
-							appUi->KeySounds()->PlaySound( sid );
-							User::Leave(KErrTooBig);
-							}	
+							sid = EAvkonSIDVolumeMinTone;
+							}
+						else if ( prevLevel >= KVRVolumeControlMax )
+							{
+							sid = EAvkonSIDVolumeMaxTone;
+							}
+						appUi->KeySounds()->PlaySound( sid );
+						User::Leave(KErrTooBig);
+						
  				    }
 				else if(iActiveVolumeControl == NULL)
 					{