javaextensions/comm/inc.s60/nativedynamicproperty.h
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 #ifndef NATIVEDYNAMICPROPERTY_H
       
    19 #define NATIVEDYNAMICPROPERTY_H
       
    20 
       
    21 #include "logger.h"
       
    22 #include <jni.h>
       
    23 
       
    24 namespace java
       
    25 {
       
    26 
       
    27 /**
       
    28  * This class is used to implement the system property functionality for commconnection.
       
    29  * The DynamicPropertyHandler java class, calls the method of this class to get a list of all
       
    30  * available comm ports.
       
    31  */
       
    32 
       
    33 class NativeDynamicProperty
       
    34 {
       
    35 public:
       
    36 
       
    37     /**
       
    38      * getavailCommPort is called by DynamicPropertyHandler java class to get the list of avail port.
       
    39      *
       
    40      * Example return value: "COM1,COM2,IR1,USB1,USB2,BT1,BT2.."
       
    41      * @return the list of comma separated logical ports.
       
    42      */
       
    43     jstring getavailCommPort(JNIEnv& aJNi);
       
    44 
       
    45 };
       
    46 
       
    47 } // end namespace
       
    48 #endif // NATIVEDYNAMICPROPERTY_H