javauis/nokiauiapi_qt/javasrc/com/nokia/mj/impl/nokiauiapi/OS.java
author hgs
Mon, 04 Oct 2010 11:29:25 +0300
changeset 78 71ad690e91f5
permissions -rw-r--r--
v2.2.17_1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
78
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
     1
/*******************************************************************************
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
     2
 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
     3
 * All rights reserved. This program and the accompanying materials
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
     4
 * are made available under the terms of the Eclipse Public License v1.0
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
     5
 * which accompanies this distribution, and is available at
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
     6
 * http://www.eclipse.org/legal/epl-v10.html
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
     7
 *
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
     8
 * Contributors:
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
     9
 *     Nokia Corporation - initial implementation
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    10
 *******************************************************************************/
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    11
package com.nokia.mj.impl.nokiauiapi;
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    12
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    13
import org.eclipse.swt.internal.Library;
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    14
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    15
public final class OS
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    16
{
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    17
    static
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    18
    {
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    19
        Library.loadLibrary("javanokiaui");
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    20
    }
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    21
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    22
    native public static final void MTouchFeedback_InstantFeedback(int style);
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    23
    native public static final boolean MTouchFeedback_TouchFeedbackSupported();
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    24
    native public static final void MTouchFeedback_SetFeedbackArea(int controlHandle, int id, int x, int y, int width, int height, int style);
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    25
    native public static final void MTouchFeedback_RemoveFeedbackArea(int controlHandle, int aAreaIndex);
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    26
    native public static final void MTouchFeedback_RemoveFeedbackForControl(int controlHandle);
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    27
    native public static final void MTouchFeedback_MoveFeedbackAreaToFirstPriority(int controlHandle, int id);
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    28
    
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    29
    //softnotification
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    30
    native public static final int createNativePeer(int mideletUid, int notificationID, Object peer);
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    31
    native public static final void destroy(int softNotificationHandle);
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    32
    native public static final int getId(int softNotificationHandle);
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    33
    native public static final int setText(int softNotificationHandle, String primaryText, String secondaryText);
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    34
    native public static final int removeSoftNotification(int softNotificationHandle);
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    35
    native public static final int showSoftNotification(int softNotificationHandle);
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    36
    native public static final int setImagePath(int softNotificationHandle, String imagePath);
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    37
71ad690e91f5 v2.2.17_1
hgs
parents:
diff changeset
    38
}