telephonyserverplugins/simtsy/inc/SimTsy.h
changeset 0 3553901f7fa8
child 5 7ef16719d8cb
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 2001-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 // External header file for the Simulator TSY.
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @publishedPartner
       
    21  @test
       
    22 */
       
    23 
       
    24 #ifndef __SIMTSY_H__
       
    25 #define __SIMTSY_H__
       
    26 
       
    27 #include <e32property.h>
       
    28 
       
    29 
       
    30 //
       
    31 // Uids used for The Simulator TSY System Agent.
       
    32 // 20 Uids have been allocated for this purpose. Some of these are unused at present.
       
    33 //
       
    34 // 0x101F4126 changed to 0x101F4127 to avoid a potential clash in non-unique UIDs!
       
    35 // So infact we have 19 UIDs allocated from 0x101F4127.
       
    36 // 
       
    37 #define KUidSASimTsyValue	(0x101F4127)	// < First Uid allocated for the Sim TSY
       
    38 #define KUidSASimTsyEndValue	(0x101F413A)	// < Last Uid allocated for the Sim TSY
       
    39 
       
    40 
       
    41 /**
       
    42 P&S category for all SimTsy P&S properties.
       
    43 */
       
    44 static const TUid KUidPSSimTsyCategory = {0x101F7989}; // RootServer's KUidCommsProcess
       
    45 
       
    46 
       
    47 /**
       
    48 P&S Test number property for SimTsy
       
    49 */
       
    50 const TInt KPSSimTsyTestNumber = KUidSASimTsyValue+0;
       
    51 const RProperty::TType KPSSimTsyTestNumberKeyType = RProperty::EInt;
       
    52 
       
    53 
       
    54 /**
       
    55 P&S Incoming voice call property for SimTsy
       
    56 */
       
    57 const TInt KPSSimTsyIncomingVoiceCall = KUidSASimTsyValue+1;
       
    58 const RProperty::TType KPSSimTsyIncomingVoiceCallKeyType = RProperty::EInt;
       
    59 
       
    60 
       
    61 /**
       
    62 P&S Incoming data call property for SimTsy
       
    63 */
       
    64 const TInt KPSSimTsyIncomingDataCall = KUidSASimTsyValue+2;
       
    65 const RProperty::TType KPSSimTsyIncomingDataCallKeyType = RProperty::EInt;
       
    66 
       
    67 
       
    68 /**
       
    69 P&S Registration status change property for SimTsy
       
    70 */
       
    71 const TInt KPSSimTsyRegStatChange = KUidSASimTsyValue+3;
       
    72 const RProperty::TType KPSSimTsyRegStatChangeKeyType = RProperty::EInt;
       
    73 
       
    74 
       
    75 /**
       
    76 P&S Signal strength status change property for SimTsy
       
    77 */
       
    78 const TInt KPSSimTsySignalStrengthChange = KUidSASimTsyValue+4;
       
    79 const RProperty::TType KPSSimTsySignalStrengthChangeKeyType = RProperty::EInt;
       
    80 
       
    81 
       
    82 /**
       
    83 P&S Reduce Sim.Tsy timers property for SimTsy
       
    84 */
       
    85 const TInt KPSSimTsyTimersReduceTime = KUidSASimTsyValue+5;
       
    86 const RProperty::TType KPSSimTsyTimersReduceTimeSignalKeyType = RProperty::EInt;
       
    87 
       
    88 
       
    89 /**
       
    90 Value used in P&S property KPSSimTsyTimersReduceTime to indicate a
       
    91 request to reduce the time allocated to the simtsy timers.  The
       
    92 timers are started when simtsy is initialised, and are set to the
       
    93 durations specified in the simtsy configuration file.
       
    94 */
       
    95 const TInt KReduceSimTsyTimers = KMaxTInt;
       
    96 
       
    97 
       
    98 /**
       
    99 P&S Network change QoS property for SimTsy
       
   100 */
       
   101 const TInt KPSSimTsyNetworkQoSChange = KUidSASimTsyValue+6;
       
   102 const RProperty::TType KPSSimTsyNetworkQoSChangeKeyType = RProperty::EInt;
       
   103 
       
   104 
       
   105 /**
       
   106 P&S Network reg status change property for SimTsy
       
   107 */
       
   108 const TInt KPSSimtsyPacketServiceNtwkRegStatusChange = KUidSASimTsyValue+7;
       
   109 const RProperty::TType KPSSimtsyPacketServiceNtwkRegStatusChangeKeyType = RProperty::EInt;
       
   110 
       
   111 
       
   112 /**
       
   113 P&S Network context status change property for SimTsy
       
   114 */
       
   115 const TInt KPSSimtsyPacketContextStatusChange = KUidSASimTsyValue+8;
       
   116 const RProperty::TType KPSSimtsyPacketContextStatusChangeKeyType = RProperty::EInt;
       
   117 
       
   118 
       
   119 /**
       
   120 P&S Test number in use property for SimTsy
       
   121 */
       
   122 const TInt KPSSimTsyTestNumberInUse = KUidSASimTsyValue+9;
       
   123 const RProperty::TType KPSSimTsyTestNumberInUseKeyType = RProperty::EInt;
       
   124 
       
   125 /**
       
   126 P&S Remote Hangup property for SimTsy
       
   127 */
       
   128 const TInt KPSSimTsyRemoteHangup = KUidSASimTsyValue+10;
       
   129 const RProperty::TType KPSSimTsyRemoteHangupKeyType = RProperty::EInt;
       
   130 
       
   131 /**
       
   132 P&S Remote KPSSimTsyForceIncomingContextActivation property for SimTsy
       
   133 */
       
   134 const TInt KPSSimTsyForceIncomingContextActivation = KUidSASimTsyValue+11;
       
   135 const RProperty::TType KPSSimTsyForceIncomingContextActivationType = RProperty::EInt;
       
   136 
       
   137 /**
       
   138 P&S Remote KPSSimTsyMbmsService property for SimTsy
       
   139 */
       
   140 const TInt KPSSimTsyMbmsService = KUidSASimTsyValue+12;
       
   141 const RProperty::TType KPSSimTsyMbmsServiceType = RProperty::EInt;
       
   142 
       
   143 /**
       
   144 Enumerated type used for identifying different timer events.
       
   145 */
       
   146 enum TTimerEventId
       
   147 	{
       
   148 	ETimerIdAllTimers = KMaxTInt,
       
   149 	ETimerIdDtmfCdmaGetMode =1,
       
   150 	ETimerIdDtmfCdmaSetMode =2,
       
   151 	ETimerIdDtmfCdmaNotifyMode =3,
       
   152 	ETimerIdDtmfCdmaGetDuration =4,
       
   153 	ETimerIdDtmfCdmaSetDuration =5,
       
   154 	ETimerIdDtmfCdmaNotifyDuration =6,
       
   155 	ETimerIdEmergEnd =7,
       
   156 	ETimerIdFlashCallTxFlashEvent =8,
       
   157 	ETimerIdFlashCallRxFlashEvent =9,
       
   158 	ETimerIdInfoRecordRx =10,
       
   159 	ETimerIdLocPriGet =11,
       
   160 	ETimerIdLocPriSet =12,
       
   161 	ETimerIdLocPriNotify =13,
       
   162 	ETimerIdNtwkStatRegStat =14,
       
   163 	ETimerIdNtwkStatNitz =15,
       
   164 	ETimerIdNtwkStatRadioMode =16, 
       
   165 	ETimerIdNtwkStatRoamStat =17,
       
   166 	ETimerIdOtaGet =18,
       
   167 	ETimerIdOtaSet =19,
       
   168 	ETimerIdOtaStart =20,
       
   169 	ETimerIdOtaStop =21,
       
   170 	ETimerIdOtaVerify =22,
       
   171 	ETimerIdOtaProcess =23,
       
   172 	ETimerIdOtaSession =24,
       
   173 	ETimerIdOtaGetBlockLength =25,
       
   174 	ETimerIdOtaReadBlock =26,
       
   175 	ETimerIdOtaWriteBlock =27,
       
   176 	ETimerIdOtaNotifyBlock =28,
       
   177 	ETimerIdPcktContextNormal =29,
       
   178 	ETimerIdPcktContextNetWork =30,
       
   179 	ETimerIdPcktContextStatusChange =31,
       
   180 	ETimerIdPcktContextSetConfig =32,
       
   181 	ETimerIdPcktContextInitContext =33,
       
   182 	ETimerIdPcktContextCreateTft =34,
       
   183 	ETimerIdPcktContextConfigChange =35,
       
   184 	ETimerIdPcktQosNormal =36,
       
   185 	ETimerIdPcktQosNetWork =37,
       
   186 	ETimerIdPcktQosR5Network =38,
       
   187 	ETimerIdPcktServNormal =39,
       
   188 	ETimerIdPcktServPacket =40,
       
   189 	ETimerIdPcktServReleaseMode =41,
       
   190 	ETimerIdPcktServNtwkStatusChange =42,
       
   191 	ETimerIdPcktServStatusSuspend =43,
       
   192 	ETimerIdPcktServStatusDetach =44,
       
   193 	ETimerIdPcktServStatusUnattach =45,
       
   194 	ETimerIdPhBkStorReq =46,
       
   195 	ETimerIdPhBkStorOOBWrite =47,
       
   196 	ETimerIdPhBkStorOOBDelete =48,
       
   197 	ETimerIdPhBkUSimStorReq =49,
       
   198 	ETimerIdPhBkUSimStorOOBWrite =50,
       
   199 	ETimerIdPhBkUSimStorOOBDelete	=51,
       
   200 	ETimerIdSecurityNotifyEvent =52,
       
   201 	ETimerIdSecurityNotifyLockInfo =53,
       
   202 	ETimerIdSecurityUnlockNam =54,
       
   203 	ETimerIdSecurityLockNam =55,
       
   204 	ETimerIdPrefLangGet =56,
       
   205 	ETimerIdPrefLangStore =57,
       
   206 	ETimerIdPrefLangNotify =58,
       
   207 	ETimerIdRuimGetRevision =59,
       
   208 	ETimerIdSmsMessRx =60,
       
   209 	ETimerIdSmsMessTx =61,
       
   210 	ETimerIdSmsMessSmsp =62,
       
   211 	ETimerIdTtyGet =63,
       
   212 	ETimerIdTtySet =64,
       
   213 	ETimerIdTtyNotify =65,
       
   214 	ETimerIdSmsMessResumeReception =66,
       
   215 	ETimerIdPcktQoSSet =67,
       
   216 	ETimerIdContextActivationRequestedChange = 68,
       
   217 	ETimerIdNotifyWlanDataEvent=69,
       
   218 	ETimerIdNotifyUSimRel6Event =70,
       
   219 	ETimerIdCellInfo = 71,
       
   220 	ETimerIdMbmsPcktService=72,
       
   221 	ETimerIdMbmsPcktContextSetConfig=73,
       
   222 	ETimerIdMbmsUpdateSessionId=74,
       
   223 	ETimerIdONStorReq =75,
       
   224 	ETimerIdPcktServDynamicCaps=76
       
   225 	};
       
   226 
       
   227 
       
   228 _LIT(KConfigFilename,"c:\\config.txt");  //< Configuration filename.
       
   229 _LIT(KPhoneName,"SimulatorPhone");       //< The name of the phone supported by the Simulator TSY.
       
   230 _LIT(KVoiceLineName,"Voice");            //< The name of the voice line supported by the Simulator TSY.
       
   231 _LIT(KDataLineName,"Data");              //< The name of the data line supported by the Simulator TSY.
       
   232 
       
   233 #endif // __SIMTSY_H__