contextframework/cfwplugins/PSStateSourcePlugIn/inc/psstatemapperint.h
changeset 0 2e3d3ce01487
equal deleted inserted replaced
-1:000000000000 0:2e3d3ce01487
       
     1 /*
       
     2 * Copyright (c) 2006-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:  CPSStateMapperInt class declaration.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_PSSTATEMAPPERINT_H
       
    21 #define C_PSSTATEMAPPERINT_H
       
    22 
       
    23 #include <badesca.h>
       
    24 
       
    25 #include "psstatemapper.h"
       
    26 #include "intnamepair.h"
       
    27 
       
    28 /**
       
    29 * P&S state mapper for int type keys.
       
    30 * 
       
    31 * @lib -
       
    32 * @since S60 4.0
       
    33 */
       
    34 NONSHARABLE_CLASS( CPSStateMapperInt ): public CPSStateMapper
       
    35     {
       
    36     public:
       
    37     
       
    38         /**
       
    39         * Creates a new P&S mapper.
       
    40         * 
       
    41         * @since S60 40
       
    42         * @param aParams P&S state mapper construction parameters.
       
    43         * @return CPSStateMapperInt*
       
    44         */
       
    45         static CPSStateMapperInt* NewL( MCFContextInterface& aCF );
       
    46         static CPSStateMapperInt* NewLC( MCFContextInterface& aCF );
       
    47             
       
    48         // Destructor
       
    49         ~CPSStateMapperInt();
       
    50         
       
    51     public:
       
    52     	TInt MapperType() const;
       
    53     	
       
    54     	
       
    55     	void AddMappingL(TInt aPSValue, const TDesC& aContextValue);
       
    56         
       
    57         // from PsStateMapper
       
    58 		void Define();
       
    59 		void InitializeL();
       
    60         
       
    61     private: // From base classes
       
    62     
       
    63         // @see CPSStateMapper
       
    64         void ProperyChangedL();
       
    65         
       
    66     private:
       
    67     
       
    68         CPSStateMapperInt( MCFContextInterface& aCF );
       
    69         
       
    70         
       
    71         static TInt StartCallback(TAny* aPtr);
       
    72         void DoStart();
       
    73         
       
    74     private: // Data
       
    75     
       
    76         RIntNamePointerArray iIntNameMappings;
       
    77         
       
    78         CAsyncCallBack *iStartCB;
       
    79     };
       
    80 
       
    81 
       
    82 #endif