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 //#include "mmapiutils.h" |
|
21 |
|
22 |
|
23 #include "com_nokia_microedition_media_control_ControlImpl.h" |
|
24 #include "mmafunctionserver.h" |
|
25 #include "cmmacontrol.h" |
|
26 |
|
27 /* |
|
28 * Class: com_nokia_microedition_media_control_ControlImpl |
|
29 * Method: _setHandle |
|
30 */ |
|
31 |
|
32 JNIEXPORT void JNICALL Java_com_nokia_microedition_media_control_ControlImpl__1setHandle |
|
33 (JNIEnv* aJni, jclass , jint aEventSource, jint aControlHandle, jobject aControlObject) |
|
34 { |
|
35 MMAFunctionServer* eventSource = |
|
36 reinterpret_cast< MMAFunctionServer* >(aEventSource); |
|
37 |
|
38 CMMAControl* control = |
|
39 reinterpret_cast< CMMAControl* >(aControlHandle); |
|
40 jobject controlObject = aJni->NewWeakGlobalRef(aControlObject); |
|
41 |
|
42 eventSource->ExecuteV(&CMMAControl::StaticSetHandle, |
|
43 control, controlObject); |
|
44 } |
|
45 |
|
46 // END OF FILE |
|