javaextensions/wma/mms/src/mmspropertyretriever.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:  ?Description
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #include <jni.h>
       
    20 
       
    21 /**
       
    22  * CJavaMmsRetriever is an abstract method that defines
       
    23  * the interface methods that are to be defined by the
       
    24  * OS Specific Class.
       
    25  */
       
    26 namespace java
       
    27 {
       
    28 namespace wma
       
    29 {
       
    30 
       
    31 class MmsPropertyRetriever
       
    32 {
       
    33 
       
    34 public:
       
    35 
       
    36     /**
       
    37      * Gets the MMSC of the Device.
       
    38      * @param aJni - jni interface pointer
       
    39      */
       
    40     static jstring retrieveMsgCenter(JNIEnv& aJni);
       
    41     /*
       
    42      * CJavaMmsRetriever::isValidEncoding
       
    43      * Checks if the provided parameter points to a valid encoding which
       
    44      * could be used to encode a certain part/attachment of a multimedia
       
    45      * message.
       
    46      * @param aJni - jni interface pointer
       
    47      * @param encoding - encoding type
       
    48      */
       
    49     static bool isValidEncoding(JNIEnv& aJni, jstring encoding);
       
    50     /*
       
    51      * CJavaMmsRetriever::retrieveMaxMMSSize
       
    52      * Retrieves the maximum size of a multimedia message which can be
       
    53      * sent/received .
       
    54      */
       
    55     static int retrieveMaxMMSSize();
       
    56 };
       
    57 
       
    58 } //namespace wma
       
    59 } //namespace java