diff -r 000000000000 -r 3553901f7fa8 telephonyserverplugins/simtsy/inc/SimConstants.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/telephonyserverplugins/simtsy/inc/SimConstants.h Tue Feb 02 01:41:59 2010 +0200 @@ -0,0 +1,548 @@ +// Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// Holds the literals and constants that are used in the Simulator TSY. +// +// + +/** + @file + @internalAll +*/ + +#ifndef __SIMCONSTANTS_H__ +#define __SIMCONSTANTS_H__ + +#include +#include "SimTsy.h" +#include "etelmm.h" + +// Constants for the Configuration files +_LIT(KConfigFileDir,"simtsy"); // < The output directory for the SIM TSY. +_LIT8(KSectionNameFormat,"test%d"); // < Section name format within configurations file. +const TInt KDefaultTestNumber=0; // < The default test number. + +const TUint KStdDelimiter=','; // < Standard Delimiter for config file (a comma) + + + +_LIT8(KGsmPhoneBook, "T2"); +_LIT8(KUSimPhoneBook, "T3"); + +_LIT8(KICCLockedAtStart, "ICCLockedAtStart"); +_LIT8(KICCStatus, "ICCStatus"); +const TBool KDefaultICCLockedAtStart=0; +const TInt KDefaultPauseDuration= 2; //< Default Pause +_LIT8(KTriggerEventIPC, "TriggerEventIPC"); //< +_LIT8(KSecurityCodes, "SecurityCodes"); +_LIT8(KSecurityCodeAttempts, "SecurityCodeAttempts"); +_LIT8(KICCSetting, "ICCSetting"); + +_LIT8(KDiallingPauseDuration,"DiallingPauseDuration"); // < Configuration file tag for dialling pause. +_LIT8(KConnectingPauseDuration,"ConnectingPauseDuration"); // < Configuration file tag for connecting pause. +_LIT8(KDisconnectingPauseDuration,"DisconnectingPauseDuration"); // < Configuration file tag for disconnecting pause. +_LIT8(KAnswerIncomingPauseDuration,"AnswerIncomingPauseDuration"); // < Configuration file tag for answer incoming pause. +_LIT8(KNotifyIncomingCallPauseDuration, "NotifyIncomingCallPauseDuration"); // < Configuration file tag for notify incoming call pause. +_LIT8(KRemoteHangupPauseDuration,"RemoteHangupPauseDuration"); // < Configuration file tag for remote hangup pause. + +_LIT8(KNotifyRemotePartyInfo, "RemotePartyInfo"); + +_LIT8(KDataCallCaps,"DataCallCaps"); +_LIT8(KDynamicHSCSDInfo,"DataHscsdInfo"); +_LIT8(KDataRLPparams,"DataRlpParams"); + +const TInt KDefaultDiallingPauseDuration=1; // < Default dialling pause +const TInt KDefaultConnectingPauseDuration=1; // < Default connecting pause +const TInt KDefaultDisconnectingPauseDuration=1; // < Default disconnecting pause +const TInt KDefaultAnswerIncomingPauseDuration=1; // < Default answer incoming call pause +const TInt KDefaultNotifyIncomingCallPauseDuration=0; // < Default notify incoming call pause +const TInt KDefaultRemoteHangupPauseDuration=1; // < Default answer remote hangup pause + +_LIT8(KSmsRx,"SmsRx"); // < Configuration file tag for SMS reception +_LIT8(KSmsTx,"SmsTx"); // < Configuration file tag for SMS transmission +_LIT8(KSmsRxPeriod,"SmsRxPeriod"); // < Configuration file tag for SMS reception pause +_LIT8(KSmsAckNackPause,"SmsAckNackPause"); // < Configuration file tag for SMS ack/nack pause +_LIT8(KSmsResumePause,"SmsResumePause"); // < Configuration file tag for SMS resume pause +_LIT8(KSmsStartRxDelay,"SmsStartRxDelay"); // < Configuration file tag for SMS start reception flag + +_LIT8(KSmsStartRxDelay2,"SmsStartRxDelay2"); // < Configuration file tag for SMS start reception flag + +_LIT8(KSmsTxPause,"SmsTxPause"); // < Configuration file tag for SMS transmition pause +_LIT8(KSmsControlCaps,"SmsControlCaps"); // < Configuration file tag for SMS control capabilities + +const TInt KDefaultSmsRxPeriod=1; // < Default period between simulating MT SMS +const TInt KDefaultSmsAckNackPause=1; // < Default pause before completing Ack/Nack +const TInt KDefaultSmsResumePause=1; // < Default pause before completing Resume +const TInt KDefaultSmsTxPause=1; // < Default pause before completing Resume + +const RMobileSmsMessaging::TMobileSmsControlCaps KDefaultSmsControlCaps=RMobileSmsMessaging::TMobileSmsControlCaps(0x1c7); // < Default control capabilities + + +_LIT8(KSmsModeCaps,"SmsModeCaps"); // < Configuration file tag for SMS mode capabilities +const RMobileSmsMessaging::TMobileSmsModeCaps KDefaultSmsModeCaps=RMobileSmsMessaging::KCapsGsmSms; // < Default mode is GSM + +_LIT8(KSmsStore,"SmsStore"); // < Configuration file tag for SMS Store definition +_LIT8(KSmsStoreEntry,"SmsStoreEntry"); // < Configuration file tag for SMS Store entry +_LIT8(KSmsPhoneStoreCaps,"SmsPhoneStoreCaps"); // < Configuration file tag for Phone store caps for SmsStore + +const TInt KDefaultSmsStoreIndividualReqPause=1; // < Default pause before completing an "individual" phonebook request +const TInt KDefaultSmsStoreBatchReqPause=1; // < Default pause before completing a "batch" phonebook request +const TUint KDefaultSmsPhoneStoreCaps=0xFC000000; // < Default Phone store caps for SmsStore +const TUint KDefaultSmsOnlySmsCaps=0x1f; // < Default SmsStore level caps for sms store. SmsStoreCaps=SmsPhoneStoreCaps+SmsOnlyStoreCaps + + +_LIT8(KSmsStoreIndividualReqPause,"SmsStoreIndividualReqPause"); // < Configuration file tag for pause of an individual SMS Store operation +_LIT8(KSmsStoreBatchReqPause,"SmsStoreBatchReqPause"); // < Configuration file tag for pause of a batch SMS Store operation +_LIT8(KPhBkPhoneStoreCaps,"PhBkPhoneStoreCaps"); // < Configuration file tag for Phone store caps for PhBkStore +_LIT8(KPhBkPhoneUSimStoreCaps,"PhBkPhoneUSimStoreCaps"); + +const TInt KDefaultPhBkStoreIndividualReqPause=1; // < Default pause before completing an "individual" phonebook request +const TInt KDefaultPhBkStoreBatchReqPause=1; // < Default pause before completing a "batch" phonebook request +const TUint KDefaultPhBkPhoneStoreCaps=0xFC000000; // < Default Phone store caps for PhBk + +_LIT8(KPhBkStore,"PhBkStore"); // < Configuration file tag for phonebook store definition +_LIT8(KPhBkUSimStore,"PhBkUSimStore"); // < Configuration file tag for USIM phonebook store definition + +_LIT8(KPhBkStoreEntry,"PhBkStoreEntry"); // < Configuration file tag for phonebook store entry +_LIT8(KPhBkUSimStoreEntry,"PhBkUSimStoreEntry"); // < Configuration file tag for USIM phonebook store entry + +_LIT8(KPhBkError,"PhBkError"); // < Configuration file tag for phonebook simulated error +_LIT8(KOOBPhBkWrite,"OOBPhBkWrite"); // < Configuration file tag for "out of band" phonebook write +_LIT8(KOOBPhBkDelete,"OOBPhBkDelete"); // < Configuration file tag for "out of band" phonebook delete +_LIT8(KOOBPhBkUSimWrite,"OOBPhBkUSimWrite"); // < Configuration file tag for "out of band" USIM phonebook write +_LIT8(KOOBPhBkUSimDelete,"OOBPhBkUSimDelete"); +_LIT8(KPhBkStoreIndividualReqPause,"PhBkStoreIndividualReqPause"); // < Configuration tag for pause of an individual phonebook operation +_LIT8(KPhBkStoreBatchReqPause,"PhBkStoreBatchReqPause"); // < Configuration tag for pause of a batch phonebook operation + +const TInt KDefaultONStoreIndividualReqPause=1; // < Default pause before completing an "individual" Own Number store request +const TUint KDefaultONPhoneStoreCaps=0xFC000000; // < Default Own Number store caps +_LIT8(KONStore,"ONStore"); // < Configuration file tag for Own Number store definition +_LIT8(KONStoreEntry,"ONStoreEntry"); // < Configuration file tag for Own Number store entry +_LIT8(KONPhoneStoreCaps,"ONPhoneStoreCaps"); // < Configuration file tag for Own Number store caps +_LIT8(KONStoreIndividualReqPause,"ONStoreIndividualReqPause"); // < Configuration tag for pause of an individual Own Number store operation + +_LIT8(KSmsParam,"SmsParam"); +_LIT8(KSmsParamEntry,"SmsParamEntry"); +_LIT8(KSmspIndividualReqPause,"SmspIndividualReqPause"); +_LIT8(KSmspBatchReqPause,"SmspBatchReqPause"); +const TInt KDefaultSmspIndividualReqPause=1; // < Default pause before completing an "individual" phonebook request +const TInt KDefaultSmspBatchReqPause=1; // < Default pause before completing a "batch" phonebook request + +_LIT8(KSSLevel,"SignalStrengthLevel"); // < Configuration tag for Signal Strength level information +_LIT8(KSSNotifyCap,"NotifySignalStrengthChangeCap"); // < Configuration tag for Signal Strength notification capability + +_LIT8(KIndicators,"Indicators"); // < Configuration tag for Signal Strength level information +_LIT8(KIndicatorCheckPeriod,"IndicatorCheckPeriod"); // < Configuration tag for Indicator check period +_LIT8(KBatteryCharger,"BatteryCharger"); // < Configuration tag for Battery Charger information + +_LIT8(KSmspMaxNumSlots,"SmsParamMaxNumSlots"); // < configuration file tag for number of entries in a smsp list +const TInt KDefaultSmspMaxNumSlots=1; // < Default Number of entries in a smsp list + +_LIT8(KRegStatus,"RegStatus"); // < Configuration tag for Registration Status information +_LIT8(KNetworkInfo,"NetworkInfo"); // < Configuration tag for Network Information information +_LIT8(KNitzInfo,"NitzInfo"); // < Configuration tag for NITZ information +_LIT8(KCellInfo,"CellInfo"); // < Configuration tag for Cell information +_LIT8(KLocationArea,"LocationArea"); // < Configuration tag for location area information + + +_LIT8(KRadioMode,"RadioMode"); // < Configuration tag for NITZ information +const TUint KFirstLACDefault=0; // < Default for First Location area code for defining the entire range of LACs for the registered PLMN. + +const TUint KLastLACDefault = 3; // < Default for Last Location area code defining the entire range of LACs for the registered PLMN. + +_LIT8(KServiceProviderName,"ServiceProviderName"); // < Configuration tag for Service Provider +const RMobilePhone::TDisplayRequirements KDisplayReqDefault = RMobilePhone::KDisplayPLMNNotRequired; //Default display requirements for service provider +_LIT8(KSPNameDefault, "Vodafone"); +_LIT8(KPLMNFieldDefault, "\x50\x03\x21\x44\x21"); // < Default PLMN field TLV buffer. This corresponds to tag=80, len=3,val=(MCC=123, MNC=123) + +_LIT8(KSubscriberId,"SubscriberId"); // < Configuration tag for Subscriber ID +_LIT8(KSubscriberIdDefault,"01234567890123"); // < Default Subscriber ID (used if no Subscriber ID tag is present) +_LIT8(KPhoneId,"PhoneId"); // < Configuration tag for PhoneId +_LIT8(KPhoneManufacturerDefault, "Symbian"); // < Default Manufacturer +_LIT8(KPhoneModelDefault, "888"); // < Default Model +_LIT8(KPhoneRevesionDefault, "0.1"); // < Default Revision +_LIT8(KPhoneSerialNumberDefault, "987654321"); // < Default Serail Number + +_LIT8(KNetworkMode,"NetworkMode"); // < Configuration tag for Network Mode +const TInt KNetworkModeDefault=(TInt)RMobilePhone::ENetworkModeGsm; + // < Default Network Mode (used if no network mode is present) + +_LIT8(KCommSetup,"CommSetup"); // < Configuration tag for communications port set-up. + +_LIT8(KBearerService,"BearerService"); // < Configuration tag for Bearer Service information. +const TUint32 KDefaultBearerCaps=RCall::KBearerCapsProtocolNone; // < Default Bearer Capability information, used if no configuration file tag is present. +const RCall::TCallBearerSpeed KDefaultBearerSpeed=RCall::EBearerData9600; // < Default Bearer Speed information, used if no configuration file tag is present. + +// default notification type is 'Timer' +_LIT8(KNotificationTypeTimer, "Timer"); +_LIT8(KNotificationTypePublishSubscribe, "PublishSubscribe"); + +_LIT8(KPacketRegStatus,"PacketRegStatus"); +_LIT8(KNetworkRegStatusType,"NetworkRegStatusType"); +_LIT8(KNetworkRegStatus,"NetworkRegStatus"); +_LIT8(KDynamicCaps,"DynamicCaps"); + +_LIT8(KQosProfileReqGPRS,"QosProfileReqGPRS"); +_LIT8(KQosProfileNegGPRS,"QosProfileNegGPRS"); +//_LIT8(KQosProfileReqCDMA,"QosProfileReqCDMA"); +//_LIT8(KQosProfileNegCDMA,"QosProfileNegCDMA"); +_LIT8(KQosProfileCapsGPRS,"QosProfileCapsGPRS"); +//_LIT8(KQosProfileCapsCDMA,"QosProfileCapsCDMA"); + +_LIT8(KQosProfileReqR99, "QosProfileReqR99"); +_LIT8(KQosProfileNegR99, "QosProfileNegR99"); +_LIT8(KQosProfileCapsR99, "QosProfileCapsR99"); + +_LIT8(KQosProfileReqR5, "QosProfileReqR5"); +_LIT8(KQosProfileNegR5, "QosProfileNegR5"); +_LIT8(KQosProfileCapsR5, "QosProfileCapsR5"); + +_LIT8(KQosNetworkNotification, "QosNetworkNotification"); +_LIT8(KQosR5NetworkNotification, "QosR5NetworkNotification"); +_LIT8(KQosNetworkNotificationType, "QosNetworkNotificationType"); +_LIT8(KSetProfileFail, "SetProfileFail"); + +_LIT8(KSetConfigFail, "SetConfigFail"); +_LIT8(KSetConfigDelay, "SetConfigDelay"); +_LIT8(KDeleteTftFail, "DeleteTftFail"); +_LIT8(KCreateTftConfig, "CreateTftConfig"); +_LIT8(KAddPacketFilter, "AddPacketFilter"); +_LIT8(KSetQoSDelay, "SetQoSDelay"); + + +/**** */ + +_LIT8(KPacketReleaseMode, "ReleaseMode"); +_LIT8(KContextConfigRel99,"R99ContextConfig"); + +_LIT8(KSetContextConfigGPRS,"SetContextConfigGPRS"); +_LIT8(KDefaultContextparamGPRS,"DefaultContextparamGPRS"); +_LIT8(KDefaultGPRSAdditionalParamItem, "DefaultGPRSAdditionalParamItem"); +_LIT8(KAdditionalParamItemGPRS, "AdditionalParamItemGPRS"); + +//_LIT8(KSetContextConfigCDMA,"SetContextConfigCDMA"); +//_LIT8(KDefaultContextparamCDMA,"DefaultContextparamCDMA"); + +_LIT8(KSetContextConfigRel99,"SetContextConfigR99"); +_LIT8(KDefaultContextparamRel99,"DefaultContextparamRel99"); +_LIT8(KDefaultAdditionalParamItemRel99,"DefaultAdditionalParamItemRel99"); +_LIT8(KAdditionalParamItemRel99, "AdditionalParamItemRel99"); + +_LIT8(KSetContextConfigRel5,"SetContextConfigR5"); +_LIT8(KAdditionalParamItem, "AdditionalParamItem"); +_LIT8(KDefaultContextParamRel5,"DefaultContextParamRel5"); +_LIT8(KDefaultAdditionalParamItem, "DefaultAdditionalParamItem"); + + +_LIT8(KDelayIncomingContext, "DelayIncomingContext"); +_LIT8(KNoTypeIndex, "NoTypeIndex"); + + +_LIT8(KPacketFilterInfo, "TFTfilter"); +_LIT8(KNotifyContextStatusChange, "NotifyContextStatusChange"); +_LIT8(KNotifyContextStatusChangeType, "NotifyContextStatusChangeType"); +_LIT8(KNotifyContextConfigChange, "NotifyContextConfigChange"); + + +_LIT8(KAuthorizationInfo, "IMSAuthorizationInfo"); +_LIT8(KAuthenticationInfo, "IMSAuthenticationInfo"); + +// Services Control table entry's +_LIT8(KUSIMServiceTableSupportedEntrys, "USIMServiceTableSupportedEntrys"); +_LIT8(USIMServiceTableEnabledEntrys, "USIMServiceTableEnabledEntrys"); +_LIT8(KSIMServiceTable, "SIMServiceTable"); +//_LIT8(KCDMAServiceTable, "CDMAServiceTable"); + +// EF - ACL (Access Control List) +_LIT8(KAccessPointNameList, "APNControlList"); + +// RMobilePhone::SmartCardAuthenticate() response info +_LIT8(KScAuthInfo, "SmartCardAuthInfo"); + +// Constants for the Phone +const TInt KNumberOfPhones=1; //< Only one phone is supported by this TSY. +_LIT8(KPhoneStatus, "PhoneStatus"); +_LIT8(KPhoneInitialiseDelay, "PhoneInitialiseDelay"); + +// Constants for the line +const TInt KNumberOfLines=2; //< Two lines (voice and data) are supported by this TSY. +const TInt KVoiceLineIndex=0; //< The line index number for the voice line, used for the phone-based GetInfo request. +const TInt KDataLineIndex=1; //< The line index number for the data line, used for the phone-based GetInfo request. + +//Constants for Calls +_LIT(KVoiceCallName,"SimCall"); //< Voice call name +_LIT(KDataCallName,"DataCall"); //< Data call name + +//Constants for Sms Messaging and Sms Store +_LIT(KSimSmsMessagingName,"SimSmsMessaging"); //< The name of the Sms messaging supported by this TSY. +_LIT(KSimSmsStoreName,"SimSmsStore"); //< The name of the Sms store supported by this TSY. + +//Constants for PhoneBook +_LIT(KPhoneBookName,"SimPhoneBook"); //< The name of the phone book supported by this TSY. + +//Constants for packet +_LIT(KSimPacketName,"SimPacket"); //< The name of the packet supported by this TSY. + +//Constants for packet +_LIT(KSimPacketServiceName,"PACKET_SERVICE"); //< The name of the packet supported by this TSY. +_LIT(KSimPacketPrimaryContextName,"PRIMARY"); +_LIT(KSimPacketSecondaryContextName,"SECONDARY"); + +_LIT(KSimPacketQosName,"PACKET_QOS"); +_LIT8(KAttachPauseDuration,"AttachPauseDuration"); +_LIT8(KDetachPauseDuration,"DetachPauseDuration"); + +_LIT8(KActivatePauseDuration,"ActivatePauseDuration"); +_LIT8(KDeactivatePauseDuration,"DeactivatePauseDuration"); +_LIT8(KDeletePauseDuration,"DeletePauseDuration"); + +// constants for logging names +_LIT(KSimLogDir,"simtsy"); // < Simulator TSY log file directory . +_LIT(KSimLogFile,"simtsy.txt"); // < Simulator TSY log file. + +//Constants for CSIMSAT +_LIT(KSatName,"TOOLKIT"); //< Name of the sat to be opened by CSimPhone +_LIT8(KSatRefresh,"SatRefresh"); // < Configuration tag for Sat +_LIT8(KMMRetrieve,"MMRetrieve"); //< Configuration tag for EtelSat MMRetrieve Proactive command +_LIT8(KMMSubmit,"MMSubmit"); //< Configuration tag for EtelSat MMSubmit Proactive command +_LIT8(KMMDisplay,"MMDisplay"); //< Configuration tag for EtelSat MMDisplay Proactive command +_LIT8(KSetFrames,"SetFrames"); //< Configuration tag for EtelSat SetFrames Proactive command +_LIT8(KGetFramesStatus,"GetFramesSts"); //< Configuration tag for EtelSat GetFramesSts Proactive command +_LIT8(KMmsNotificationDownload,"MmsNotificationDownload"); //< Configuration tag for EtelSat MMS Notification Download command +_LIT8(KUssdDataDownload,"UssdDataDownload"); //< Configuration tag for EtelSat USSD Data Download command +_LIT8(KLocalInfo,"ProvideLocalInfo"); //< Configuration tag for EtelSat PROVIDE LOCAL INFORMATION command +_LIT8(KOpenChnl,"OpenChannel"); //< Configuration tag for EtelSat OPEN CHANNEL PROACTIVE COMMAND +_LIT8(KMiscCmd,"MiscCmd"); //< Configuration tag for EtelSat PLAY TONE PROACTIVE COMMAND +_LIT8(KEventDnld,"EventDnld"); //< Configuration tag for EtelSat EVENT DOWNLOAD COMMAND +_LIT8(KSendUssd,"SendUssd"); //