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