javaextensions/wma/mms/src/mmspropertyretrieverjni.cpp
branchRCL_3
changeset 19 04becd199f91
equal deleted inserted replaced
16:f5050f1da672 19:04becd199f91
       
     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:  ?Description
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #include "logger.h"
       
    20 #include "com_nokia_mj_impl_mms_MmsPropertyRetriever.h"
       
    21 #include "mmspropertyretriever.h"
       
    22 
       
    23 using namespace java::wma;
       
    24 
       
    25 /*
       
    26  * Class:     com_nokia_mj_impl_mms_MmsRetriever
       
    27  * Method:    _getMMSC
       
    28  * Signature: ()Ljava/lang/String;
       
    29  */
       
    30 JNIEXPORT jstring JNICALL Java_com_nokia_mj_impl_mms_MmsPropertyRetriever__1getMMSC
       
    31 (JNIEnv* aEnv, jclass)
       
    32 {
       
    33     JELOG2(EWMA);
       
    34     jstring mmsc = MmsPropertyRetriever::retrieveMsgCenter(*aEnv);
       
    35     return mmsc;
       
    36 }
       
    37 
       
    38 /*
       
    39  * Class:     com_nokia_mj_impl_mms_MmsRetriever
       
    40  * Method:    _maxMMSSize
       
    41  * Signature: ()I
       
    42  */
       
    43 JNIEXPORT jint JNICALL Java_com_nokia_mj_impl_mms_MmsPropertyRetriever__1maxMMSSize
       
    44 (JNIEnv* , jclass)
       
    45 {
       
    46     JELOG2(EWMA);
       
    47     jint mmsMaxSize=NULL;
       
    48     mmsMaxSize = MmsPropertyRetriever::retrieveMaxMMSSize();
       
    49     return mmsMaxSize;
       
    50 }
       
    51 
       
    52 /*
       
    53  * Class:     com_nokia_mj_impl_mms_MmsRetriever
       
    54  * Method:    _isValidEncoding
       
    55  * Signature: (Ljava/lang/String;)Z
       
    56  */
       
    57 JNIEXPORT jboolean JNICALL Java_com_nokia_mj_impl_mms_MmsPropertyRetriever__1isValidEncoding
       
    58 (JNIEnv* aEnv , jclass ,jstring aContentEncoding)
       
    59 {
       
    60     JELOG2(EWMA);
       
    61     return MmsPropertyRetriever::isValidEncoding(*aEnv,aContentEncoding);
       
    62 }
       
    63