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