diff -r 000000000000 -r 5e5d6b214f4f uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/stubs/s_vimpstsettingsstore.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uiservicetab/vimpstengine/tsrc/vimpstengine_ut/src/stubs/s_vimpstsettingsstore.cpp Tue Feb 02 10:12:18 2010 +0200 @@ -0,0 +1,72 @@ +/* +* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: vimpst settings store definitions and repository transactions. +* +*/ + +// INCLUDES +#include +#include "s_vimpstsettingsstoreimp.h" + +/** + * vimpst settings API class + * + * Main class of managing vimpst settings + * + * @code example code of how to get/set a value to the setting item in cenrep + * MVIMPSTSettingsStore* obj = CVIMPSTUiSettingsStoreFactory::NewL(); + * TInt value = 1; + * TInt err = obj->Set(serviceId, ETOUDlgOff, value ); + * similarly for getting the value + * obj->Get(serviceId, ETOUDlgOff, value); + * @lib vimpstsettingsstore.lib + * @since S60 v5.0 + */ + +// ----------------------------------------------------------------------------- +// CVIMPSTSettingsStoreFactory::NewL +// Create an instance of the class CVIMPSTSettingsStoreImp +// ----------------------------------------------------------------------------- +// +EXPORT_C MVIMPSTSettingsStore* CVIMPSTSettingsStore::NewL() + { + MVIMPSTSettingsStore* self = CVIMPSTSettingsStore::NewLC(); + CleanupStack::Pop( self ); + return self; + } + +// ----------------------------------------------------------------------------- +// CVIMPSTEngineFactory::Destructor +// Release the singelton +// ----------------------------------------------------------------------------- +// +CVIMPSTSettingsStore::~CVIMPSTSettingsStore() + { + CVIMPSTSettingsStoreImp::Release(); + } +// ----------------------------------------------------------------------------- +// CVIMPSTSettingsStoreFactory::NewLC +// Create an instance of the class CVIMPSTSettingsStoreImp +// ----------------------------------------------------------------------------- +// + +EXPORT_C MVIMPSTSettingsStore* CVIMPSTSettingsStore::NewLC() + { + MVIMPSTSettingsStore* self = CVIMPSTSettingsStoreImp::InitialiseLibraryL(); + CleanupDeletePushL ( self ); + return self; + } + + +// End of file