srsf/devasr/src/devasrcenrep.h
branchRCL_3
changeset 19 e36f3802f733
parent 0 bf1d17376201
equal deleted inserted replaced
18:cad71a31b7fc 19:e36f3802f733
       
     1 /*
       
     2 * Copyright (c) 2006 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:  CenRep handling for DevASR
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef DEVASRCENREP_H
       
    20 #define DEVASRCENREP_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <e32base.h>
       
    24 #include <centralrepository.h>
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 * Playback volume CenRep handler for DevAsr
       
    30 */
       
    31 NONSHARABLE_CLASS( CDevAsrCenRep ) : public CBase
       
    32     {
       
    33     public:  // Constructors and destructor
       
    34         
       
    35         /**
       
    36         * Two-phased constructor.
       
    37         */
       
    38         static CDevAsrCenRep* NewL();
       
    39         
       
    40         /**
       
    41         * Destructor.
       
    42         */
       
    43         virtual ~CDevAsrCenRep();
       
    44         
       
    45     public: // New functions
       
    46 
       
    47         /**
       
    48         * Returns the current rejection setting from CenRep.
       
    49         * If nothing is found (or error occurs), maximum volume will be returned.
       
    50         * Volume setting is scaled to 0..aMaxVolume
       
    51         *
       
    52         * @param "TInt aMaxVolume" Maximum volume
       
    53         * @return Volume setting read from CenRep
       
    54         */    
       
    55         TInt RejectionValue();
       
    56 
       
    57     public: // Functions from base classes
       
    58        
       
    59     private:
       
    60         
       
    61         /**
       
    62         * C++ default constructor.
       
    63         */
       
    64         CDevAsrCenRep();
       
    65         
       
    66         /**
       
    67         * By default Symbian 2nd phase constructor is private.
       
    68         */
       
    69         void ConstructL();
       
    70         
       
    71         // Prohibit copy constructor
       
    72         CDevAsrCenRep( const CDevAsrCenRep& );
       
    73         // Prohibit assigment operator
       
    74         CDevAsrCenRep& operator=( const CDevAsrCenRep& );
       
    75         
       
    76     private: // Data
       
    77 
       
    78         // Central Repository
       
    79         CRepository* iRepository;
       
    80 
       
    81     };
       
    82     
       
    83 #endif // DEVASRCENREP_H
       
    84     
       
    85 // End of File