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