javauis/mmapi_akn/baseline/src/volumecontrol.cpp
branchRCL_3
changeset 46 4376525cdefb
parent 19 04becd199f91
equal deleted inserted replaced
34:71c436fe3ce0 46:4376525cdefb
    67         return level;
    67         return level;
    68     }
    68     }
    69     return error;
    69     return error;
    70 }
    70 }
    71 
    71 
       
    72 /**
       
    73  * Local function which can be used to call CMMAVolumeControl class methods.
       
    74  *
       
    75  * @param aControl CMMAVolumeControl pointer.
       
    76  */
       
    77 LOCAL_C void SetProfileBasedMutingL(CMMAVolumeControl* aControl)
       
    78 {
       
    79     aControl->SetProfilesBasedSoundMutingL();
       
    80 }
       
    81 
       
    82 /*
       
    83  * Class:     com_nokia_microedition_media_control_VolumeControl
       
    84  * Method:    _setProfilesBasedSoundMuting
       
    85  * Signature: (I)V
       
    86  */
       
    87 
       
    88 JNIEXPORT int JNICALL Java_com_nokia_microedition_media_control_VolumeControl__1setProfilesBasedSoundMuting
       
    89 (JNIEnv *, jclass , jint aEventSource, jint aVolumeControl)
       
    90 {
       
    91     CMMAEventSource* eventSource =
       
    92         JavaUnhand< CMMAEventSource >(aEventSource);
       
    93 
       
    94     CMMAVolumeControl* volumeControl =
       
    95         JavaUnhand< CMMAVolumeControl >(aVolumeControl);
       
    96 
       
    97     TInt error = eventSource->ExecuteTrap(&SetProfileBasedMutingL,volumeControl);
       
    98     return error;
       
    99 }
       
   100 
    72 //  END OF FILE
   101 //  END OF FILE