voipplugins/ipapputils/inc/cipappphoneutils.h
branchRCL_3
changeset 22 d38647835c2e
parent 0 a4daefaec16c
equal deleted inserted replaced
21:f742655b05bf 22:d38647835c2e
       
     1 /*
       
     2 * Copyright (c) 2007 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:  Utility class to phone functionality.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_IPAPPPHONEUTILS_H
       
    20 #define C_IPAPPPHONEUTILS_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 const TUint KSVPMaxTerminalTypeLength = 64;
       
    25 const TUint KSVPPhoneModelLength = 20;
       
    26 
       
    27 class RFs;
       
    28 
       
    29 /**
       
    30  *  Utility class to phone functionality.
       
    31  *
       
    32  *  @code
       
    33  *        TBuf<KSVPMaxTerminalTypeLength> terminalType;
       
    34  *      CIpAppPhoneUtils* phoneUtils = CIpAppPhoneUtils::NewL();
       
    35  *      phoneUtils->GetTerminalTypeL( terminalType );
       
    36  *      delete phoneUtils;
       
    37  *  @endcode
       
    38  *
       
    39  *  @lib ipapputils.lib
       
    40  *  @since S60 v3.2 
       
    41  */
       
    42 NONSHARABLE_CLASS( CIpAppPhoneUtils ) : public CBase
       
    43     {
       
    44     public:
       
    45 
       
    46         /**
       
    47          * Two-phased constructor.
       
    48          */
       
    49         IMPORT_C static CIpAppPhoneUtils* NewL();
       
    50         /**
       
    51          * Two-phased constructor.
       
    52          */
       
    53         IMPORT_C static CIpAppPhoneUtils* NewLC();
       
    54 
       
    55         /**
       
    56         * Destructor.
       
    57         */
       
    58         IMPORT_C virtual ~CIpAppPhoneUtils();
       
    59         
       
    60         /**
       
    61         * Get the terminal type.
       
    62         * @since Series60 5.0
       
    63         * @param aTerminalType terminal type
       
    64         */
       
    65         IMPORT_C void GetTerminalTypeL( TDes& aTerminalType ) const;
       
    66 
       
    67         /**
       
    68         * Get the terminal type.
       
    69         * @since Series60 5.0
       
    70         * @param aTerminalType terminal type
       
    71         * @param aFs file session
       
    72         */
       
    73         IMPORT_C void GetTerminalTypeL( TDes& aTerminalType, RFs& aFs ) const;
       
    74         
       
    75         
       
    76         /**
       
    77         * Get the phone model.
       
    78         * @since Series 60 3.2
       
    79         * @param aPhoneModel phone model.
       
    80         */
       
    81         IMPORT_C void GetPhoneModelL( TDes& aPhoneModel ) const;
       
    82 
       
    83         /**
       
    84         * Get the phone model.
       
    85         * @since Series 60 3.2
       
    86         * @param aPhoneModel phone model.
       
    87         * @param aFs file session
       
    88         */
       
    89         IMPORT_C void GetPhoneModelL( TDes& aPhoneModel, RFs& aFs ) const;
       
    90         
       
    91 
       
    92     private:
       
    93 
       
    94         /**
       
    95          * C++ default constructor.
       
    96          */
       
    97         CIpAppPhoneUtils();
       
    98         
       
    99     private: // data
       
   100 
       
   101     };
       
   102 
       
   103 #endif // C_IPAPPPHONEUTILS_H