|
1 /* |
|
2 * Copyright (c) 2003 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: Resource definitions for VPN API. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 NAME VPNE |
|
20 |
|
21 #include <uikon.rh> |
|
22 #include <baerrrsvr.rh> |
|
23 #include "vpnerr.rls" |
|
24 |
|
25 RESOURCE RSS_SIGNATURE { } |
|
26 |
|
27 // The error code range reserved by Symbian for IPSec and IPSec |
|
28 // VPN modules is [-5135, -5299] (165 error code values in total). |
|
29 // From this range, the sub-range [-5154, -5228] is reserved to |
|
30 // ipsec6. This leaves two sub-ranges, [-5135, -5153] and |
|
31 // [-5229, -5299] for use by the IPSec VPN modules. |
|
32 // From these two ranges, error code values are allocated |
|
33 // as follows: |
|
34 // |
|
35 // - IPSec Policy API: [-5135, -5147] (13 values) |
|
36 // - VPN API: [-5229, -5239] (11 values) |
|
37 // - PKI Service API: [-5240, -5252] (13 values) |
|
38 // - KMD API: [-5253, -5262] (10 values) |
|
39 // - IKE Policy Parser: [-5263, -5297] (35 values) |
|
40 // - VPN API 2: [-5298, -5298] (1 value) |
|
41 // |
|
42 // To add new error codes: |
|
43 // - Add a new range to the above list (just for clarity) |
|
44 // - Add a new ERROR_ARRAY definition to the below |
|
45 // ERROR_SET resource with startError set to the |
|
46 // beginning of the new error code range |
|
47 // - Add a new ARRAY resource to the vpnerr.ra |
|
48 // resource file corresponding to the new ERROR_ARRAY |
|
49 // definition. In the ARRAY resource, add a single |
|
50 // SINGLE_ERROR definition for each error code that your |
|
51 // source code uses. |
|
52 // NOTE. The error code value associated with each |
|
53 // SINGLE_ERROR definition depends on the startError |
|
54 // value of corresponding ERROR_ARRAY definition and |
|
55 // the position of the SINGLE_ERROR definition. |
|
56 // - Add the necessary TBUF resources to the vpnerr.ra |
|
57 // file add the corresponding rls_string definitions |
|
58 // to the vpnerr.rls file. |
|
59 // - Set the error code constant values in your source code |
|
60 // to be same as the implicit values of the corresponding |
|
61 // SINGLE_ERROR definitions in the vpnerr.ra file. |
|
62 |
|
63 RESOURCE ERROR_SET r_error_set_vpn |
|
64 { |
|
65 errorarrays= |
|
66 { |
|
67 ERROR_ARRAY |
|
68 { |
|
69 startError=-5135; |
|
70 errors=r_error_array_ipsecpolapi_errors; |
|
71 }, |
|
72 ERROR_ARRAY |
|
73 { |
|
74 startError=-5229; |
|
75 errors=r_error_array_vpnapi_errors; |
|
76 }, |
|
77 ERROR_ARRAY |
|
78 { |
|
79 startError=-5240; |
|
80 errors=r_error_array_pkiserviceapi_errors; |
|
81 }, |
|
82 ERROR_ARRAY |
|
83 { |
|
84 startError=-5253; |
|
85 errors=r_error_array_kmdapi_errors; |
|
86 }, |
|
87 ERROR_ARRAY |
|
88 { |
|
89 startError=-5263; |
|
90 errors=r_error_array_ikepolparser_errors; |
|
91 }, |
|
92 ERROR_ARRAY |
|
93 { |
|
94 startError=-5298; |
|
95 errors=r_error_array_vpnapi_errors_2; |
|
96 } |
|
97 }; |
|
98 } |
|
99 |
|
100 #include "vpnerr.ra" |