uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/stubs/s_vimpstsettingsstore.cpp
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 //  INCLUDES
       
    19 #include <e32base.h>
       
    20 #include "s_vimpstsettingsstoreimp.h"
       
    21 
       
    22 /**
       
    23  *  vimpst settings API class
       
    24  *
       
    25  *  Main class of managing vimpst settings
       
    26  *
       
    27  *  @code example code of how to get/set a value to the setting item in cenrep 
       
    28  *  MVIMPSTSettingsStore* obj = CVIMPSTUiSettingsStoreFactory::NewL();
       
    29  *  TInt value = 1;
       
    30  *  TInt err = obj->Set(serviceId, ETOUDlgOff, value );
       
    31  *  similarly for getting the value
       
    32  *  obj->Get(serviceId, ETOUDlgOff, value);
       
    33  *  @lib vimpstsettingsstore.lib
       
    34  *  @since S60 v5.0
       
    35  */
       
    36 
       
    37 // -----------------------------------------------------------------------------
       
    38 // CVIMPSTSettingsStoreFactory::NewL
       
    39 // Create an instance of the class CVIMPSTSettingsStoreImp 
       
    40 // -----------------------------------------------------------------------------
       
    41 //
       
    42 EXPORT_C MVIMPSTSettingsStore* CVIMPSTSettingsStore::NewL()
       
    43     {    
       
    44     MVIMPSTSettingsStore* self = CVIMPSTSettingsStore::NewLC();
       
    45     CleanupStack::Pop( self );
       
    46     return self;
       
    47     }
       
    48 
       
    49 // -----------------------------------------------------------------------------
       
    50 // CVIMPSTEngineFactory::Destructor
       
    51 // Release the singelton
       
    52 // -----------------------------------------------------------------------------
       
    53 //
       
    54 CVIMPSTSettingsStore::~CVIMPSTSettingsStore()
       
    55     {
       
    56     CVIMPSTSettingsStoreImp::Release();
       
    57     }
       
    58 // -----------------------------------------------------------------------------
       
    59 // CVIMPSTSettingsStoreFactory::NewLC
       
    60 // Create an instance of the class CVIMPSTSettingsStoreImp 
       
    61 // -----------------------------------------------------------------------------
       
    62 //
       
    63 
       
    64 EXPORT_C MVIMPSTSettingsStore* CVIMPSTSettingsStore::NewLC()
       
    65     {    
       
    66     MVIMPSTSettingsStore* self = CVIMPSTSettingsStoreImp::InitialiseLibraryL();
       
    67     CleanupDeletePushL ( self );
       
    68     return  self;
       
    69     }
       
    70 
       
    71 
       
    72 // End of file