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