equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005-2009 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 #include <e32std.h> |
|
19 #include <j2me/jdebug.h> |
|
20 #include "javax_microedition_lcdui_UiEventServerFactory.h" |
|
21 #include "coreuiavkonlcdui.h" |
|
22 |
|
23 |
|
24 JNIEXPORT jint JNICALL |
|
25 Java_javax_microedition_lcdui_UiEventServerFactory__1createUiServer( |
|
26 JNIEnv* /*aJni*/, jobject /*aServer*/, jint aUid) |
|
27 { |
|
28 TUid uid = TUid::Uid(aUid); |
|
29 java::ui::CoreUiAvkonLcdui& avkonLcdui = java::ui::CoreUiAvkonLcdui::getInstance(); |
|
30 |
|
31 java::ui::CoreUiParams coreUiParams; |
|
32 |
|
33 // LCDUI is always started to background. |
|
34 coreUiParams.setBackgroundStart(true); |
|
35 avkonLcdui.ensureInitialized(uid, &coreUiParams); |
|
36 return avkonLcdui.getLcduiSupport().getEventServerHandle(); |
|
37 } |