|
1 /** |
|
2 * Copyright (c) 2003-2009 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: |
|
15 * NetDial internal errors and panic codes |
|
16 * |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 |
|
22 /** |
|
23 @file ND_STD.H |
|
24 @internalComponent |
|
25 */ |
|
26 |
|
27 #ifndef __ND_STD_H__ |
|
28 #define __ND_STD_H__ |
|
29 |
|
30 #include <nd_err.h> |
|
31 |
|
32 const TInt KNetdialInternalErrorBase=KNetdialErrorBase-100; |
|
33 |
|
34 // script errors - internal only |
|
35 // |
|
36 const TInt KErrScriptCompleted=KNetdialInternalErrorBase-1; ///< Script Completed |
|
37 const TInt KErrNoExpression=KNetdialInternalErrorBase-2; ///< Expression/Term not found |
|
38 const TInt KErrMissingQuote=KNetdialInternalErrorBase-3; ///< Missing Quote from String |
|
39 const TInt KErrVariableNotFound=KNetdialInternalErrorBase-4; ///< Variable not found |
|
40 const TInt KErrInvalidNumber=KNetdialInternalErrorBase-5; ///< Invalid number |
|
41 const TInt KErrNumberOutOfRange=KNetdialInternalErrorBase-6; ///< Number out of range |
|
42 const TInt KErrNoEquals=KNetdialInternalErrorBase-7; ///< Could not find equals sign in SET expression |
|
43 const TInt KErrNoOpenExpression=KNetdialInternalErrorBase-8; ///< Could not find Open Expression character ('{') |
|
44 const TInt KErrIllegalWaitLabelIndex=KNetdialInternalErrorBase-9; ///< Illegal Wait Index detected (Internal Error) |
|
45 const TInt KErrNestedLoop=KNetdialInternalErrorBase-10; ///< Nested Loops are not allowed |
|
46 const TInt KErrLoopCounterOutOfRange=KNetdialInternalErrorBase-11; ///< Loop counter out of range |
|
47 const TInt KErrMissingChevron=KNetdialInternalErrorBase-12; ///< Missing Chevron from Number Definition |
|
48 const TInt KErrIllegalCommand=KNetdialInternalErrorBase-13; ///< Illegal Command |
|
49 const TInt KErrNoDropOrRaise=KNetdialInternalErrorBase-14; ///< no "drop" or "raise" after DTR |
|
50 const TInt KErrVariableNameTooLong=KNetdialInternalErrorBase-15; ///< Variable name too long |
|
51 const TInt KErrMissingBracket=KNetdialInternalErrorBase-16; ///< Could not find ('[' or ']') |
|
52 const TInt KErrCharacterConversionError=KNetdialInternalErrorBase-17; ///< Error occurred durinfg character set conversion |
|
53 const TInt KErrCharacterSetDoesNotExist=KNetdialInternalErrorBase-18; ///< Character set does not exist |
|
54 const TInt KErrLabelNameTooLong=KNetdialInternalErrorBase-19; ///< Lable name too long. |
|
55 |
|
56 enum TNetDialPanic |
|
57 { |
|
58 EUnknown =0, // 0 |
|
59 ECannotStartDialInWithoutMode, |
|
60 ECannotStartDialInFromDialOutMode, |
|
61 ENullStateMachineOnReconnection, |
|
62 EDialInReconnectNotSupported, |
|
63 EDialOutConnectionAlreadyStarted, |
|
64 EConnectionAlreadyStarted, |
|
65 ENotDoingDialOutBeforeCallBack, |
|
66 EConnectionModeLocked, |
|
67 ECallBackNotPending, |
|
68 EUnknownStartType, // 10 |
|
69 ENullStateMachineOnAuthentication, |
|
70 ENullStateMachineOnCancelAuthentication, |
|
71 ENullStateMachineOnAskReconnect, |
|
72 ENullStateMachineOnCancelAskReconnect, |
|
73 ENullStateMachineOnGetExcessData, |
|
74 EErrorInCancelOpen, |
|
75 EUnknownFSMState, |
|
76 EIllegalStateTransition, |
|
77 ECompleteWhenCancel, |
|
78 ENullTelServPrc, // 20 |
|
79 EGetLoginInfoCompleteCalled, |
|
80 ENotSupported, |
|
81 EIllegalReadComplete, |
|
82 EIllegalWriteComplete, |
|
83 EIllegalTimeOutComplete, |
|
84 EIllegalWritePending, |
|
85 ENullSearchArray, |
|
86 ELastCommandNotNull, |
|
87 EIllegalReadPctComplete, |
|
88 ENullScriptReader, // 30 |
|
89 ENumOfVariablesIncorrect, |
|
90 EDestroyNotificationNotCancelled, |
|
91 ENullScript, |
|
92 EEtelServerNotIdle, |
|
93 EEtelPortNotRecovered, |
|
94 EEtelCallAlreadyOpen, |
|
95 EEtelCallNotOpen, |
|
96 ENullCallBackContext, |
|
97 EOffsetExceedsLineLength, |
|
98 ENullCommChatString, // 40 |
|
99 EIllegalDbRequestForService, |
|
100 EUnknownTableName, |
|
101 EUnknownRecordId, |
|
102 ETableAlreadyOpen, |
|
103 EOverrideValueLengthTooShort, |
|
104 ENullContextPointer, |
|
105 EZeroLengthScript, |
|
106 ETelServPrcNotNull, |
|
107 EPreviousModeDbIsNull, |
|
108 EUnknownDatabaseType, // 50 |
|
109 ECallBackCompletedWithError, |
|
110 EAttemptHSCSDWhenNotGsm, |
|
111 EUnknownCallType, |
|
112 EUnknownCallDirection, |
|
113 ELoggerNotDefined, |
|
114 EScriptingUnsupportedInDialIn, |
|
115 EAttemptHSCSDWhenNotMultimode |
|
116 }; |
|
117 |
|
118 GLREF_C void NetDialPanic(TNetDialPanic aPanic); |
|
119 |
|
120 const TText KLineFeed=10; |
|
121 const TText KCarriageReturn=13; |
|
122 const TInt KTxBufferSize=100; |
|
123 const TInt KRxBufferSize=64; |
|
124 |
|
125 #endif |