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