|
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file SS_CONNSETTINGS.CPP |
|
18 */ |
|
19 |
|
20 #include "ss_connsettings.h" |
|
21 |
|
22 /** |
|
23 Constructor |
|
24 */ |
|
25 EXPORT_C CConnectionSettings::CConnectionSettings() |
|
26 { |
|
27 } |
|
28 |
|
29 /** |
|
30 Retrieve a boolean value from the database with the given field name |
|
31 |
|
32 @param aSettingName Field name |
|
33 @param aValue Reference to a boolean that will contain the value on call success |
|
34 @param aMessage RMessage pointer required for secure session communication |
|
35 */ |
|
36 EXPORT_C void CConnectionSettings::GetBoolSettingL(const TDesC& aSettingName, TBool& aValue, const RMessagePtr2* aMessage ) |
|
37 { |
|
38 DoGetBoolSettingL( aSettingName, aValue, aMessage ); |
|
39 } |
|
40 |
|
41 /** |
|
42 Retrieve a unicode string value from the database with the given field name |
|
43 |
|
44 @param aSettingName Field name |
|
45 @param aValue Reference to a string that will contain the value on call success |
|
46 @param aMessage RMessage pointer required for secure session communication |
|
47 */ |
|
48 EXPORT_C void CConnectionSettings::GetDes16SettingL(const TDesC& aSettingName, TDes16& aValue, const RMessagePtr2* aMessage ) |
|
49 { |
|
50 DoGetDes16SettingL( aSettingName, aValue, aMessage ); |
|
51 } |
|
52 |
|
53 /** |
|
54 Retrieve a 8-bit string value from the database with the given field name |
|
55 |
|
56 @param aSettingName Field name |
|
57 @param aValue Reference to a string that will contain the value on call success |
|
58 @param aMessage RMessage pointer required for secure session communication |
|
59 */ |
|
60 EXPORT_C void CConnectionSettings::GetDes8SettingL(const TDesC& aSettingName, TDes8& aValue, const RMessagePtr2* aMessage ) |
|
61 { |
|
62 DoGetDes8SettingL( aSettingName, aValue, aMessage ); |
|
63 } |
|
64 |
|
65 /** |
|
66 Retrieve a unsigned 32-bit int value from the database with the given field name |
|
67 |
|
68 @param aSettingName Field name |
|
69 @param aValue Reference to a TUint32 that will contain the value on call success |
|
70 @param aMessage RMessage pointer required for secure session communication |
|
71 */ |
|
72 EXPORT_C void CConnectionSettings::GetIntSettingL(const TDesC& aSettingName, TUint32& aValue, const RMessagePtr2* aMessage ) |
|
73 { |
|
74 DoGetIntSettingL( aSettingName, aValue, aMessage ); |
|
75 } |
|
76 |
|
77 /** |
|
78 Retrieve a string value as a heap allocated buffer from the database with the given field name |
|
79 |
|
80 @param aSettingName Field name |
|
81 @param aMessage RMessage pointer required for secure session communication |
|
82 @return Pointer to the dynamically allocated string |
|
83 */ |
|
84 EXPORT_C HBufC* CConnectionSettings::GetLongDesSettingLC(const TDesC& aSettingName, const RMessagePtr2* aMessage ) |
|
85 { |
|
86 return DoGetLongDesSettingLC( aSettingName, aMessage ); |
|
87 } |
|
88 |
|
89 |