williamr@2
|
1 |
/**
|
williamr@2
|
2 |
* Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
3 |
* All rights reserved.
|
williamr@2
|
4 |
* This component and the accompanying materials are made available
|
williamr@2
|
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
|
williamr@2
|
6 |
* which accompanies this distribution, and is available
|
williamr@2
|
7 |
* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
|
williamr@2
|
8 |
*
|
williamr@2
|
9 |
* Initial Contributors:
|
williamr@2
|
10 |
* Nokia Corporation - initial contribution.
|
williamr@2
|
11 |
*
|
williamr@2
|
12 |
* Contributors:
|
williamr@2
|
13 |
*
|
williamr@2
|
14 |
* Description:
|
williamr@2
|
15 |
* Interface Manager Standard Variable Names
|
williamr@2
|
16 |
*
|
williamr@2
|
17 |
*
|
williamr@2
|
18 |
*/
|
williamr@2
|
19 |
|
williamr@2
|
20 |
|
williamr@2
|
21 |
|
williamr@2
|
22 |
|
williamr@2
|
23 |
|
williamr@2
|
24 |
/**
|
williamr@2
|
25 |
@file NIFVAR.H
|
williamr@2
|
26 |
@publishedAll
|
williamr@2
|
27 |
@released
|
williamr@2
|
28 |
*/
|
williamr@2
|
29 |
|
williamr@2
|
30 |
|
williamr@2
|
31 |
#if !defined(__NIFVAR_H__)
|
williamr@2
|
32 |
#define __NIFVAR_H__
|
williamr@2
|
33 |
|
williamr@2
|
34 |
#include <e32std.h>
|
williamr@2
|
35 |
|
williamr@2
|
36 |
/**
|
williamr@2
|
37 |
Generic Progress Constant
|
williamr@2
|
38 |
From NIFMAN
|
williamr@2
|
39 |
@note These ranges must be obeyed by all network adapters
|
williamr@2
|
40 |
@note These are augmented by the PSD and CSD constants below
|
williamr@2
|
41 |
|
williamr@2
|
42 |
@publishedAll
|
williamr@2
|
43 |
@released
|
williamr@2
|
44 |
*/
|
williamr@2
|
45 |
const TInt KConnectionUninitialised = 0; // From NIFMAN
|
williamr@2
|
46 |
const TInt KStartingSelection = 1000; // From NIFMAN
|
williamr@2
|
47 |
const TInt KFinishedSelection = 2000; // From NIFMAN
|
williamr@2
|
48 |
const TInt KConnectionFailure = 2001; // From NIFMAN
|
williamr@2
|
49 |
|
williamr@2
|
50 |
const TInt KMinAgtProgress = 2500;
|
williamr@2
|
51 |
const TInt KConnectionOpen = 3500; // From an Agent
|
williamr@2
|
52 |
const TInt KConnectionClosed = 4500; // From an Agent
|
williamr@2
|
53 |
const TInt KMaxAgtProgress = 5500;
|
williamr@2
|
54 |
|
williamr@2
|
55 |
const TInt KMinNifProgress = 6000;
|
williamr@2
|
56 |
const TInt KLinkLayerOpen = 7000; // From a NIF
|
williamr@2
|
57 |
const TInt KLinkLayerClosed = 8000; // From a NIF
|
williamr@2
|
58 |
const TInt KMaxNifProgress = 9000;
|
williamr@2
|
59 |
|
williamr@2
|
60 |
/**
|
williamr@2
|
61 |
Additional generic progress constantfrom an agent
|
williamr@2
|
62 |
@note These values may be implemented by network adapters (nifs/agents)
|
williamr@2
|
63 |
@see KPsdStartingConfiguration
|
williamr@2
|
64 |
@see KCsdStartingDialling
|
williamr@2
|
65 |
|
williamr@2
|
66 |
@publishedAll
|
williamr@2
|
67 |
@released
|
williamr@2
|
68 |
*/
|
williamr@2
|
69 |
const TInt KStartingConnection = 3000; // from an agent
|
williamr@2
|
70 |
const TInt KIncomingConnectionInProgress = 3350; // from an agent
|
williamr@2
|
71 |
const TInt KDataTransferTemporarilyBlocked = 4000; // eg. suspended (GPRS); from an agent
|
williamr@2
|
72 |
const TInt KConnectionStartingClose = 4250; // from an agent
|
williamr@2
|
73 |
|
williamr@2
|
74 |
/**
|
williamr@2
|
75 |
Additional generic progress constant
|
williamr@2
|
76 |
from an agent
|
williamr@2
|
77 |
@note These values may be implemented by network adapters (nifs/agents)
|
williamr@2
|
78 |
@see KPsdStartingConfiguration
|
williamr@2
|
79 |
@see KCsdStartingDialling
|
williamr@2
|
80 |
|
williamr@2
|
81 |
@publishedAll
|
williamr@2
|
82 |
@released
|
williamr@2
|
83 |
*/
|
williamr@2
|
84 |
const TInt KPsdStartingConfiguration = KMinAgtProgress; // required
|
williamr@2
|
85 |
const TInt KPsdFinishedConfiguration = 2750; // desirable
|
williamr@2
|
86 |
|
williamr@2
|
87 |
const TInt KPsdAnsweringIncoming = KIncomingConnectionInProgress; // required if supporting incoming connections
|
williamr@2
|
88 |
|
williamr@2
|
89 |
const TInt KPsdStartingActivation = KStartingConnection; // required
|
williamr@2
|
90 |
const TInt KPsdFinishedActivation = KConnectionOpen; // required
|
williamr@2
|
91 |
|
williamr@2
|
92 |
const TInt KPsdSuspended = KDataTransferTemporarilyBlocked; // required if this case can occur
|
williamr@2
|
93 |
|
williamr@2
|
94 |
const TInt KPsdStartingDeactivation = KConnectionStartingClose; // desirable
|
williamr@2
|
95 |
const TInt KPsdFinishedDeactivation = KConnectionClosed; // required
|
williamr@2
|
96 |
|
williamr@2
|
97 |
/**
|
williamr@2
|
98 |
Additional generic progress constant
|
williamr@2
|
99 |
eg. suspended (GPRS); from an agent
|
williamr@2
|
100 |
@note These values may be implemented by network adapters (nifs/agents)
|
williamr@2
|
101 |
@see KPsdStartingConfiguration
|
williamr@2
|
102 |
@see KCsdStartingDialling
|
williamr@2
|
103 |
|
williamr@2
|
104 |
@publishedAll
|
williamr@2
|
105 |
@released
|
williamr@2
|
106 |
*/
|
williamr@2
|
107 |
const TInt KCsdStartingDialling = KMinAgtProgress; // optional
|
williamr@2
|
108 |
const TInt KCsdFinishedDialling = 2600; // desirable
|
williamr@2
|
109 |
const TInt KCsdScanningScript = 2650; // optional
|
williamr@2
|
110 |
const TInt KCsdScannedScript = 2750; // optional
|
williamr@2
|
111 |
const TInt KCsdGettingLoginInfo = 2800; // optional
|
williamr@2
|
112 |
const TInt KCsdGotLoginInfo = 2900; // optional
|
williamr@2
|
113 |
const TInt KCsdStartingConnect = KStartingConnection; // optional
|
williamr@2
|
114 |
const TInt KCsdFinishedConnect = 3100; // desirable
|
williamr@2
|
115 |
const TInt KCsdStartingLogIn = 3200; // optional
|
williamr@2
|
116 |
const TInt KCsdFinishedLogIn = 3250; // optional
|
williamr@2
|
117 |
|
williamr@2
|
118 |
const TInt KCsdStartingAnswer = KIncomingConnectionInProgress; // required if supporting incoming connections/callback
|
williamr@2
|
119 |
const TInt KCsdAnswered = 3400; // required if supporting incoming connections/callback
|
williamr@2
|
120 |
|
williamr@2
|
121 |
const TInt KCsdConnectionOpen = KConnectionOpen; // required
|
williamr@2
|
122 |
const TInt KCsdStartingHangUp = KConnectionStartingClose; // desirable
|
williamr@2
|
123 |
const TInt KCsdFinishedHangUp = KConnectionClosed; // required
|
williamr@2
|
124 |
|
williamr@2
|
125 |
/**
|
williamr@2
|
126 |
Generic progress notifications from the configuration daemon.
|
williamr@2
|
127 |
@publishedAll
|
williamr@2
|
128 |
@released
|
williamr@2
|
129 |
**/
|
williamr@2
|
130 |
const TInt KMinConfigDaemonProgress = 8100;
|
williamr@2
|
131 |
const TInt KConfigDaemonLoading = 8100;
|
williamr@2
|
132 |
const TInt KConfigDaemonLoaded = 8200;
|
williamr@2
|
133 |
const TInt KConfigDaemonStartingRegistration = 8300;
|
williamr@2
|
134 |
const TInt KConfigDaemonFinishedRegistration = 8400;
|
williamr@2
|
135 |
const TInt KConfigDaemonStartingDeregistration = 8600;
|
williamr@2
|
136 |
const TInt KConfigDaemonFinishedDeregistrationStop = 8700;
|
williamr@2
|
137 |
const TInt KConfigDaemonFinishedDeregistrationPreserve = 8701;
|
williamr@2
|
138 |
const TInt KConfigDaemonFinishedDormantMode = 8750;
|
williamr@2
|
139 |
const TInt KConfigDaemonUnloading = 8800;
|
williamr@2
|
140 |
const TInt KConfigDaemonUnloaded = 8900;
|
williamr@2
|
141 |
const TInt KMaxConfigDaemonProgress = 8900;
|
williamr@2
|
142 |
|
williamr@2
|
143 |
/**
|
williamr@2
|
144 |
Generic progress notifications from the null configuration daemon.
|
williamr@2
|
145 |
@internalComponent
|
williamr@2
|
146 |
@released
|
williamr@2
|
147 |
**/
|
williamr@2
|
148 |
const TInt KNullConfigDaemonConfigureNetwork = 8401;
|
williamr@2
|
149 |
|
williamr@2
|
150 |
/**
|
williamr@2
|
151 |
New software should use the progress ranges defined above
|
williamr@2
|
152 |
|
williamr@2
|
153 |
@publishedAll
|
williamr@2
|
154 |
@deprecated 7.0s - maintained for compatibility with 6.1
|
williamr@2
|
155 |
*/
|
williamr@2
|
156 |
const TInt KAgentUninitialised = KConnectionUninitialised;
|
williamr@2
|
157 |
const TInt KAgentUnconnected = 1;
|
williamr@2
|
158 |
const TInt KMaxAgentProgress = 999;
|
williamr@2
|
159 |
const TInt KMinInterfaceProgress = 1000;
|
williamr@2
|
160 |
const TInt KMaxInterfaceProgress = 1999;
|
williamr@2
|
161 |
|
williamr@2
|
162 |
/**
|
williamr@2
|
163 |
Callback actions
|
williamr@2
|
164 |
@internalComponent
|
williamr@2
|
165 |
*/
|
williamr@2
|
166 |
enum TCallbackAction
|
williamr@2
|
167 |
{
|
williamr@2
|
168 |
ECallbackActionIETFType0 =0,
|
williamr@2
|
169 |
ECallbackActionIETFType1 =1,
|
williamr@2
|
170 |
ECallbackActionIETFType2 =2,
|
williamr@2
|
171 |
ECallbackActionIETFType3 =3,
|
williamr@2
|
172 |
ECallbackActionIETFType4 =4,
|
williamr@2
|
173 |
ECallbackActionIETFType5 =5,
|
williamr@2
|
174 |
//
|
williamr@2
|
175 |
ECallbackActionMSCBCPRequireClientSpecifiedNumber = 1001,
|
williamr@2
|
176 |
ECallbackActionMSCBCPAcceptServerSpecifiedNumber = 1002,
|
williamr@2
|
177 |
ECallbackActionMSCBCPOverrideServerSpecifiedNumber = 1003
|
williamr@2
|
178 |
};
|
williamr@2
|
179 |
|
williamr@2
|
180 |
/**
|
williamr@2
|
181 |
The type of connection provided by the network interface
|
williamr@2
|
182 |
|
williamr@2
|
183 |
@publishedAll
|
williamr@2
|
184 |
@released
|
williamr@2
|
185 |
@note It is acceptable for clients to check that a TConnectionType falls within a
|
williamr@2
|
186 |
specified range, and assume that the basic parameters can be obtained. For example,
|
williamr@2
|
187 |
if the returned TConnectionType is between 2000 and 2499, it would be acceptable for
|
williamr@2
|
188 |
a client to assume that it was a GPRS connection, and that TGPRSSubConnectionInfo
|
williamr@2
|
189 |
is an acceptable class to use for GetSubConnectionInfo() calls
|
williamr@2
|
190 |
*/
|
williamr@2
|
191 |
enum TConnectionType
|
williamr@2
|
192 |
{
|
williamr@2
|
193 |
/** Connection values <1000 for generic interface values
|
williamr@2
|
194 |
These are used to indicate an interface does not support extended
|
williamr@2
|
195 |
management functionality, and a limited subset of information is made
|
williamr@2
|
196 |
available through a compatibility layer
|
williamr@2
|
197 |
*/
|
williamr@2
|
198 |
EConnectionGeneric,
|
williamr@2
|
199 |
|
williamr@2
|
200 |
/** Connection values 1000-1999 for CSD connections
|
williamr@2
|
201 |
*/
|
williamr@2
|
202 |
EConnectionCSD = 1000,
|
williamr@2
|
203 |
|
williamr@2
|
204 |
/** Connection values > 2000 for PSD connections
|
williamr@2
|
205 |
Connection values 2000-2499 for subsets of GPRS/UMTS
|
williamr@2
|
206 |
*/
|
williamr@2
|
207 |
EConnectionGPRS = 2000,
|
williamr@2
|
208 |
|
williamr@2
|
209 |
EConnectionGPRSR97,
|
williamr@2
|
210 |
EConnectionGPRSR99,
|
williamr@2
|
211 |
EConnectionGPRSRel4,
|
williamr@2
|
212 |
EConnectionGPRSRel5,
|
williamr@2
|
213 |
|
williamr@2
|
214 |
/** Connection values 2500-2999 for subsets of CDMA
|
williamr@2
|
215 |
@todo Check these CDMA values to find which ones affect the interface features
|
williamr@2
|
216 |
*/
|
williamr@2
|
217 |
EConnectionCDMA = 2500,
|
williamr@2
|
218 |
|
williamr@2
|
219 |
EConnectionCDMA20001xRTT,
|
williamr@2
|
220 |
EConnectionCDMA20001xRTTDO,
|
williamr@2
|
221 |
EConnectionCDMA20001xRTTDV,
|
williamr@2
|
222 |
EConnectionCDMA20003xRTT,
|
williamr@2
|
223 |
/** Connection values 3000 for IEEE802.3 (Ethernet)
|
williamr@2
|
224 |
*/
|
williamr@2
|
225 |
EConnectionEthernet = 3000,
|
williamr@2
|
226 |
|
williamr@2
|
227 |
/** Connection values 3100 for IEEE802.11 (WLAN)
|
williamr@2
|
228 |
*/
|
williamr@2
|
229 |
EConnectionWLAN = 3100,
|
williamr@2
|
230 |
|
williamr@2
|
231 |
/** Connection values 4000 - 4099 for Bluetooth PAN profile interfaces
|
williamr@2
|
232 |
*/
|
williamr@2
|
233 |
EConnectionBTPAN = 4000
|
williamr@2
|
234 |
|
williamr@2
|
235 |
/** Connection values 4100+ for other PS technologies
|
williamr@2
|
236 |
*/
|
williamr@2
|
237 |
};
|
williamr@2
|
238 |
|
williamr@2
|
239 |
/**
|
williamr@2
|
240 |
The layer to which the call refers
|
williamr@2
|
241 |
@note Used by data sent and received to indicate to which layer the byte count refers
|
williamr@2
|
242 |
@todo Write about this, add appropriate arguments to interfaces
|
williamr@2
|
243 |
@internalTechnology
|
williamr@2
|
244 |
*/
|
williamr@2
|
245 |
enum TConnectionLayer
|
williamr@2
|
246 |
{
|
williamr@2
|
247 |
EPhysicalLayer,
|
williamr@2
|
248 |
EDataLinkLayer = 100,
|
williamr@2
|
249 |
ENetworkLayer = 200,
|
williamr@2
|
250 |
ETransportLayer = 300,
|
williamr@2
|
251 |
ESessionLayer = 400,
|
williamr@2
|
252 |
EPresentationLayer = 500,
|
williamr@2
|
253 |
EApplicationLayer = 600
|
williamr@2
|
254 |
};
|
williamr@2
|
255 |
|
williamr@2
|
256 |
#endif
|