|
1 // Copyright (c) 1997-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 |
|
17 |
|
18 /** |
|
19 @file |
|
20 @publishedAll |
|
21 @released |
|
22 */ |
|
23 |
|
24 #ifndef __ETELEXT_H__ |
|
25 /** @internalComponent */ |
|
26 #define __ETELEXT_H__ |
|
27 |
|
28 #if !defined(__E32BASE_H__) |
|
29 #include <e32base.h> |
|
30 #endif // __E32BASE_H__ |
|
31 |
|
32 // |
|
33 // TEtelDataPackageType |
|
34 // Data package description that passing between client to Server |
|
35 // specified in p[1] |
|
36 // |
|
37 enum TEtelDataPackageType |
|
38 { |
|
39 EIsaNull =0, |
|
40 EIsaDesTobeSet =1, |
|
41 EIsaDesTobeRead =2, |
|
42 EIsaDoubleDesTobeSet =3, |
|
43 EIsaDoubleDesTobeRead =4, |
|
44 EIsaCancelMessage =5, |
|
45 EIsaCancelSubSession =6, |
|
46 EIsaNarrowAndUnicodeDoubleDesTobeSet = 7, // narrow comes first then unicode |
|
47 EIsaNarrowAndUnicodeDoubleDesTobeRead = 8, |
|
48 EIsaNarrowDesToSetAndGet = 9, |
|
49 EIsaNarrowDesToGetUnicodeDesToSet = 10, |
|
50 EIsaUnicodeDesToSetAndGet = 11, |
|
51 EIsaUnicodeDesToGetNarrowDesToSet = 12, |
|
52 |
|
53 EIsaUnicodeDesTobeSet =0x0101, |
|
54 EIsaUnicodeDesTobeRead = 0x0102, |
|
55 EIsaUnicodeDoubleDesTobeSet =0x0103, |
|
56 EIsaUnicodeDoubleDesTobeRead =0x0104, |
|
57 |
|
58 EIsPriorityClientReqWithNull =0x1000, |
|
59 EIsPriorityClientReqWithaDesTobeSet =0x1001, |
|
60 EIsPriorityClientReqWithaDesTobeRead =0x1002, |
|
61 EIsPriorityClientReqWithaDoubleDesTobeSet =0x1003, |
|
62 EIsPriorityClientReqWithaDoubleDesTobeRead =0x1004, |
|
63 EIsPriorityClientReqWithaNarrowAndUnicodeDoubleDesTobeSet = 0x1007, |
|
64 EIsPriorityClientReqWithaNarrowAndUnicodeDoubleDesTobeRead = 0x1008, |
|
65 EIsPriorityClientReqWithaNarrowDesToSetAndGet = 0x1009, |
|
66 EIsPriorityClientReqWithaNarrowDesToGetUnicodeDesToSet = 0x1010, |
|
67 EIsPriorityClientReqWithaUnicodeDesToSetAndGet = 0x1011, |
|
68 EIsPriorityClientReqWithaDesToGetNarrowDesToSet = 0x1012, |
|
69 |
|
70 EIsPriorityClientReqWithaUnicodeDesTobeSet =0x1101, |
|
71 EIsPriorityClientReqWithaUnicodeDesTobeRead = 0x1102, |
|
72 EIsPriorityClientReqWithaUnicodeDoubleDesTobeSet = 0x1103, |
|
73 EIsPriorityClientReqWithaUnicodeDoubleDesTobeRead = 0x1104 |
|
74 }; |
|
75 |
|
76 const TInt KUnicodeReq =0x0100; |
|
77 const TInt KPriorityClientReq =0x1000; |
|
78 const TInt KEmergencyClientReq =0x1000; |
|
79 |
|
80 /** |
|
81 ETel Panics |
|
82 */ |
|
83 enum TEtelPanic |
|
84 { |
|
85 EEtelPanicBadPhoneHandle, // 0 |
|
86 EEtelPanicBadDescriptor, // 1 |
|
87 EEtelPanicInvalidRequestType, // 2 |
|
88 EEtelPanicRequestAsyncTwice, // 3 |
|
89 EEtelPanicBadSubSessionHandle, // 4 |
|
90 EEtelPanicZeroLengthDes, // 5 |
|
91 EEtelPanicDesLengthNegative, // 6 |
|
92 EEtelPanicNullPtrArray, // 7 |
|
93 EEtelPanicNullHandle, // 8 |
|
94 EEtelPanicHandleNotOpen, // 9 |
|
95 EEtelPanicIndexOutOfRange, // 10 |
|
96 EEtelPanicHandleNotClosed, // 11 |
|
97 EEtelPanicBadCallGroupType, // 12 |
|
98 EEtelPanicBadName, // 13 |
|
99 EEtelPanicExceededAllowedNoOfEmergencyClientSessions //14 |
|
100 }; |
|
101 |
|
102 /** |
|
103 ETel Faults |
|
104 */ |
|
105 enum TEtelFault |
|
106 { |
|
107 EEtelFaultMainSchedulerError, // 0 |
|
108 EEtelFaultSvrCreateServer, // 1 |
|
109 EEtelFaultSvrStartServer, // 2 |
|
110 EEtelFaultCommServerNotRunning, // 3 |
|
111 EEtelFaultCreateTrapCleanup, // 4 |
|
112 EEtelFaultCompletionReceivedWithNoReqPackage, // 5 |
|
113 EEtelFaultWaitingReqLostCObject, // 6 |
|
114 EEtelFaultCompleteReqWithoutReqEntry, // 7 |
|
115 EETelFaultRequestWithoutBuffer, // 8 |
|
116 EEtelFaultCallTsyServiceWithoutReqPackage, // 9 |
|
117 EEtelFaultMessageTypeCorrupted, // 10 |
|
118 EEtelFaultNotRecognisedTsyHandle, // 11 |
|
119 EEtelFaultInvalidIpcForCancel, // 12 |
|
120 EEtelFaultCanNotRelinquishOwnership, // 13 |
|
121 EEtelFaultBadTelSessionPointer, // 14 |
|
122 EEtelFaultBadSubSessionHandle, // 15 |
|
123 EEtelFaultBadPhoneFactoryPointer, // 16 |
|
124 EEtelFaultBadPhonePointer, // 17 |
|
125 EEtelFaultBadTelObjectPointer, // 18 |
|
126 EEtelFaultDes1DoesNotExist, // 19 |
|
127 EEtelFaultDes2DoesNotExist, // 20 |
|
128 EEtelFaultNegativeFlowcontrolCount, // 21 |
|
129 EEtelFaultNegativeSessionCount, // 22 |
|
130 EEtelFaultNegativeActiveReqCount, // 23 |
|
131 EEtelFaultBadMessageType, // 24 |
|
132 EEtelFaultClientNotPostedNotification, // 25 |
|
133 EEtelFaultUpdatingBufferOfDifferentIpc, // 26 |
|
134 EEtelFaultUpdatingIdenticalBuffer, // 27 |
|
135 EEtelFaultMaxDesLengthNegative, // 28 |
|
136 EEtelFaultPreviousReqNonNull, // 29 |
|
137 EEtelFaultNullBooleanArrayPointer, // 30 |
|
138 EEtelFaultCancelErrorWithoutCancelled, // 31 |
|
139 }; |
|
140 |
|
141 #define ETEL_SERVER_NAME _L("!EtelServer") // EKA2 Server names need a "!" prepended |
|
142 |
|
143 #define ETEL_SERVER_START_SEQUENCE 5 |
|
144 |
|
145 #endif // __ETELEXT_H__ |