epoc32/include/etelext.h
branchSymbian2
changeset 2 2fe1408b6811
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/epoc32/include/etelext.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -0,0 +1,145 @@
     1.4 +// Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// 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
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +
    1.20 +
    1.21 +/**
    1.22 + @file
    1.23 + @publishedAll
    1.24 + @released
    1.25 +*/
    1.26 +
    1.27 +#ifndef __ETELEXT_H__
    1.28 +/** @internalComponent */
    1.29 +#define __ETELEXT_H__
    1.30 +
    1.31 +#if !defined(__E32BASE_H__)
    1.32 +#include <e32base.h>
    1.33 +#endif // __E32BASE_H__
    1.34 +
    1.35 +//
    1.36 +// TEtelDataPackageType
    1.37 +// Data package description that passing between client to Server
    1.38 +// specified in p[1]
    1.39 +//
    1.40 +enum TEtelDataPackageType
    1.41 +	{
    1.42 +	EIsaNull =0,
    1.43 +	EIsaDesTobeSet =1,
    1.44 +	EIsaDesTobeRead =2,
    1.45 +	EIsaDoubleDesTobeSet =3,
    1.46 +	EIsaDoubleDesTobeRead =4,
    1.47 +	EIsaCancelMessage =5,
    1.48 +	EIsaCancelSubSession =6,
    1.49 +	EIsaNarrowAndUnicodeDoubleDesTobeSet = 7,	// narrow comes first then unicode
    1.50 +	EIsaNarrowAndUnicodeDoubleDesTobeRead = 8,
    1.51 +	EIsaNarrowDesToSetAndGet = 9,
    1.52 +	EIsaNarrowDesToGetUnicodeDesToSet = 10,
    1.53 +	EIsaUnicodeDesToSetAndGet = 11,
    1.54 +	EIsaUnicodeDesToGetNarrowDesToSet = 12,
    1.55 +
    1.56 +	EIsaUnicodeDesTobeSet =0x0101,
    1.57 +	EIsaUnicodeDesTobeRead = 0x0102,
    1.58 +	EIsaUnicodeDoubleDesTobeSet =0x0103,
    1.59 +	EIsaUnicodeDoubleDesTobeRead =0x0104,
    1.60 +
    1.61 +	EIsPriorityClientReqWithNull =0x1000,
    1.62 +	EIsPriorityClientReqWithaDesTobeSet =0x1001,
    1.63 +	EIsPriorityClientReqWithaDesTobeRead =0x1002,
    1.64 +	EIsPriorityClientReqWithaDoubleDesTobeSet =0x1003,
    1.65 +	EIsPriorityClientReqWithaDoubleDesTobeRead =0x1004,
    1.66 +	EIsPriorityClientReqWithaNarrowAndUnicodeDoubleDesTobeSet = 0x1007,
    1.67 +	EIsPriorityClientReqWithaNarrowAndUnicodeDoubleDesTobeRead = 0x1008,
    1.68 +	EIsPriorityClientReqWithaNarrowDesToSetAndGet = 0x1009,
    1.69 +	EIsPriorityClientReqWithaNarrowDesToGetUnicodeDesToSet  = 0x1010,
    1.70 +	EIsPriorityClientReqWithaUnicodeDesToSetAndGet = 0x1011,
    1.71 +	EIsPriorityClientReqWithaDesToGetNarrowDesToSet = 0x1012,
    1.72 +
    1.73 +	EIsPriorityClientReqWithaUnicodeDesTobeSet =0x1101,
    1.74 +	EIsPriorityClientReqWithaUnicodeDesTobeRead = 0x1102,
    1.75 +	EIsPriorityClientReqWithaUnicodeDoubleDesTobeSet = 0x1103,
    1.76 +	EIsPriorityClientReqWithaUnicodeDoubleDesTobeRead = 0x1104
    1.77 +	};
    1.78 +
    1.79 +const TInt KUnicodeReq			=0x0100;
    1.80 +const TInt KPriorityClientReq	=0x1000;
    1.81 +const TInt KEmergencyClientReq	=0x1000;
    1.82 +
    1.83 +/**
    1.84 +ETel Panics
    1.85 +*/
    1.86 +enum TEtelPanic
    1.87 +	{
    1.88 +	EEtelPanicBadPhoneHandle,      // 0
    1.89 +	EEtelPanicBadDescriptor,       // 1
    1.90 +	EEtelPanicInvalidRequestType,  // 2
    1.91 +	EEtelPanicRequestAsyncTwice,   // 3
    1.92 +	EEtelPanicBadSubSessionHandle, // 4
    1.93 +	EEtelPanicZeroLengthDes,       // 5
    1.94 +	EEtelPanicDesLengthNegative,   // 6
    1.95 +	EEtelPanicNullPtrArray,        // 7
    1.96 +	EEtelPanicNullHandle,          // 8
    1.97 +	EEtelPanicHandleNotOpen,       // 9
    1.98 +	EEtelPanicIndexOutOfRange,     // 10
    1.99 +	EEtelPanicHandleNotClosed,     // 11
   1.100 +	EEtelPanicBadCallGroupType,    // 12
   1.101 +	EEtelPanicBadName,             // 13
   1.102 +	EEtelPanicExceededAllowedNoOfEmergencyClientSessions //14
   1.103 +	};
   1.104 +
   1.105 +/**
   1.106 +ETel Faults
   1.107 +*/
   1.108 +enum TEtelFault
   1.109 +	{
   1.110 +	EEtelFaultMainSchedulerError,                 // 0
   1.111 +	EEtelFaultSvrCreateServer,                    // 1
   1.112 +	EEtelFaultSvrStartServer,                     // 2
   1.113 +	EEtelFaultCommServerNotRunning,               // 3
   1.114 +	EEtelFaultCreateTrapCleanup,                  // 4
   1.115 +	EEtelFaultCompletionReceivedWithNoReqPackage, // 5
   1.116 +	EEtelFaultWaitingReqLostCObject,              // 6
   1.117 +	EEtelFaultCompleteReqWithoutReqEntry,         // 7
   1.118 +	EETelFaultRequestWithoutBuffer,               // 8
   1.119 +	EEtelFaultCallTsyServiceWithoutReqPackage,    // 9
   1.120 +	EEtelFaultMessageTypeCorrupted,               // 10
   1.121 +	EEtelFaultNotRecognisedTsyHandle,             // 11
   1.122 +	EEtelFaultInvalidIpcForCancel,                // 12
   1.123 +	EEtelFaultCanNotRelinquishOwnership,          // 13
   1.124 +	EEtelFaultBadTelSessionPointer,               // 14
   1.125 +	EEtelFaultBadSubSessionHandle,                // 15
   1.126 +	EEtelFaultBadPhoneFactoryPointer,             // 16
   1.127 +	EEtelFaultBadPhonePointer,                    // 17
   1.128 +	EEtelFaultBadTelObjectPointer,                // 18
   1.129 +	EEtelFaultDes1DoesNotExist,                   // 19
   1.130 +	EEtelFaultDes2DoesNotExist,                   // 20
   1.131 +	EEtelFaultNegativeFlowcontrolCount,           // 21
   1.132 +	EEtelFaultNegativeSessionCount,               // 22
   1.133 +	EEtelFaultNegativeActiveReqCount,             // 23
   1.134 +	EEtelFaultBadMessageType,                     // 24
   1.135 +	EEtelFaultClientNotPostedNotification,        // 25
   1.136 +	EEtelFaultUpdatingBufferOfDifferentIpc,       // 26
   1.137 +	EEtelFaultUpdatingIdenticalBuffer,            // 27
   1.138 +	EEtelFaultMaxDesLengthNegative,               // 28
   1.139 +	EEtelFaultPreviousReqNonNull,                 // 29
   1.140 +	EEtelFaultNullBooleanArrayPointer,            // 30
   1.141 +	EEtelFaultCancelErrorWithoutCancelled,        // 31
   1.142 +	};
   1.143 +
   1.144 +#define ETEL_SERVER_NAME	  _L("!EtelServer")  // EKA2 Server names need a "!" prepended
   1.145 +
   1.146 +#define ETEL_SERVER_START_SEQUENCE 5
   1.147 +
   1.148 +#endif // __ETELEXT_H__