--- a/javauis/mmapi_akn/baseline/src/volumecontrol.cpp Wed Jun 09 09:34:07 2010 +0300
+++ b/javauis/mmapi_akn/baseline/src/volumecontrol.cpp Mon Jun 21 15:32:50 2010 +0300
@@ -69,4 +69,33 @@
return error;
}
+/**
+ * Local function which can be used to call CMMAVolumeControl class methods.
+ *
+ * @param aControl CMMAVolumeControl pointer.
+ */
+LOCAL_C void SetProfileBasedMutingL(CMMAVolumeControl* aControl)
+{
+ aControl->SetProfilesBasedSoundMutingL();
+}
+
+/*
+ * Class: com_nokia_microedition_media_control_VolumeControl
+ * Method: _setProfilesBasedSoundMuting
+ * Signature: (I)V
+ */
+
+JNIEXPORT int JNICALL Java_com_nokia_microedition_media_control_VolumeControl__1setProfilesBasedSoundMuting
+(JNIEnv *, jclass , jint aEventSource, jint aVolumeControl)
+{
+ CMMAEventSource* eventSource =
+ JavaUnhand< CMMAEventSource >(aEventSource);
+
+ CMMAVolumeControl* volumeControl =
+ JavaUnhand< CMMAVolumeControl >(aVolumeControl);
+
+ TInt error = eventSource->ExecuteTrap(&SetProfileBasedMutingL,volumeControl);
+ return error;
+}
+
// END OF FILE