|
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 <e32std.h> |
|
21 #include "s_vimpstsettingsstoreimp.h" |
|
22 |
|
23 //dummy serviceId, assuming the service id not more than 256. for the first time |
|
24 //and it is assumed that this service id is for initializing the cenrep keys only. |
|
25 //not updated in the service table and hence will not get a TAB in phone book |
|
26 //const TInt KServiceIDOffset = 16; |
|
27 |
|
28 // opaque data length, see cvimpstuisapsettings.h SetOpaqueDesC16 method description. |
|
29 //const TInt KSapSettingsDataBufferLength = 5; |
|
30 // Collation level 1 to ignore case |
|
31 //const TInt KCollationLevel = 1; |
|
32 |
|
33 /** Key to CIMPSSAPSettings opaque value */ |
|
34 //_LIT( KIMToUAccepted, "KIMToUAccepted" ); |
|
35 /** User id separator in KIMToUAccepted list */ |
|
36 //_LIT( KIMDot, "," ); |
|
37 |
|
38 //================= MEMBER FUNCTIONS ======================= |
|
39 // --------------------------------------------------------- |
|
40 // CVIMPSTSettingsStoreImp::NewL |
|
41 // |
|
42 // --------------------------------------------------------- |
|
43 MVIMPSTSettingsStore* CVIMPSTSettingsStoreImp::InitialiseLibraryL( ) |
|
44 { |
|
45 // no existing instance, create a new one |
|
46 MVIMPSTSettingsStore *settingsStoreImp = CVIMPSTSettingsStoreImp::NewL(); |
|
47 return (MVIMPSTSettingsStore*)settingsStoreImp; |
|
48 } |
|
49 |
|
50 void CVIMPSTSettingsStoreImp::Release( ) |
|
51 { |
|
52 |
|
53 } |
|
54 // --------------------------------------------------------- |
|
55 // CVIMPSTSettingsStoreImp::NewLC |
|
56 // |
|
57 // --------------------------------------------------------- |
|
58 MVIMPSTSettingsStore* CVIMPSTSettingsStoreImp::NewL( ) |
|
59 { |
|
60 CVIMPSTSettingsStoreImp* self = new (ELeave) CVIMPSTSettingsStoreImp( ); |
|
61 CleanupStack::PushL( self ); |
|
62 self->ConstructL( ); |
|
63 CleanupStack::Pop( self ); |
|
64 return self; |
|
65 } |
|
66 |
|
67 // --------------------------------------------------------- |
|
68 // CVIMPSTSettingsStoreImp::ConstructL |
|
69 // |
|
70 // --------------------------------------------------------- |
|
71 |
|
72 void CVIMPSTSettingsStoreImp::ConstructL( ) |
|
73 { |
|
74 |
|
75 } |
|
76 |
|
77 // --------------------------------------------------------- |
|
78 // CVIMPSTSettingsStoreImp::Destructor |
|
79 // |
|
80 // --------------------------------------------------------- |
|
81 CVIMPSTSettingsStoreImp::~CVIMPSTSettingsStoreImp() |
|
82 { |
|
83 |
|
84 } |
|
85 |
|
86 TInt CVIMPSTSettingsStoreImp::GetL(TUint32 aServiceId, TSettingItemName aSettingItemNAme, RBuf& aBuffer ) |
|
87 { |
|
88 if(aSettingItemNAme == EServiceToneFileName) |
|
89 { |
|
90 _LIT(filename,"testtonefile"); |
|
91 aBuffer.Copy(filename); |
|
92 } |
|
93 return KErrNone; // return the value : error code |
|
94 } |
|
95 // -------------------------------------------------------------------------------------------------- |
|
96 // CVIMPSTSettingsStoreImp::SetL |
|
97 // |
|
98 // --------------------------------------------------------------------------------------------------- |
|
99 |
|
100 TInt CVIMPSTSettingsStoreImp::SetL(TUint32 /*aServiceId*/, TSettingItemName /*aSettingItemName*/, const TDesC8& /*aBuffer*/ ) |
|
101 { |
|
102 return KErrNone; // return the value : error code |
|
103 } |
|
104 // -------------------------------------------------------------------------------------------------- |
|
105 // CVIMPSTSettingsStoreImp::GetL |
|
106 // |
|
107 // --------------------------------------------------------------------------------------------------- |
|
108 |
|
109 |
|
110 |
|
111 //End of file |