1 cmmanagerdef.h |
1 /* |
|
2 * Copyright (c) 2006 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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Definition module for Connection Method Manager |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef CMMANAGERDEF_H |
|
19 #define CMMANAGERDEF_H |
|
20 |
|
21 // System includes |
|
22 #include <E32def.h> |
|
23 #include <e32std.h> |
|
24 |
|
25 namespace CMManager |
|
26 { |
|
27 /** |
|
28 * Metadata items |
|
29 */ |
|
30 enum TSnapMetadataField |
|
31 { |
|
32 /** |
|
33 * If set this destination is for internet usage. |
|
34 * There can be only one such destination. |
|
35 * (TBool - default: EFalse) |
|
36 * @deprecated |
|
37 */ |
|
38 ESnapMetadataInternet = 0x00000001, |
|
39 |
|
40 /** |
|
41 * If set this destination is highlighted by default |
|
42 * in the Agent dialog. |
|
43 * (TBool - default: EFalse) |
|
44 */ |
|
45 ESnapMetadataHighlight = 0x00000002, |
|
46 |
|
47 /** |
|
48 * If set this destination is hidden in the |
|
49 * Agent dialog. |
|
50 * (TBool - default: EFalse) |
|
51 */ |
|
52 ESnapMetadataHiddenAgent = 0x00000004, |
|
53 /** |
|
54 * This set of flags identifies the fixed destinations which have localised names. |
|
55 * The possible values for this flag-set are the enums of TLocalisedDestinations. |
|
56 */ |
|
57 ESnapMetadataDestinationIsLocalised = 0x000000F0, |
|
58 |
|
59 /** |
|
60 * This set of flags identifies the fixed destinations for fixed |
|
61 * purposes. |
|
62 * The possible values for this flag-set are the enums of TSnapPurpose. |
|
63 */ |
|
64 ESnapMetadataPurpose = 0x00000F00 |
|
65 }; |
|
66 |
|
67 /** |
|
68 * This is the enum set of the TSnapMetadataField's ESnapMetadataDestinationIsLocalised |
|
69 */ |
|
70 enum TLocalisedDestinations |
|
71 { |
|
72 /** |
|
73 * Used to sign that the destination is not localised at all |
|
74 */ |
|
75 ENotLocalisedDest = 0x00000000, |
|
76 |
|
77 /** |
|
78 * Used to sign that the destination is localised as 'Internet' |
|
79 */ |
|
80 ELocalisedDestInternet = 0x00000001, |
|
81 |
|
82 /** |
|
83 * Used to sign that the destination is localised as 'Wap' |
|
84 */ |
|
85 ELocalisedDestWap = 0x00000002, |
|
86 |
|
87 /** |
|
88 * Used to sign that the destination is localised as 'MMS' |
|
89 */ |
|
90 ELocalisedDestMMS = 0x00000003, |
|
91 |
|
92 /** |
|
93 * Used to sign that the destination is localised as 'Intranet' |
|
94 */ |
|
95 ELocalisedDestIntranet = 0x00000004 |
|
96 }; |
|
97 |
|
98 /** |
|
99 * This is the enum set of the TSnapMetadataField's ESnapMetadataPurpose |
|
100 */ |
|
101 enum TSnapPurpose |
|
102 { |
|
103 ESnapPurposeUnknown = 0x00000000, |
|
104 |
|
105 /** |
|
106 * Used to sign that the destination is identified as 'Internet' |
|
107 */ |
|
108 ESnapPurposeInternet = 0x00000001, |
|
109 |
|
110 /** |
|
111 * Used to sign that the destination is identified as 'Operator' |
|
112 */ |
|
113 ESnapPurposeOperator = 0x00000002, |
|
114 |
|
115 /** |
|
116 * Used to sign that the destination is identified as 'MMS' |
|
117 */ |
|
118 ESnapPurposeMMS = 0x00000003, |
|
119 |
|
120 /** |
|
121 * Used to sign that the destination is identified as 'Intranet' |
|
122 */ |
|
123 ESnapPurposeIntranet = 0x00000004 |
|
124 }; |
|
125 |
|
126 /** |
|
127 * Protection Levels |
|
128 */ |
|
129 enum TProtectionLevel |
|
130 { |
|
131 EProtLevel0 = 0, /**< |
|
132 * No protection |
|
133 */ |
|
134 |
|
135 EProtLevel1 = 1, /**< |
|
136 * A destination and its contents |
|
137 */ |
|
138 |
|
139 EProtLevel2 = 2, /**< |
|
140 * A destination |
|
141 */ |
|
142 |
|
143 EProtLevel3 = 3 /**< |
|
144 * Note: Level 3 - Set the ECmProtected attr on |
|
145 * connection method |
|
146 */ |
|
147 }; |
|
148 |
|
149 const TInt KDataMobilitySelectionPolicyPriorityWildCard = 256; |
|
150 } // namespace CMManager |
|
151 |
|
152 /** |
|
153 * TBearerPriority is a representation of a bearer priority defined in |
|
154 * commsdat |
|
155 * |
|
156 * @lib cmmanager.lib |
|
157 * @since S60 v3.2 |
|
158 */ |
|
159 NONSHARABLE_CLASS( TBearerPriority ) |
|
160 { |
|
161 public: |
|
162 |
|
163 HBufC* iServiceType; /**< |
|
164 * Name of the service table to identify |
|
165 * type of bearer |
|
166 */ |
|
167 |
|
168 TUint32 iPriority; /**< |
|
169 * Priority of the bearer. |
|
170 * Values must be unique within the table |
|
171 */ |
|
172 |
|
173 TUint32 iUIPriority; /**< |
|
174 * Priority of this bearer type when shown |
|
175 * in UI for configuring a new IAP. |
|
176 * Values must be unique within the table |
|
177 */ |
|
178 }; |
|
179 |
|
180 #endif // CMMANAGERDEF_H |