telephonyserverplugins/simtsy/test/Te_Sim/Te_SimConstants.h
changeset 0 3553901f7fa8
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 2005-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 // Helpers to get the referencies to the  specification
       
    15 // 
       
    16 //
       
    17 
       
    18 
       
    19 
       
    20 /**
       
    21  @file
       
    22 */
       
    23 
       
    24 #ifndef __TE_SIM_CONSTANTS__
       
    25 #define __TE_SIM_CONSTANTS__
       
    26 
       
    27 _LIT(KSimPrimaryPacketContextName,"PRIMARY");
       
    28 
       
    29 #if defined(_UNICODE)
       
    30 #define	CHP_SRVS_CASE(the_case) (TPtrC((const TText *)(L"Case: " L##the_case)))
       
    31 #define	CHP_CNTXT_CASE(the_case) (TPtrC((const TText *)(L"Case: " L##the_case)))
       
    32 #define	CHP_QOS_CASE(the_case) (TPtrC((const TText *)(L"Case: " L##the_case)))
       
    33 #define	CHP_VOICE_CASE(the_case) (TPtrC((const TText *)(L"Case: " L##the_case)))
       
    34 #define	CHP_DATA_CASE(the_case) (TPtrC((const TText *)(L"Case: " L##the_case)))
       
    35 #define	CHP_SMS_CASE(the_case) (TPtrC((const TText *)(L"Case: " L##the_case)))
       
    36 #define	CHP_NTWK_CASE(the_case) (TPtrC((const TText *)(L"Case: " L##the_case)))
       
    37 #define	CHP_PHBK_CASE(the_case) (TPtrC((const TText *)(L"Case: " L##the_case)))
       
    38 #define	CHP_APPS_CASE(the_case) (TPtrC((const TText *)(L"Case: " L##the_case)))
       
    39 #define	CHP_SECURITY_CASE(the_case) (TPtrC((const TText *)(L"Case: " L##the_case)))
       
    40 #define CHP_IMS_CASE(the_case) (TPtrC((const TText *)(L"Case: " L##the_case)))
       
    41 #else
       
    42 #define	CHP_SRVS_CASE(the_case) (TPtrC((const TText *)("Case: " the_case)))
       
    43 #define	CHP_CNTXT_CASE(the_case) (TPtrC((const TText *)("Case: " the_case)))
       
    44 #define	CHP_QOS_CASE(the_case) (TPtrC((const TText *)("Case: " the_case)))
       
    45 #define	CHP_VOICE_CASE(the_case) (TPtrC((const TText *)(L"Case: " L##the_case)))
       
    46 #define	CHP_DATA_CASE(the_case) (TPtrC((const TText *)(L"Case: " L##the_case)))
       
    47 #define	CHP_SMS_CASE(the_case) (TPtrC((const TText *)(L"Case: " L##the_case)))
       
    48 #define	CHP_NTWK_CASE(the_case) (TPtrC((const TText *)(L"Case: " L##the_case)))
       
    49 #define	CHP_PHBK_CASE(the_case) (TPtrC((const TText *)(L"Case: " L##the_case)))
       
    50 #define	CHP_APPS_CASE(the_case) (TPtrC((const TText *)(L"Case: " L##the_case)))
       
    51 #define	CHP_SECURITY_CASE(the_case) (TPtrC((const TText *)(L"Case: " L##the_case)))
       
    52 #define CHP_IMS_CASE(the_case) (TPtrC((const TText *)(L"Case: " L##the_case)))
       
    53 #endif
       
    54 
       
    55 // Authorisation token and flow identifier constants
       
    56 #define SIMTSY_AUTH_TOKEN_TEST_1      (_L8("Test1"))
       
    57 #define SIMTSY_COMP_NUMBER1_TEST_1    (1)
       
    58 #define SIMTSY_IPFLOW_NUMBER1_TEST_1  (2)
       
    59 #define SIMTSY_COMP_NUMBER2_TEST_1    (3)
       
    60 #define SIMTSY_IPFLOW_NUMBER2_TEST_1  (4)
       
    61 
       
    62 #define SIMTSY_AUTH_TOKEN_TEST_2      (_L8("Test2"))
       
    63 #define SIMTSY_COMP_NUMBER1_TEST_2    (5)
       
    64 #define SIMTSY_IPFLOW_NUMBER1_TEST_2  (6)
       
    65 #define SIMTSY_COMP_NUMBER2_TEST_2    (7)
       
    66 #define SIMTSY_IPFLOW_NUMBER2_TEST_2  (8)
       
    67 #define SIMTSY_ICON_ID		      	  0
       
    68 
       
    69 typedef TBuf8<200> TSmsPdu;
       
    70 
       
    71 TInt StartNTRasSimulation(void);
       
    72 
       
    73 _LIT(KSmsStoreName, "S14");
       
    74 
       
    75 _LIT(KTelephoneNumber,"+1234");
       
    76 _LIT(KTelephoneNumber2,"1234");
       
    77 
       
    78 const TUint8 KTestPduA[]= { 0x01, 0xa0 };
       
    79 _LIT(KScaNumberA,"01632960000");
       
    80 const TUint8 KTestPduB[]= { 0x01, 0xa1 };
       
    81 _LIT(KScaNumberB,"01632960000");
       
    82 
       
    83 const TUint8 KTestPduRx1[]= { 0x01, 0xa0 };
       
    84 _LIT(KScaNumber1,"01632960000");
       
    85 const TUint8 KTestPduRx2[]= { 0x02, 0xa0 };
       
    86 _LIT(KScaNumber2,"01632960000");
       
    87 const TUint8 KTestPduRx3[]= { 0x03, 0xa1 };
       
    88 _LIT(KScaNumber3,"01632960000");
       
    89 
       
    90 
       
    91 const TUint8 KTestPduC[]= { 0x12, 0x34 };
       
    92 const TUint KCallCaps=(RCall::KCapsVoice | RCall::KCapsDial | RCall::KCapsAnswer);
       
    93 const TUint KLineCaps=(RLine::KCapsVoice | RLine::KCapsEventIncomingCall);
       
    94 const TUint32 KIndicatorActionCaps=(RMobilePhone::KCapsGetIndicator |	RMobilePhone::KCapsNotifyIndicatorChange);
       
    95 const TUint32 KIndicatorIndCaps=(RMobilePhone::KIndChargerConnected |	RMobilePhone::KIndNetworkAvailable | RMobilePhone::KIndCallInProgress);
       
    96 
       
    97 const TUint32 KBatteryChargerCaps=(RMobilePhone::KCapsGetBatteryInfo |	RMobilePhone::KCapsNotifyBatteryInfoChange);
       
    98 
       
    99 _LIT(KVodafoneSca,"+4441632960000");
       
   100 _LIT(KOrangeSca,"01632960000");
       
   101 
       
   102 const TUint8 KTestPhonebookA[]= { 
       
   103     0xA0, 0xC0, 0x01, 0x00, 0x00, 0xC1, 0x12, 0x00, 0x41, 0x00, 
       
   104     0x6E, 0x00, 0x64, 0x00, 0x79, 0x00, 0x4c, 0x00, 0x6f, 0x00, 
       
   105     0x63, 0x00, 0x61, 0x00, 0x6c, 0x00, 0xC3, 0x81, 0x00, 0xC2, 
       
   106     0x16, 0x00, 0x30, 0x00, 0x31, 0x00, 0x36, 0x00, 0x33, 0x00, 
       
   107     0x32, 0x00, 0x39, 0x00, 0x36, 0x00,	0x30, 0x00, 0x30, 0x00, 
       
   108     0x30, 0x00, 0x30, 0x00};
       
   109 
       
   110 
       
   111 const TUint8 KTestPhonebookB[]= { 0xA0, 0xC2, 0x16, 0x00, 0x30, 0x00, 0x37, 0x00, 0x37, 0x00,
       
   112 	0x34, 0x00, 0x37, 0x00, 0x30, 0x00, 0x36, 0x00, 0x35, 0x00, 0x34, 0x00, 0x31, 0x00, 0x36,
       
   113 	0x00, 0xC3, 0x91, 0x00, 0xC1, 0x08, 0x00,
       
   114 	0x41, 0x00, 0x6E, 0x00, 0x64, 0x00, 0x79, 0x00};
       
   115 
       
   116 const TUint8 KTestUSimPhonebookA[]= {
       
   117 	0xa0,0xc0,0x01,0x00,0x00,0xc1,0x08,0x00,0x4d,0x00,0x69,
       
   118 	0x00,0x6b,0x00,0x65,0x00,0xc3,0x81,0x00,0x00,0x00,0xc2,
       
   119 	0x06,0x00,0x35,0x00,0x31,0x00,0x33,0x00,0x00,0x00,0x00,
       
   120 	0xc6,0x0e,0x00,0x4e,0x00,0x69,0x00,0x6b,0x00,0x69,0x00,
       
   121 	0x74,0x00,0x61,0x00,0x73,0x00,0xc5,0x00,0x00,0xc1,0x0c,
       
   122 	0x00,0x4d,0x00,0x6f,0x00,0x62,0x00,0x69,0x00,0x6c,0x00,
       
   123 	0x65,0x00,0x00,0xc2,0x16,0x00,0x30,0x00,0x31,0x00,0x36,
       
   124 	0x00,0x33,0x00,0x32,0x00,0x39,0x00,0x36,0x00,0x30,0x00,
       
   125 	0x30,0x00,0x30,0x00,0x30,0x00,0xc3,0x81,0x00,0xc8,0x26,
       
   126 	0x00,0x61,0x00,0x6e,0x00,0x69,0x00,0x6b,0x00,0x69,0x00,
       
   127 	0x74,0x00,0x61,0x00,0x73,0x00,0x40,0x00,0x65,0x00,0x78,
       
   128 	0x00,0x63,0x00,0x69,0x00,0x74,0x00,0x65,0x00,0x2e,0x00,
       
   129 	0x63,0x00,0x6f,0x00,0x6d,0x00,0x00,0x00,0x00,0xc7,0x08,
       
   130 	0x00,0x57,0x00,0x6f,0x00,0x72,0x00,0x6b,0x00,0xca,0x00};
       
   131 
       
   132 const TUint8 KTestUSimPhonebookB[]= {
       
   133 	0xa0,0x00,0x00,0xc1,0x08,0x00,0x4d,0x00,0x69,0x00,0x6b,
       
   134 	0x00,0x65,0x00,0xc3,0x81,0x00,0x00,0x00,0xc2,0x06,0x00,
       
   135 	0x35,0x00,0x31,0x00,0x33,0x00,0x00,0x00,0x00,0xc6,0x0e,
       
   136 	0x00,0x4e,0x00,0x69,0x00,0x6b,0x00,0x69,0x00,0x74,0x00,
       
   137 	0x61,0x00,0x73,0x00,0xc5,0x01,0x00,0xc1,0x0c,0x00,0x4d,
       
   138 	0x00,0x6f,0x00,0x62,0x00,0x69,0x00,0x6c,0x00,0x65,0x00,
       
   139 	0xc3,0x81,0x00,0x00,0x00,0xc2,0x16,0x00,0x30,0x00,0x37,
       
   140 	0x00,0x39,0x00,0x37,0x00,0x34,0x00,0x39,0x00,0x34,0x00,
       
   141 	0x33,0x00,0x38,0x00,0x37,0x00,0x31,0x00,0x00,0x00,0x00,
       
   142 	0xc8,0x26,0x00,0x61,0x00,0x6e,0x00,0x69,0x00,0x6b,0x00,
       
   143 	0x69,0x00,0x74,0x00,0x61,0x00,0x73,0x00,0x40,0x00,0x65,
       
   144 	0x00,0x78,0x00,0x63,0x00,0x69,0x00,0x74,0x00,0x65,0x00,
       
   145 	0x2e,0x00,0x63,0x00,0x6f,0x00,0x6d,0x00,0x00,0x00,0x00,
       
   146 	0xc7,0x08,0x00,0x57,0x00,0x6f,0x00,0x72,0x00,0x6b,0x00,
       
   147 	0xca,0x00};
       
   148 
       
   149 const TUint8 KTestUSimPhonebookC[]= {
       
   150 	0xa0,0xc0,0x05,0x00,0x00,0xc1,0x08,0x00,0x41,0x00,0x6c, 
       
   151 	0x00,0x65,0x00,0x78,0x00,0xc3,0x81,0x00,0x00,0x00,0xc2, 
       
   152 	0x0e,0x00,0x35,0x00,0x31,0x00,0x33,0x00,0x33,0x00,0x34,
       
   153 	0x00,0x35,0x00,0x36,0x00,0x00,0x00,0x00,0xc6,0x0e,0x00, 
       
   154 	0x4e,0x00,0x69,0x00,0x6b,0x00,0x69,0x00,0x74,0x00,0x61, 
       
   155 	0x00,0x73,0x00,0xc5,0x00,0x00,0xc1,0x0c,0x00,0x4d,0x00, 
       
   156 	0x6f,0x00,0x62,0x00,0x69,0x00,0x6c,0x00,0x65,0x00,0x00, 
       
   157 	0xc2,0x16,0x00,0x30,0x00,0x31,0x00,0x36,0x00,0x33,0x00, 
       
   158 	0x32,0x00,0x39,0x00,0x36,0x00,0x30,0x00,0x30,0x00,0x30, 
       
   159 	0x00,0x30,0x00,0xc3,0x81,0x00,0xc8,0x00,0x00,0x00,0xc7,
       
   160 	0x00,0x00,0xca,0x00};
       
   161 
       
   162 const TUint8 KTestPhonebookBigName[]= { 0xA0, 0xC2, 0x16, 0x00, 
       
   163 	0x30, 0x00, 0x37, 0x00, 0x37, 0x00,
       
   164 	0x34, 0x00, 0x37, 0x00, 0x30, 0x00, 0x36, 0x00, 0x35, 0x00, 0x34, 0x00, 0x31, 0x00, 0x36, 0x00, 
       
   165 	0xC3, 0x91, 0x00, 0xC1, 0x90, 0x00,
       
   166 	0x41, 0x00, 0x6E, 0x00, 0x64, 0x00, 0x79, 0x00,	0x41, 0x00, 0x6E, 0x00, 0x64, 0x00, 0x79, 0x00,
       
   167 	0x41, 0x00, 0x6E, 0x00, 0x64, 0x00, 0x79, 0x00,	0x41, 0x00, 0x6E, 0x00, 0x64, 0x00, 0x79, 0x00,
       
   168 	0x41, 0x00, 0x6E, 0x00, 0x64, 0x00, 0x79, 0x00,	0x41, 0x00, 0x6E, 0x00, 0x64, 0x00, 0x79, 0x00,
       
   169 	0x41, 0x00, 0x6E, 0x00, 0x64, 0x00, 0x79, 0x00,	0x41, 0x00, 0x6E, 0x00, 0x64, 0x00, 0x79, 0x00,
       
   170 	0x41, 0x00, 0x6E, 0x00, 0x64, 0x00, 0x79, 0x00,	0x41, 0x00, 0x6E, 0x00, 0x64, 0x00, 0x79, 0x00,
       
   171 	0x41, 0x00, 0x6E, 0x00, 0x64, 0x00, 0x79, 0x00,	0x41, 0x00, 0x6E, 0x00, 0x64, 0x00, 0x79, 0x00,
       
   172 	0x41, 0x00, 0x6E, 0x00, 0x64, 0x00, 0x79, 0x00,	0x41, 0x00, 0x6E, 0x00, 0x64, 0x00, 0x79, 0x00,
       
   173 	0x41, 0x00, 0x6E, 0x00, 0x64, 0x00, 0x79, 0x00,	0x41, 0x00, 0x6E, 0x00, 0x64, 0x00, 0x79, 0x00,
       
   174 	0x41, 0x00, 0x6E, 0x00, 0x64, 0x00, 0x79, 0x00,	0x41, 0x00, 0x6E, 0x00, 0x64, 0x00, 0x79, 0x00,};
       
   175 
       
   176 const TUint8 KTestPhonebookBigNumber[]= { 0xA0, 0xC2, 0x84, 0x00, 
       
   177 	0x30, 0x00, 0x37, 0x00, 0x37, 0x00, 0x34, 0x00, 0x37, 0x00, 0x30, 0x00, 0x36, 0x00, 0x35, 0x00, 0x34, 0x00, 0x31, 0x00, 0x36, 0x00,
       
   178 	0x30, 0x00, 0x37, 0x00, 0x37, 0x00, 0x34, 0x00, 0x37, 0x00, 0x30, 0x00, 0x36, 0x00, 0x35, 0x00, 0x34, 0x00, 0x31, 0x00, 0x36, 0x00,
       
   179 	0x30, 0x00, 0x37, 0x00, 0x37, 0x00, 0x34, 0x00, 0x37, 0x00, 0x30, 0x00, 0x36, 0x00, 0x35, 0x00, 0x34, 0x00, 0x31, 0x00, 0x36, 0x00,
       
   180 	0x30, 0x00, 0x37, 0x00, 0x37, 0x00, 0x34, 0x00, 0x37, 0x00, 0x30, 0x00, 0x36, 0x00, 0x35, 0x00, 0x34, 0x00, 0x31, 0x00, 0x36, 0x00,
       
   181 	0x30, 0x00, 0x37, 0x00, 0x37, 0x00, 0x34, 0x00, 0x37, 0x00, 0x30, 0x00, 0x36, 0x00, 0x35, 0x00, 0x34, 0x00, 0x31, 0x00, 0x36, 0x00,
       
   182 	0x30, 0x00, 0x37, 0x00, 0x37, 0x00, 0x34, 0x00, 0x37, 0x00, 0x30, 0x00, 0x36, 0x00, 0x35, 0x00, 0x34, 0x00, 0x31, 0x00, 0x36, 0x00,
       
   183 	0x30, 0x00, 0x37, 0x00, 0x37, 0x00, 0x34, 0x00, 0x37, 0x00, 0x30, 0x00, 0x36, 0x00, 0x35, 0x00, 0x34, 0x00, 0x31, 0x00, 0x36, 0x00,
       
   184 	0x30, 0x00, 0x37, 0x00, 0x37, 0x00, 0x34, 0x00, 0x37, 0x00, 0x30, 0x00, 0x36, 0x00, 0x35, 0x00, 0x34, 0x00, 0x31, 0x00, 0x36, 0x00,
       
   185 	0x30, 0x00, 0x37, 0x00, 0x37, 0x00, 0x34, 0x00, 0x37, 0x00, 0x30, 0x00, 0x36, 0x00, 0x35, 0x00, 0x34, 0x00, 0x31, 0x00, 0x36, 0x00,
       
   186 	0x30, 0x00, 0x37, 0x00, 0x37, 0x00, 0x34, 0x00, 0x37, 0x00, 0x30, 0x00, 0x36, 0x00, 0x35, 0x00, 0x34, 0x00, 0x31, 0x00, 0x36, 0x00,
       
   187 	0x30, 0x00, 0x37, 0x00, 0x37, 0x00, 0x34, 0x00, 0x37, 0x00, 0x30, 0x00, 0x36, 0x00, 0x35, 0x00, 0x34, 0x00, 0x31, 0x00, 0x36, 0x00,
       
   188 	0x30, 0x00, 0x37, 0x00, 0x37, 0x00, 0x34, 0x00, 0x37, 0x00, 0x30, 0x00, 0x36, 0x00, 0x35, 0x00, 0x34, 0x00, 0x31, 0x00, 0x36, 0x00,
       
   189 	0xC3, 0x91, 0x00, 0xC1, 0x08, 0x00,
       
   190 	0x41, 0x00, 0x6E, 0x00, 0x64, 0x00, 0x79, 0x00};
       
   191 
       
   192 
       
   193 const TUint8 KTestPhonebookC[]= { 
       
   194 	0xA0, 0xC0, 0x05, 0x00, 0x00, 0xC1, 0x18, 0x00, 0x41, 0x00, 
       
   195 	0x6E, 0x00, 0x64, 0x00, 0x79, 0x00, 0x49, 0x00,	0x6E, 0x00, 
       
   196 	0x74, 0x00, 0x65, 0x00, 0x72, 0x00, 0x6E, 0x00, 0x61, 0x00, 
       
   197 	0x74, 0x00, 0xC3, 0x91, 0x00, 0x00,	0x00, 0xC2,	0x18, 0x00, 
       
   198 	0x34, 0x00, 0x34, 0x00, 0x31, 0x00, 0x36, 0x00, 0x33, 0x00, 
       
   199 	0x32, 0x00, 0x39, 0x00,	0x36, 0x00,	0x30, 0x00, 0x30, 0x00, 
       
   200 	0x30, 0x00, 0x30, 0x00};
       
   201 
       
   202 
       
   203 const TUint32 KSmsMessagingCaps = (TUint32)(RMobileSmsMessaging::KCapsReceiveUnstoredClientAck 
       
   204 								| RMobileSmsMessaging::KCapsReceiveUnstoredPhoneAck 
       
   205 								| RMobileSmsMessaging::KCapsReceiveStored
       
   206 								| RMobileSmsMessaging::KCapsSendWithAck
       
   207 								| RMobileSmsMessaging::KCapsGetSmspList
       
   208 								| RMobileSmsMessaging::KCapsSetSmspList);
       
   209 	
       
   210 	
       
   211 const TUint32 KSmsStoreCaps = (TUint32)(RMobilePhoneStore::KCapsWholeStore 
       
   212 									  | RMobilePhoneStore::KCapsIndividualEntry
       
   213 									  | RMobilePhoneStore::KCapsReadAccess
       
   214 									  | RMobilePhoneStore::KCapsWriteAccess
       
   215 									  | RMobilePhoneStore::KCapsDeleteAll
       
   216 									  | RMobilePhoneStore::KCapsNotifyEvent
       
   217 									| RMobileSmsStore::KCapsUnreadMessages
       
   218 									| RMobileSmsStore::KCapsReadMessages
       
   219 									| RMobileSmsStore::KCapsUnsentMessages
       
   220 									| RMobileSmsStore::KCapsGsmMessages);
       
   221 									  
       
   222 									  
       
   223 									  
       
   224 							
       
   225 
       
   226 
       
   227 const TUint32 KPhBkStoreCaps = (TUint32)(RMobilePhoneStore::KCapsWholeStore 
       
   228 										| RMobilePhoneStore::KCapsIndividualEntry
       
   229 										| RMobilePhoneStore::KCapsReadAccess
       
   230 										| RMobilePhoneStore::KCapsWriteAccess
       
   231 										| RMobilePhoneStore::KCapsDeleteAll
       
   232 										| RMobilePhoneStore::KCapsNotifyEvent);
       
   233 
       
   234 const TUint8 KTestSendPduA[]=	{ 0x01, 0xa0, 0x01, 0xa0,0x01, 0xa0,0x01, 0xa0,0x01, 0xa0,
       
   235 									0x01, 0xa0, 0x01, 0xa0,0x01, 0xa0,0x01, 0xa0,0x01, 0xa0,
       
   236 									0x01, 0xa0, 0x01, 0xa0,0x01, 0xa0,0x01, 0xa0,0x01, 0xa0,
       
   237 									0x01, 0xa0, 0x01, 0xa0,0x01, 0xa0,0x01, 0xa0,0x01, 0xa0,
       
   238 									0x01, 0xa0, 0x01, 0xa0,0x01, 0xa0,0x01, 0xa0,0x01, 0xa0,
       
   239 									0x01, 0xa0, 0x01, 0xa0,0x01, 0xa0,0x01, 0xa0,0x01, 0xa0,
       
   240 									0x01, 0xa0, 0x01, 0xa0,0x01, 0xa0,0x01, 0xa0,0x01, 0xa0,
       
   241 									0x01, 0xa0, 0x01, 0xa0,0x01, 0xa0,0x01, 0xa0,0x01, 0xa0 };
       
   242 const TUint8 KTestSendPduB[]= { 0x01, 0xa0};
       
   243 
       
   244  
       
   245 const TUint8 KTestSubmitReport[]= { 0x01, 0xa0 };
       
   246 _LIT8(KTestDeliveryReport, "\x02\xb0");
       
   247 
       
   248 
       
   249 _LIT(KTestSubscriberId,"5601632960000");
       
   250 
       
   251 // Context Configuration
       
   252 #define DPCKTTSY_PDP_TYPE1				RPacketContext::EPdpTypePPP
       
   253 #define DPCKTTSY_ACCESS_POINT1			_L8("ACME INTERNET PROVIDERS LTD")
       
   254 #define DPCKTTSY_PDP_ADDRESS1			_L8("i-MODE GATEWAY")
       
   255 #define DPCKTTSY_COMPRESSION1			RPacketContext::KPdpDataCompression
       
   256 #define DPCKTTSY_ANONYMOUS_ACCESS1		RPacketContext::ENotRequired
       
   257 #define DPCKTTSY_EGPRS_REQUIRED			TRUE		
       
   258 
       
   259 #define DPCKTTSY_CSY					_L("LOOPBACK.CSY")
       
   260 #define DPCKTTSY_PORT					_L("LOOPBACK::0")
       
   261 
       
   262 #define SIM_PACKET_SERVICE_CAPS (RPacketService::KCapsSuspendSupported | RPacketService::KCapsMSClassSupported |\
       
   263 				RPacketService::KCapsCDMA2000HighSpeedDataSupported |\
       
   264 				RPacketService::KCapsNetworkAvailabilitySupported | RPacketService::KCapsProtocolPPPSupported |\
       
   265 				RPacketService::KCapsHSDPASupported | RPacketService::KCapsEGPRSSupported |\
       
   266 				RPacketService::KCapsHSUPASupported)
       
   267 #define SIM_PACKET_SERVICE_CAPS1 (RPacketService::KCapsSuspendSupported | RPacketService::KCapsNetworkAvailabilitySupported |\
       
   268 								 RPacketService::KCapsProtocolPPPSupported | RPacketService::KCapsHSDPASupported |\
       
   269 								 RPacketService::KCapsEGPRSSupported | RPacketService::KCapsHSUPASupported )
       
   270 #define SIM_PACKET_SERVICE_CAPS2 (RPacketService::KCapsSuspendSupported | RPacketService::KCapsMSClassSupported |\
       
   271 								 RPacketService::KCapsNetworkAvailabilitySupported | RPacketService::KCapsProtocolPPPSupported |\
       
   272 								 RPacketService::KCapsHSDPASupported | RPacketService::KCapsEGPRSSupported |\
       
   273 								 RPacketService::KCapsHSUPASupported )
       
   274 #define SIM_PACKET_SERVICE_OPTION	RPacketContext::KHighSpeedCDMA2000Data
       
   275 #define SIM_PACKET_PROTOCOL			RPacketContext::EPdpTypePPP
       
   276 #define SIM_DEFAULT_PARAM			RPacketContext::KHighSpeedCDMA2000Data
       
   277 
       
   278 // CHAP authentication
       
   279 #define SIM_PACKET_CONTEXT_PROTOCOL1 RPacketContext::EProtocolCHAP
       
   280 #define SIM_PACKET_CONTEXT_USERNAME1 _L8("USER1")
       
   281 #define SIM_PACKET_CONTEXT_PASSWORD1 _L8("PASSWORD1")
       
   282 #define SIM_PACKET_CONTEXT_CHALLENGE1 _L8("CHALLENGE1")
       
   283 #define SIM_PACKET_CONTEXT_RESPONSE1 _L8("RESPONSE1")
       
   284 #define SIM_PACKET_CONTEXT_PRIMARYSERVER1 _L8("PRIMARYSERVER1")
       
   285 #define SIM_PACKET_CONTEXT_SECONDARYSERVER1 _L8("SECONDARYSERVER1")
       
   286 #define SIM_PACKET_CONTEXT_ID1 1
       
   287 #define SIM_PACKET_CONTEXT_PCO_ID 4
       
   288 
       
   289 // PAP authentication 
       
   290 #define SIM_PACKET_CONTEXT_PROTOCOL2 RPacketContext::EProtocolPAP
       
   291 #define SIM_PACKET_CONTEXT_USERNAME2 _L8("USER2")
       
   292 #define SIM_PACKET_CONTEXT_PASSWORD2 _L8("PASSWORD2")
       
   293 #define SIM_PACKET_CONTEXT_CHALLENGE2 _L8("NULL")
       
   294 #define SIM_PACKET_CONTEXT_RESPONSE2 _L8("NULL")
       
   295 #define SIM_PACKET_CONTEXT_PRIMARYSERVER2 _L8("PRIMARYSERVER2")
       
   296 #define SIM_PACKET_CONTEXT_SECONDARYSERVER2 _L8("SECONDARYSERVER2")
       
   297 #define SIM_PACKET_CONTEXT_ID2 2
       
   298 
       
   299 // GPRS Context Configuration
       
   300 #define GPRS_PACKET_CONTEXT_PCO_ID 5
       
   301 #define GPRS_CONTEXT_ADDITIONAL_PARAM_LEN	16		
       
   302 #define GPRS_PACKET_CONTEXT_ADDITIONAL_PARAM	_L8("ADDITIONALPARAM3")
       
   303 
       
   304 // R99_R4 Context Configuration
       
   305 #define R99_R4_PACKET_CONTEXT_PCO_ID 6
       
   306 #define R99_R4_CONTEXT_ADDITIONAL_PARAM_LEN	16		
       
   307 #define R99_R4_PACKET_CONTEXT_ADDITIONAL_PARAM	_L8("ADDITIONALPARAM4")
       
   308 
       
   309 //R5 Context Configuration 1
       
   310 #define R5_CONTEXT_PROTOCOL		RPacketContext::EPdpTypeIPv4
       
   311 #define R5_CONTEXT_GGSN			_L8("SYMBIAN INTERNET PROVIDER")
       
   312 #define R5_CONTEXT_PDP_ADDRESS	_L8("PROTOCOL ADDRESS")
       
   313 #define R5_CONTEXT_USE_EDGE		FALSE
       
   314 #define R5_CONTEXT_AUTH_PROT	RPacketContext::EProtocolCHAP
       
   315 #define R5_CONTEXT_USERNAME		_L8("USER3")
       
   316 #define R5_CONTEXT_PASSWORD		_L8("PASSWORD3")
       
   317 #define R5_CONTEXT_CHALLENGE	_L8("CHALLENGE3")
       
   318 #define R5_CONTEXT_RESPONSE		_L8("RESPONSE3")
       
   319 #define R5_CONTEXT_DNS1			_L8("PRIMARYSERVER3")
       
   320 #define R5_CONTEXT_DNS2			_L8("SECONDARYSERVER3")
       
   321 #define R5_CONTEXT_ID			3
       
   322 #define R5_CONTEXT_HEADER_COMPRESSION	RPacketContext::ERfc1144
       
   323 #define R5_CONTEXT_DATA_COMPRESSION		RPacketContext::EManufacturerDefaultDataCompression
       
   324 #define R5_CONTEXT_PCO_ID				4
       
   325 #define R5_CONTEXT_ADDITIONAL_PARAM_LEN	16		
       
   326 #define R5_CONTEXT_ADDITIONAL_PARAM		_L8("ADDITIONALPARAM1")
       
   327 
       
   328 //R5 Context Configuration 2
       
   329 #define R5_CONTEXT_PROTOCOL2		RPacketContext::EPdpTypePPP
       
   330 #define R5_CONTEXT_GGSN2			_L8("EASYNET ISP")
       
   331 #define R5_CONTEXT_PDP_ADDRESS2		_L8("PROT. ADDRESS")
       
   332 #define R5_CONTEXT_USE_EDGE2		TRUE
       
   333 #define R5_CONTEXT_AUTH_PROT2		RPacketContext::EProtocolCHAP
       
   334 #define R5_CONTEXT_USERNAME2		_L8("USER4")
       
   335 #define R5_CONTEXT_PASSWORD2		_L8("PASSWORD4")
       
   336 #define R5_CONTEXT_CHALLENGE2		_L8("CHALLENGE4")
       
   337 #define R5_CONTEXT_RESPONSE2		_L8("RESPONSE4")
       
   338 #define R5_CONTEXT_DNS1_2			_L8("PRIMARYSERVER4")
       
   339 #define R5_CONTEXT_DNS2_2			_L8("SECONDARYSERVER4")
       
   340 #define R5_CONTEXT_ID2				4
       
   341 #define R5_CONTEXT_HEADER_COMPRESSION2	RPacketContext::ERfc2507
       
   342 #define R5_CONTEXT_DATA_COMPRESSION2	RPacketContext::ENoDataCompression
       
   343 #define R5_CONTEXT_PCO_ID2			4
       
   344 #define R5_CONTEXT_ADDITIONAL_PARAM_LEN2	16		
       
   345 #define R5_CONTEXT_ADDITIONAL_PARAM2	_L8("ADDITIONALPARAM2")
       
   346 
       
   347 //Packet Filter Info - V3 Type 1
       
   348 #define V3_PCKT_FILTER_ID									(1)
       
   349 #define V3_PCKT_FILTER_EVALUATION_PRECEDENCE_INDEX			(0)
       
   350 #define V3_PCKT_FILTER_PROTOCOLNUMBER_OR_NEXTHEADER			(6)
       
   351 #define V3_PCKT_FILTER_MINIMUM_SOURCE_PORT_NUMBER			(2)
       
   352 #define V3_PCKT_FILTER_MAXIMUM_SOURCE_PORT_NUMBER			(65000)
       
   353 #define V3_PCKT_FILTER_MINIMUM_DESTINATION_PORT_NUMBER		(8)
       
   354 #define V3_PCKT_FILTER_MAXIMUM_DESTINATION_PORT_NUMBER		(65100)
       
   355 #define V3_PCKT_FILTER_TYPE_OF_SERVICE_OR_TRAFFIC_CLASS		(0x3F8C)
       
   356 
       
   357 //for RSat
       
   358 #define SIMTSY_REFRESH_TYPE1			RSat::EFileChangeNotification
       
   359 #define SIMTSY_REFRESH_TYPE2			RSat::ESimInitFullFileChangeNotification
       
   360 #define SIMTSY_REFRESH_TYPE3			RSat::ESimReset
       
   361 #define SIMTSY_REFRESH_FILE1			RSat::KAdnEf
       
   362 #define SIMTSY_REFRESH_FILE2			RSat::KFdnEf
       
   363 #define SIMTSY_REFRESH_RESULT_SUCCESS   RSat::KSuccess
       
   364 #define SIMTSY_REFRESH_RESULT_FAIL		RSat::KMeUnableToProcessCmd
       
   365 #define SIMTSY_REFRESH_RSP_NO_INFO		RSat::KNoAdditionalInfo
       
   366 #define SIMTSY_REFRESH_NULL_BUF			_L("")
       
   367 #define SIMTSY_MM_ELEM_FILE1			RSat::KMmlEf
       
   368 #define SIMTSY_MM_ELEM_FILE2			RSat::KMmdfEf
       
   369 
       
   370 #define SIMTSY_MMMSG_REF_TAG			106
       
   371 #define SIMTSY_MMMSG_REF_LENGTH			3
       
   372 
       
   373 #define SIMTSY_RCPTION_FILE_TAG			18
       
   374 #define SIMTSY_RCPTION_LENGTH			2
       
   375 #define SIMTSY_RCPTION_NUM_FILES		1
       
   376 
       
   377 #define SIMTSY_MMCONTENT_ID_TAG			110
       
   378 #define SIMTSY_MMCONTENT_ID_LEN			3
       
   379 
       
   380 #define SIMTSY_MMMSG_ID_TAG			107
       
   381 #define SIMTSY_MMMSG_ID_LEN			1
       
   382 
       
   383 #define SIMTSY_TXT_ATTR_TAG			80
       
   384 #define SIMTSY_TXT_ATTR_LEN			4
       
   385 #define SIMTSY_TXT_ATTR_FORMAT			_L("0000")
       
   386 
       
   387 #define SIMTSY_DEVICEID_ME				RSat::KME
       
   388 #define SIMTSY_DEVICEID_NETWORK			RSat::KNetwork
       
   389 #define SIMTSY_ALPHAID_STATUS 			RSat::EAlphaIdProvided
       
   390 #define SIMTSY_ALPHAID_BUF				_L("\xABC")
       
   391 #define SIMTSY_ICONID_QLFR				RSat::ENoIconId
       
   392 #define SIMTSY_ICONID_ID				SIMTSY_ICON_ID
       
   393 #define SIMTSY_MMMSG_REF_FILES			_L("\x1063\x0ABC")
       
   394 #define SIMTSY_RCPTION_FILES			_L("\x1821\x3F00\x2FE2")
       
   395 #define SIMTSY_SUBMISSION_FILES			_L("\x1821\x3F00\x2FE2")
       
   396 #define SIMTSY_MMCONTENT_ID_DATA		_L("\x1103\xABC")
       
   397 #define SIMTSY_MMMSG_ID_DATA			_L("\x1071")
       
   398 #define SIMTSY_MMMSG_ID_DATA_2			_L("\x1072")
       
   399 #define SIMTSY_TXT_ATTR_STATUS			(RSat::ETextAttributeProvided)
       
   400 #define SIMTSY_FRAME_IDENTIFIER			0
       
   401 #define SIMTSY_DEF_FRAME_IDENTIFIER		0
       
   402 #define SIMTSY_FRAME_LAYOUT_BUFFER		_L("\xABCD") 
       
   403 #define SIMTSY_USSD_DCS					0x12
       
   404 #define SIMTSY_USSD_STR					_L("\xA0A1")
       
   405 #define SIMTSY_NOTFN_DNLD				_L("\xA0A2")
       
   406 #define SIMTSY_LAUNCH_BROWSER_FRM_ID	0x12
       
   407 
       
   408 _LIT8(SIMTSY_TXT_ATTR_DATA,"\x00A");
       
   409 
       
   410 //IMS Authorization
       
   411 #define IMS_AUTH_IMPI				_L8("IMPI")
       
   412 #define IMS_AUTH_IMPU_COUNT			(4)
       
   413 #define IMS_AUTH_IMPU_VALUE1		_L8("IMPU-1")
       
   414 #define IMS_AUTH_IMPU_VALUE2		_L8("IMPU-2")
       
   415 #define IMS_AUTH_IMPU_VALUE3		_L8("IMPU-3")
       
   416 #define IMS_AUTH_IMPU_VALUE4		_L8("IMPU-4")
       
   417 #define IMS_AUTH_HNDN				_L8("HNDN")
       
   418 #define IMS_AUTH_DATASOURCE			RMobilePhone::EFromISIM
       
   419 
       
   420 #define IMS_AUTH_IMPI2				_L8("IMPI2")
       
   421 #define IMS_AUTH_IMPU2_COUNT		(2)
       
   422 #define IMS_AUTH_IMPU2_VALUE1		_L8("IMPU2-1")
       
   423 #define IMS_AUTH_IMPU2_VALUE2		_L8("IMPU2-2")
       
   424 #define IMS_AUTH_HNDN2				_L8("HNDN2")
       
   425 #define IMS_AUTH_DATASOURCE2		RMobilePhone::EFromUSIM
       
   426 
       
   427 //IMS Authentication
       
   428 #define IMS_AUTH_AUTN_IN1 (_L8("AUTN_IN"))
       
   429 #define IMS_AUTH_RAND_IN1 (_L8("RAND_IN"))
       
   430 #define IMS_AUTH_RES_OUT1  (_L8("2345678912345601"))
       
   431 #define IMS_AUTH_IK_OUT1  (_L8("345601632960000"))		
       
   432 #define IMS_AUTH_CK_OUT1 (_L8("45601632960000"))
       
   433 #define IMS_AUTH_AUTS_OUT1 (_L8(""))
       
   434 
       
   435 #define IMS_AUTH_AUTN_IN2 (_L8("AUTN_IN2"))
       
   436 #define IMS_AUTH_RAND_IN2 (_L8("RAND_IN2"))
       
   437 #define IMS_AUTH_RES_OUT2  (_L8(""))
       
   438 #define IMS_AUTH_IK_OUT2  (_L8(""))		
       
   439 #define IMS_AUTH_CK_OUT2 (_L8(""))
       
   440 #define IMS_AUTH_AUTS_OUT2 (_L8("601632960000"))
       
   441 #define IMS_AUTH_ERR (-3214)
       
   442 
       
   443 //USIM R6 support
       
   444 #define SIMTSY_GBA_NAFLIST_COUNT (3)
       
   445 #define SIMTSY_MBMS_MSKLIST_COUNT (3)
       
   446 
       
   447 #endif // __TE_SIM_CONSTANTS__