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 #include <logger.h> |
|
19 |
|
20 #include "cmmasourcestreamevent.h" |
|
21 |
|
22 |
|
23 CMMASourceStreamEvent::CMMASourceStreamEvent( |
|
24 jmethodID aHandleEventMethod, |
|
25 jobject aNotifyObject): |
|
26 CMMAEvent(EReusableEvent), |
|
27 iHandleEventMethod(aHandleEventMethod), |
|
28 iListenerObject(aNotifyObject) |
|
29 { |
|
30 } |
|
31 |
|
32 |
|
33 void CMMASourceStreamEvent::SetLength(TInt aLength) |
|
34 { |
|
35 iLength = aLength; |
|
36 } |
|
37 |
|
38 |
|
39 |
|
40 void CMMASourceStreamEvent::Dispatch(JNIEnv& aJni) |
|
41 { |
|
42 LOG1(EJavaMMAPI, EInfo, "CMMASourceStreamEvent:Dispatch len=%d", iLength); |
|
43 aJni.CallVoidMethod(iListenerObject, |
|
44 iHandleEventMethod, |
|
45 iLength); |
|
46 } |
|
47 |
|
48 // END OF FILE |