uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/stubs/s_vimpstsettingsstoreimp.h
changeset 0 5e5d6b214f4f
equal deleted inserted replaced
-1:000000000000 0:5e5d6b214f4f
       
     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:  vimpst settings store definitions and repository transactions.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __CVIMPSTSETTINGSSTOREIMP_H
       
    19 #define __CVIMPSTSETTINGSSTOREIMP_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <e32base.h>
       
    23 #include "s_vimpstsettingsstore.h"
       
    24 
       
    25 NONSHARABLE_CLASS( CVIMPSTSettingsStoreImp):public CBase,                                            
       
    26                                             public MVIMPSTSettingsStore
       
    27 {
       
    28 
       
    29     public: // Constructors and destructor
       
    30 
       
    31         /**
       
    32          * Initialises the Library
       
    33          */
       
    34         static MVIMPSTSettingsStore* InitialiseLibraryL();
       
    35 
       
    36         /**
       
    37          * Release the resources allocated 
       
    38          */
       
    39         static void Release();
       
    40         
       
    41         /**
       
    42          * Destructors.
       
    43          */
       
    44         virtual ~CVIMPSTSettingsStoreImp();
       
    45         
       
    46         /**
       
    47          * Peforms Get/Set operation in the cenrep
       
    48          * @param aServiceId, id if the service for which settings are get/set      
       
    49          * @param aSettingItemName, setting item name 
       
    50          * @param aBuffer, variable to set/get the value
       
    51          * @return TInt, used as error passing value.  
       
    52          */  
       
    53        TInt SetL(TUint32 aServiceId, TSettingItemName aSettingItemNAme, const TDesC8& aBuffer ) ;
       
    54        
       
    55        TInt GetL(TUint32 aServiceId, TSettingItemName aSettingItemNAme, const TDesC8& aBuffer ) ;
       
    56             
       
    57         
       
    58     private:        
       
    59         /**
       
    60          * Two-phased constructor.
       
    61          */
       
    62         static MVIMPSTSettingsStore* NewL();
       
    63         
       
    64         /**
       
    65          * Performs the 2nd phase of construction.
       
    66          */
       
    67         void ConstructL();
       
    68         
       
    69     
       
    70     };
       
    71 
       
    72 #endif //__CVIMPSTSETTINGSSTOREIMP_H