|
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 // Implementation of BC & SC 'proof' interfaces to MNifIfNotify. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 */ |
|
21 #include <comms-infras/nifif.h> |
|
22 |
|
23 /** |
|
24 * Read an integer field from the connection settings provider |
|
25 * @param aField The name of the field to read |
|
26 * @param aValue On return, contains the value of the field read |
|
27 * @returns KErrNone, if successful; otherwise one of the standard Symbian OS error codes |
|
28 * @see DoReadInt |
|
29 */ |
|
30 EXPORT_C TInt MNifIfNotify::ReadInt(const TDesC& aField, TUint32& aValue) |
|
31 { |
|
32 return ReadInt( aField, aValue, NULL ); |
|
33 } |
|
34 |
|
35 /** |
|
36 * Read an integer field from the connection settings provider |
|
37 * @param aField The name of the field to read |
|
38 * @param aValue On return, contains the value of the field read |
|
39 * @param aMessage Message containing security capabilites to be checked |
|
40 * @returns KErrNone, if successful; otherwise one of the standard Symbian OS error codes |
|
41 * @see DoReadInt |
|
42 */ |
|
43 EXPORT_C TInt MNifIfNotify::ReadInt(const TDesC& aField, TUint32& aValue, const RMessagePtr2* aMessage ) |
|
44 { |
|
45 return DoReadInt( aField, aValue, aMessage ); |
|
46 } |
|
47 |
|
48 /** |
|
49 * Write an integer field to the connection settings provider |
|
50 * @param aField The name of the field to which to write |
|
51 * @param aValue The value to be written to the field |
|
52 * @returns KErrNone, if successful; otherwise one of the standard Symbian OS error codes |
|
53 * @see DoWriteInt |
|
54 */ |
|
55 EXPORT_C TInt MNifIfNotify::WriteInt(const TDesC& aField, TUint32 aValue) |
|
56 { |
|
57 return WriteInt( aField, aValue, NULL ); |
|
58 } |
|
59 |
|
60 /** |
|
61 * Write an integer field to the connection settings provider |
|
62 * @param aField The name of the field to which to write |
|
63 * @param aValue The value to be written to the field |
|
64 * @param aMessage Message containing security capabilites to be checked |
|
65 * @returns KErrNone, if successful; otherwise one of the standard Symbian OS error codes |
|
66 * @see DoWriteInt |
|
67 */ |
|
68 EXPORT_C TInt MNifIfNotify::WriteInt(const TDesC& aField, TUint32 aValue, const RMessagePtr2* aMessage) |
|
69 { |
|
70 return DoWriteInt( aField, aValue, aMessage ); |
|
71 } |
|
72 |
|
73 /** |
|
74 * Read an 8-bit descriptor field from the connection settings provider |
|
75 * @param aField The name of the field to read |
|
76 * @param aValue On return, contains the value of the field read |
|
77 * @returns KErrNone, if successful; otherwise one of the standard Symbian OS error codes |
|
78 * @see DoReadDes |
|
79 */ |
|
80 EXPORT_C TInt MNifIfNotify::ReadDes(const TDesC& aField, TDes8& aValue) |
|
81 { |
|
82 return ReadDes( aField, aValue, NULL ); |
|
83 } |
|
84 |
|
85 /** |
|
86 * Read an 8-bit descriptor field from the connection settings provider |
|
87 * @param aField The name of the field to read |
|
88 * @param aValue On return, contains the value of the field read |
|
89 * @param aMessage Message containing security capabilites to be checked |
|
90 * @returns KErrNone, if successful; otherwise one of the standard Symbian OS error codes |
|
91 * @see DoReadDes |
|
92 */ |
|
93 EXPORT_C TInt MNifIfNotify::ReadDes(const TDesC& aField, TDes8& aValue, const RMessagePtr2* aMessage ) |
|
94 { |
|
95 return DoReadDes( aField, aValue, aMessage ); |
|
96 } |
|
97 |
|
98 /** |
|
99 * Read a 16-bit descriptor field from the connection settings provider |
|
100 * @param aField The name of the field to read |
|
101 * @param aValue On return, contains the value of the field read |
|
102 * @returns KErrNone, if successful; otherwise one of the standard Symbian OS error codes |
|
103 * @see DoReadDes |
|
104 */ |
|
105 EXPORT_C TInt MNifIfNotify::ReadDes(const TDesC& aField, TDes16& aValue) |
|
106 { |
|
107 return ReadDes( aField, aValue, NULL ); |
|
108 } |
|
109 |
|
110 /** |
|
111 * Read a 16-bit descriptor field from the connection settings provider |
|
112 * @param aField The name of the field to read |
|
113 * @param aValue On return, contains the value of the field read |
|
114 * @param aMessage Message containing security capabilites to be checked |
|
115 * @returns KErrNone, if successful; otherwise one of the standard Symbian OS error codes |
|
116 * @see DoReadDes |
|
117 */ |
|
118 EXPORT_C TInt MNifIfNotify::ReadDes(const TDesC& aField, TDes16& aValue, const RMessagePtr2* aMessage ) |
|
119 { |
|
120 return DoReadDes( aField, aValue, aMessage ); |
|
121 } |
|
122 |
|
123 /** |
|
124 * Write an 8-bit descriptor field to the connection settings provider |
|
125 * @param aField The name of the field to which to write |
|
126 * @param aValue The value to be written to the field |
|
127 * @returns KErrNone, if successful; otherwise one of the standard Symbian OS error codes |
|
128 * @see DoWriteDes |
|
129 */ |
|
130 EXPORT_C TInt MNifIfNotify::WriteDes(const TDesC& aField, const TDesC8& aValue) |
|
131 { |
|
132 return WriteDes( aField, aValue, NULL ); |
|
133 } |
|
134 |
|
135 /** |
|
136 * Write an 8-bit descriptor field to the connection settings provider |
|
137 * @param aField The name of the field to which to write |
|
138 * @param aValue The value to be written to the field |
|
139 * @param aMessage Message containing security capabilites to be checked |
|
140 * @returns KErrNone, if successful; otherwise one of the standard Symbian OS error codes |
|
141 * @see DoWriteDes |
|
142 */ |
|
143 EXPORT_C TInt MNifIfNotify::WriteDes(const TDesC& aField, const TDesC8& aValue, const RMessagePtr2* aMessage ) |
|
144 { |
|
145 return DoWriteDes( aField, aValue, aMessage ); |
|
146 } |
|
147 |
|
148 /** |
|
149 * Write a 16-bit descriptor field to the connection settings provider |
|
150 * @param aField The name of the field to which to write |
|
151 * @param aValue The value to be written to the field |
|
152 * @returns KErrNone, if successful; otherwise one of the standard Symbian OS error codes |
|
153 * @see DoWriteDes |
|
154 */ |
|
155 EXPORT_C TInt MNifIfNotify::WriteDes(const TDesC& aField, const TDesC16& aValue) |
|
156 { |
|
157 return WriteDes( aField, aValue, NULL ); |
|
158 } |
|
159 |
|
160 /** |
|
161 * Write a 16-bit descriptor field to the connection settings provider |
|
162 * @param aField The name of the field to which to write |
|
163 * @param aValue The value to be written to the field |
|
164 * @param aMessage Message containing security capabilites to be checked |
|
165 * @returns KErrNone, if successful; otherwise one of the standard Symbian OS error codes |
|
166 * @see DoWriteDes |
|
167 */ |
|
168 EXPORT_C TInt MNifIfNotify::WriteDes(const TDesC& aField, const TDesC16& aValue, const RMessagePtr2* aMessage) |
|
169 { |
|
170 return DoWriteDes( aField, aValue, aMessage ); |
|
171 } |
|
172 |
|
173 /** |
|
174 * Read a boolean field from the connection settings provider |
|
175 * @param aField The name of the field to read |
|
176 * @param aValue On return, contains the value of the field read |
|
177 * @returns KErrNone, if successful; otherwise one of the standard Symbian OS error codes |
|
178 * @see DoReadBool |
|
179 */ |
|
180 EXPORT_C TInt MNifIfNotify::ReadBool(const TDesC& aField, TBool& aValue) |
|
181 { |
|
182 return ReadBool( aField, aValue, NULL ); |
|
183 } |
|
184 |
|
185 /** |
|
186 * Read a boolean field from the connection settings provider |
|
187 * @param aField The name of the field to read |
|
188 * @param aValue On return, contains the value of the field read |
|
189 * @param aMessage Message containing security capabilites to be checked |
|
190 * @returns KErrNone, if successful; otherwise one of the standard Symbian OS error codes |
|
191 * @see DoReadBool |
|
192 */ |
|
193 EXPORT_C TInt MNifIfNotify::ReadBool(const TDesC& aField, TBool& aValue, const RMessagePtr2* aMessage ) |
|
194 { |
|
195 return DoReadBool( aField, aValue, aMessage ); |
|
196 } |
|
197 |
|
198 /** |
|
199 * Write a boolean field to the connection settings provider |
|
200 * @param aField The name of the field to which to write |
|
201 * @param aValue The value to be written to the field |
|
202 * @returns KErrNone, if successful; otherwise one of the standard Symbian OS error codes |
|
203 * @see DoWriteBool |
|
204 */ |
|
205 EXPORT_C TInt MNifIfNotify::WriteBool(const TDesC& aField, TBool aValue) |
|
206 { |
|
207 return WriteBool( aField, aValue, NULL ); |
|
208 } |
|
209 |
|
210 /** |
|
211 * Write a boolean field to the connection settings provider |
|
212 * @param aField The name of the field to which to write |
|
213 * @param aValue The value to be written to the field |
|
214 * @param aMessage Message containing security capabilites to be checked |
|
215 * @returns KErrNone, if successful; otherwise one of the standard Symbian OS error codes |
|
216 * @see DoWriteBool |
|
217 */ |
|
218 EXPORT_C TInt MNifIfNotify::WriteBool(const TDesC& aField, TBool aValue, const RMessagePtr2* aMessage) |
|
219 { |
|
220 return DoWriteBool( aField, aValue, aMessage ); |
|
221 } |
|
222 |
|
223 |
|
224 |