javaextensions/pim/jni/inc/pimutils.h
changeset 21 2a9601315dfc
equal deleted inserted replaced
18:e8e63152f320 21:2a9601315dfc
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Tools for PIM JNI wrappers.
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef PIMUTILS_H
       
    20 #define PIMUTILS_H
       
    21 
       
    22 //  INCLUDE FILES
       
    23 #include <jni.h>
       
    24 #include <badesca.h>
       
    25 /**
       
    26  * Sets an error code to the first element of given Java int array.
       
    27  *
       
    28  * @param aJniEnv Pointer to JNI environment.
       
    29  * @param aErrorTo Java int array, where to put the error code.
       
    30  * @param aErrorFrom Error code.
       
    31  *
       
    32  * @par Notes:
       
    33  * @li The function panics if the array does not have at least one element.
       
    34  */
       
    35 void SetJavaErrorCode(JNIEnv* aJniEnv, jintArray aErrorTo,
       
    36                       const TInt& aErrorFrom);
       
    37 
       
    38 #endif // PIMUTILS_H
       
    39 // End of File