cellular/psetnotesui/inc/psuivariationproxy.h
changeset 51 12bc758d6a02
parent 48 78df25012fda
child 53 25b8d29b7c59
equal deleted inserted replaced
48:78df25012fda 51:12bc758d6a02
     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:  
       
    15 *       CPsuiVariationProxy class is proxy class for 
       
    16 *       central repository variation
       
    17 *       (Call waiting/distinguish between not provisioned and not activated).
       
    18 *  
       
    19 *
       
    20 */
       
    21 
       
    22 
       
    23 #ifndef PSUIVARIATIONPROXY_H
       
    24 #define PSUIVARIATIONPROXY_H
       
    25 
       
    26 //  INCLUDES
       
    27 #include <e32base.h>
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CRepository;
       
    31 
       
    32 // CONSTANTS
       
    33 const TUint KCallWaitingDistiquishNotProvisioned = 0x00000001;
       
    34 
       
    35 // CLASS DECLARATION
       
    36 /**
       
    37 *  CPsuiVariationProxy class is proxy class for central repository variation
       
    38 *  @lib psui.lib
       
    39 *  @since 1.0
       
    40 */
       
    41 NONSHARABLE_CLASS ( CPSuiVariationProxy ): public CBase 
       
    42 {
       
    43 public: //constructor & destructor
       
    44 
       
    45     /* Symbian OS 2-phase Constructor. */
       
    46     static CPSuiVariationProxy* NewL();
       
    47     
       
    48     /* Destructor */
       
    49     ~CPSuiVariationProxy();
       
    50     
       
    51 public:
       
    52     /**
       
    53     * Check from member variable 'iFeatures' is the requested feature active.
       
    54     *
       
    55     * @param aFeature is uid for used central repository variable.
       
    56     * @return returns TBool type ETrue/EFalse is current feature enabled or not
       
    57     */
       
    58     
       
    59     TBool FeatureEnabled( TUint aFeature ) const;
       
    60 
       
    61 private:
       
    62     
       
    63     /**
       
    64     * Constructor
       
    65     *
       
    66     * Open CenRep, read data into 'iFeatures' and close CenRep
       
    67     * 
       
    68     */
       
    69     void ConstructL();
       
    70     
       
    71 private:
       
    72     /* Default constructor */
       
    73     CPSuiVariationProxy();
       
    74 private:
       
    75     // Saves cen rep data. Readed in ConstructL()
       
    76     TInt iFeatures;
       
    77     
       
    78 };
       
    79 
       
    80 #endif