equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: This class has JNI wrappers for CMMAControl |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <jutils.h> |
|
20 |
|
21 #include "com_nokia_microedition_media_control_ControlImpl.h" |
|
22 #include "cmmaeventsource.h" |
|
23 #include "cmmacontrol.h" |
|
24 |
|
25 /* |
|
26 * Class: com_nokia_microedition_media_control_ControlImpl |
|
27 * Method: _setHandle |
|
28 */ |
|
29 |
|
30 JNIEXPORT void JNICALL Java_com_nokia_microedition_media_control_ControlImpl__1setHandle |
|
31 (JNIEnv* aJni, jclass , jint aEventSource, jint aControlHandle, jobject aControlObject) |
|
32 { |
|
33 CMMAEventSource* eventSource = |
|
34 JavaUnhand< CMMAEventSource >(aEventSource); |
|
35 |
|
36 CMMAControl* control = |
|
37 JavaUnhand< CMMAControl >(aControlHandle); |
|
38 |
|
39 jobject controlObject = aJni->NewWeakGlobalRef(aControlObject); |
|
40 |
|
41 eventSource->ExecuteV(&CMMAControl::StaticSetHandle, |
|
42 control, controlObject); |
|
43 } |
|
44 |
|
45 // END OF FILE |