javauis/mmapi_qt/utils/inc/mmapiutils.h
branchRCL_3
changeset 18 9ac0a0a7da70
parent 17 0fd27995241b
child 19 71c436fe3ce0
equal deleted inserted replaced
17:0fd27995241b 18:9ac0a0a7da70
     1 #ifndef MMAPIUTILS_H
       
     2 #define MMAPIUTILS_H
       
     3 #include "jni.h"
       
     4 #include "e32base.h"
       
     5 #include "BADESCA.H"
       
     6 
       
     7 class MMAPIUtils
       
     8 {
       
     9 public:
       
    10     
       
    11     static TInt CopyToJava(JNIEnv& aJni, const TDesC8& aNativeBuffer,
       
    12                                     jbyteArray aJavaBuffer, TInt aOffset, TInt aLength);  
       
    13     static jstring CreateJavaString(JNIEnv& aJni, const TDesC16& aString);
       
    14 
       
    15     static jobjectArray CopyToNewJavaStringArrayL(JNIEnv& aJni, const CDesCArray& aNativeArray);
       
    16     
       
    17     static void AddToJavaStringArrayL(JNIEnv& aJni, jobjectArray& aContainer, TInt aPosition, const TDesC& aString);
       
    18 };
       
    19 
       
    20 #endif // MMAPIUTILS_H