equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "CJavaM3GEventSource.h" |
|
20 #include <jdebug.h> |
|
21 |
|
22 #include <jni.h> |
|
23 #include <mevents.h> |
|
24 |
|
25 |
|
26 extern "C" TInt initM3GEventSourceL(JNIEnv& aJni,jobject aPeer,TJavaEventServer aServer) |
|
27 { |
|
28 return CJavaM3GEventSource::NewL(aJni, aPeer, aServer); |
|
29 } |
|
30 |
|
31 TInt CJavaM3GEventSource::NewL(JNIEnv& aJni,jobject aPeer,TJavaEventServer aServer) |
|
32 { |
|
33 |
|
34 CJavaM3GEventSource* self = new(ELeave) CJavaM3GEventSource(); |
|
35 CleanupStack::PushL(self); |
|
36 self->ConstructL(aJni, aPeer, aServer); |
|
37 CleanupStack::Pop(self); |
|
38 |
|
39 return JavaMakeHandle(self); |
|
40 } |
|
41 |
|
42 |
|
43 |
|
44 CJavaM3GEventSource::CJavaM3GEventSource() |
|
45 { |
|
46 } |
|
47 |
|
48 |
|
49 CJavaM3GEventSource::~CJavaM3GEventSource() |
|
50 { |
|
51 } |
|
52 |
|
53 |
|
54 void CJavaM3GEventSource::ConstructL(JNIEnv& aJni,jobject aPeer,TJavaEventServer aServer) |
|
55 { |
|
56 CJavaEventSourceBase::ConstructL(aJni, aPeer, aServer); |
|
57 } |
|
58 |
|
59 |
|
60 |