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 is used to post events to the java. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include <jdebug.h> |
|
21 |
|
22 #include "cmmaevent.h" |
|
23 |
|
24 CMMAEvent::CMMAEvent(jobject aNotifyObject, |
|
25 jmethodID aHandleEventMethod, |
|
26 TDisposability aDisposable): |
|
27 CJavaEvent< CMMAEventSource >(aDisposable), |
|
28 iListenerObject(aNotifyObject), |
|
29 iHandleEventMethod(aHandleEventMethod) |
|
30 { |
|
31 } |
|
32 |
|
33 |
|
34 CMMAEvent::CMMAEvent(TDisposability aDisposable): |
|
35 CJavaEvent< CMMAEventSource >(aDisposable) |
|
36 { |
|
37 } |
|
38 |
|
39 |
|
40 void CMMAEvent::SetEventData(TInt aEventData) |
|
41 { |
|
42 iEventData = aEventData; |
|
43 } |
|
44 |
|
45 |
|
46 // from CJavaEvent |
|
47 void CMMAEvent::Dispatch(JNIEnv& aJni) |
|
48 { |
|
49 DEBUG_INT("MMA::CMMAEvent::Dispatch iEventData=%d", iEventData); |
|
50 |
|
51 aJni.CallVoidMethod(iListenerObject, |
|
52 iHandleEventMethod, |
|
53 iEventData); |
|
54 } |
|
55 |
|
56 // END OF FILE |