diff -r 14460bf2a402 -r f50f4094acd7 cbsref/telephonyrefplugins/atltsy/handler/src/cltsyfactoryv1.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cbsref/telephonyrefplugins/atltsy/handler/src/cltsyfactoryv1.cpp Tue Jul 06 15:36:38 2010 +0300 @@ -0,0 +1,1211 @@ +// Copyright (c) 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: +// @file ltsyfactoryv1.cpp +// This contains CLtsyFactoryV1 which acting an interface for Lincesee dll +// +// system include +#include +#include + +// use include +#include "cltsyfactoryv1.h" +#include "cltsycallcontrolhandler.h" +#include "cltsyphonehandler.h" +#include "cltsysecurityhandler.h" +#include "cltsyphonebookenhandler.h" +#include "cltsycellbroadcasthandler.h" +#include "cltsyphonebookonhandler.h" +#include "cltsyphonebookhandler.h" +#include "cltsysimhandler.h" +#include "cltsysmshandler.h" +#include "cltsycallcontrolmultipartyhandler.h" +#include "cltsysupplementaryserviceshandler.h" +#include "cltsypacketserviceshandler.h" +#include "cltsysathandler.h" +#include "globalphonemanager.h" +#include "unsolicitedeventmonitor.h" +#include "unsolicitedcommandcallcontrolhandler.h" + + +CLtsyFactoryV1::CLtsyFactoryV1() + { + } + +CLtsyFactoryV1::~CLtsyFactoryV1() + { + TSYLOGENTRYEXIT; + + // Delete dispatch handlers + delete iLtsyDispatchCallControlHandler; + iLtsyDispatchCallControlHandler = NULL; + + delete iLtsyDispatchPhoneHandler; + iLtsyDispatchPhoneHandler = NULL; + + delete iLtsyDispatchSecurityHandler; + iLtsyDispatchSecurityHandler = NULL; + + delete iLtsyDispatchPhonebookEnHandler; + iLtsyDispatchPhonebookEnHandler = NULL; + + delete iLtsyDispatchCellBroadcastHandler; + iLtsyDispatchCellBroadcastHandler = NULL; + + delete iLtsyDispatchPhonebookOnHandler; + iLtsyDispatchPhonebookOnHandler = NULL; + + delete iLtsyDispatchPhonebookHandler; + iLtsyDispatchPhonebookHandler = NULL; + + delete iLtsyDispatchSimHandler; + iLtsyDispatchSimHandler = NULL; + + delete iLtsyDispatchSmsHandler; + iLtsyDispatchSmsHandler = NULL; + + delete iLtsyDispatchCallControlMultipartyHandler; + iLtsyDispatchCallControlMultipartyHandler = NULL; + + delete iLtsyDispatchSupplementaryServicesHandler; + iLtsyDispatchSupplementaryServicesHandler = NULL; + + delete iLtsyDispatchPacketServicesHandler; + iLtsyDispatchPacketServicesHandler = NULL; + + delete iLtsyDispatchSatHandler; + iLtsyDispatchSatHandler = NULL; + + delete iUnsolicitedEventMonitor; + iUnsolicitedEventMonitor = NULL; + + delete iGlobalPhone; + iGlobalPhone = NULL; + } + +MLtsyFactoryBase::TCtsyInterfaceVersion CLtsyFactoryV1::Version() + { + TSYLOGENTRYEXIT; + return EIfVersion1; + } + +void CLtsyFactoryV1::ConstructL(CCtsyDispatcherCallback& aCallback) +/** + * Second phase constructor. This function must be called explicitly + * by the client to complete construction before any other functions in this + * class are called. + */ + { + TSYLOGENTRYEXIT; + // create global phone manager + iGlobalPhone = CGlobalPhonemanager::NewL(); + + // create the call control handler + iLtsyDispatchCallControlHandler = CLtsyCallControlHandler::NewL(aCallback, iGlobalPhone); + + // create the phone control handler + iLtsyDispatchPhoneHandler = CLtsyPhoneHandler::NewL(aCallback,iGlobalPhone); + + // create the sms control handler + iLtsyDispatchSmsHandler = CLtsySmsHandler::NewL(aCallback,iGlobalPhone); + + // create the packect service control handler + iLtsyDispatchPacketServicesHandler = CLtsyPacketServicesHandler::NewL(aCallback,iGlobalPhone); + + // create the phone book control handler + iLtsyDispatchPhonebookHandler = CLtsyPhonebookHandler::NewL(aCallback,iGlobalPhone); + + // create the security control handler + iLtsyDispatchSecurityHandler = CLtsySecurityHandler::NewL(aCallback); + + // create the EN phone book control handler + iLtsyDispatchPhonebookEnHandler = CLtsyPhonebookEnHandler::NewL(aCallback,iGlobalPhone); + + // create the cell broad cast control handler + iLtsyDispatchCellBroadcastHandler = CLtsyCellBroadcastHandler::NewL(aCallback); + + // create the ON phone book control handler + iLtsyDispatchPhonebookOnHandler = CLtsyPhonebookOnHandler::NewL(aCallback); + + // create the sim card control handler + iLtsyDispatchSimHandler = CLtsySimHandler::NewL(aCallback); + + // create the conference call control handler + iLtsyDispatchCallControlMultipartyHandler = CLtsyCallControlMultipartyHandler::NewL(aCallback); + + // create the supplementary service control handler + iLtsyDispatchSupplementaryServicesHandler = CLtsySupplementaryServicesHandler::NewL(aCallback); + + // create the sat control handler + iLtsyDispatchSatHandler = CLtsySatHandler::NewL(aCallback); + + //Create unsolicited observer + iUnsolicitedEventMonitor = CUnsolicitedEventMonitor::NewL(*iGlobalPhone, aCallback); + + // create the security control handler + iUnsolicitedEventMonitor->AddUnsolicitedObserver(iLtsyDispatchCallControlHandler->GetUnsolicitedCallControlHandler()); + + // create the security control handler + iUnsolicitedEventMonitor->StartUnsolicitedObserver(); + } // CLtsyFactoryV1::ConstructL + + +TInt CLtsyFactoryV1::GetDispatchHandler( + TLtsyDispatchInterfaceApiId aDispatchInterfaceId, + TAny*& aDispatchInterface) +/** + * Part of the MLtsyFactoryV1 interface. Returns the requested dispatch handler. + * For more details see MLtsyFactoryV1::GetDispatchHandler + * + * @param aInterfaceId The dispatch interface identifier of the requested + * interface. + * + * @param aDispatchInterface If this function completes with KErrNone, will contain + * a reference to a pointer to the dispatch handler interface in the LTSY. + * aDispatchInterface may be NULL. Otherwise the parameter will remain unchanged. + * + * @return KErrNone if the requested interface was returned in the + * aDispatchInterface parameter; KErrNotFound if the requested interface + * was not found in the Licensee LTSY. + */ + { + TSYLOGENTRYEXITARGS(_L8("aDispatchInterfaceId=%d"), aDispatchInterfaceId); + + switch (aDispatchInterfaceId) + { + + // Handlers for IPCs used in boot sequence + + case MLtsyDispatchPhoneBootNotifyModemStatusReady::KLtsyDispatchPhoneBootNotifyModemStatusReadyApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneBootNotifySimStatusReady::KLtsyDispatchPhoneBootNotifySimStatusReadyApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneGetNetworkRegistrationStatus::KLtsyDispatchPhoneGetNetworkRegistrationStatusApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneSimRefreshRegister::KLtsyDispatchPhoneSimRefreshRegisterApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneGetFdnStatus::KLtsyDispatchPhoneGetFdnStatusApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneGetHomeNetwork::KLtsyDispatchPhoneGetHomeNetworkApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneNspsWakeup::KLtsyDispatchPhoneNspsWakeupApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneSetSystemNetworkMode::KLtsyDispatchPhoneSetSystemNetworkModeApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneGetCurrentSystemNetworkModes::KLtsyDispatchPhoneGetCurrentSystemNetworkModesApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneResetNetServer::KLtsyDispatchPhoneResetNetServerApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneSetAlwaysOnMode::KLtsyDispatchPhoneSetAlwaysOnModeApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneSetDriveMode::KLtsyDispatchPhoneSetDriveModeApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneGetHspaStatus::KLtsyDispatchPhoneGetHspaStatusApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneSetHspaStatus::KLtsyDispatchPhoneSetHspaStatusApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneGetNetworkProviderName::KLtsyDispatchPhoneGetNetworkProviderNameApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneGetOperatorName::KLtsyDispatchPhoneGetOperatorNameApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneGetCellInfo::KLtsyDispatchPhoneGetCellInfoApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + + // CallControl Functional Unit interface handlers + + case MLtsyDispatchCallControlAnswer::KLtsyDispatchCallControlAnswerApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlHold::KLtsyDispatchCallControlHoldApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlDialEmergency::KLtsyDispatchCallControlDialEmergencyApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlStopDtmfTone::KLtsyDispatchCallControlStopDtmfToneApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlSetActiveAlsLine::KLtsyDispatchCallControlSetActiveAlsLineApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlSendDtmfTonesCancel::KLtsyDispatchCallControlSendDtmfTonesCancelApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlHangUp::KLtsyDispatchCallControlHangUpApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlResume::KLtsyDispatchCallControlResumeApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlSetDynamicHscsdParams::KLtsyDispatchCallControlSetDynamicHscsdParamsApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlDialVoice::KLtsyDispatchCallControlDialVoiceApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlTransfer::KLtsyDispatchCallControlTransferApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlSendDtmfTones::KLtsyDispatchCallControlSendDtmfTonesApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlGetIdentityServiceStatus::KLtsyDispatchCallControlGetIdentityServiceStatusApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlSwap::KLtsyDispatchCallControlSwapApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlLoanDataPort::KLtsyDispatchCallControlLoanDataPortApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlRecoverDataPort::KLtsyDispatchCallControlRecoverDataPortApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlStartDtmfTone::KLtsyDispatchCallControlStartDtmfToneApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlGetActiveAlsLine::KLtsyDispatchCallControlGetActiveAlsLineApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlDialData::KLtsyDispatchCallControlDialDataApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlQueryIsEmergencyNumber::KLtsyDispatchCallControlQueryIsEmergencyNumberApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlGetAlsPpSupport::KLtsyDispatchCallControlGetAlsPpSupportApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlGetAlsBlockedStatus::KLtsyDispatchCallControlGetAlsBlockedStatusApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlSetAlsBlocked::KLtsyDispatchCallControlSetAlsBlockedApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlGetLifeTime::KLtsyDispatchCallControlGetLifeTimeApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlTerminateErrorCall::KLtsyDispatchCallControlTerminateErrorCallApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlTerminateAllCalls::KLtsyDispatchCallControlTerminateAllCallsApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlGetCallForwardingIndicator::KLtsyDispatchCallControlGetCallForwardingIndicatorApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + case MLtsyDispatchCallControlUpdateLifeTimer::KLtsyDispatchCallControlUpdateLifeTimerApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlHandler); + break; + + // Phone Functional Unit interface handlers + + case MLtsyDispatchPhoneGetServiceProviderName::KLtsyDispatchPhoneGetServiceProviderNameApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneGetPhoneId::KLtsyDispatchPhoneGetPhoneIdApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneGetDetectedNetworks::KLtsyDispatchPhoneGetDetectedNetworksApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneGetDetectedNetworksCancel::KLtsyDispatchPhoneGetDetectedNetworksCancelApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneSelectNetwork::KLtsyDispatchPhoneSelectNetworkApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneSelectNetworkCancel::KLtsyDispatchPhoneSelectNetworkCancelApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneSetNetworkSelectionSetting::KLtsyDispatchPhoneSetNetworkSelectionSettingApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneGetCurrentNetworkInfo::KLtsyDispatchPhoneGetCurrentNetworkInfoApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneGetNetworkMode::KLtsyDispatchPhoneGetNetworkModeApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneGetNitzInfo::KLtsyDispatchPhoneGetNitzInfoApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneGetSignalStrength::KLtsyDispatchPhoneGetSignalStrengthApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneGetBatteryInfo::KLtsyDispatchPhoneGetBatteryInfoApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneRegisterCellInfoChangeNotification::KLtsyDispatchPhoneRegisterCellInfoChangeNotificationApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneGetPhoneCellInfo::KLtsyDispatchPhoneGetPhoneCellInfoApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneGetUsimServiceSupport::KLtsyDispatchPhoneGetUsimServiceSupportApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneGetCurrentActiveUsimApplication::KLtsyDispatchPhoneGetCurrentActiveUsimApplicationApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneTerminateAllCalls::KLtsyDispatchPhoneTerminateAllCallsApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneGetSystemNetworkBand::KLtsyDispatchPhoneGetSystemNetworkBandApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + case MLtsyDispatchPhoneSetSystemNetworkBand::KLtsyDispatchPhoneSetSystemNetworkBandApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhoneHandler); + break; + + // Security Functional Unit interface handlers + + case MLtsyDispatchSecurityGetSecurityCodeInfo::KLtsyDispatchSecurityGetSecurityCodeInfoApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSecurityHandler); + break; + case MLtsyDispatchSecurityGetLockInfo::KLtsyDispatchSecurityGetLockInfoApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSecurityHandler); + break; + case MLtsyDispatchSecurityAbortSecurityCode::KLtsyDispatchSecurityAbortSecurityCodeApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSecurityHandler); + break; + case MLtsyDispatchSecurityGetCurrentActivePin::KLtsyDispatchSecurityGetCurrentActivePinApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSecurityHandler); + break; + case MLtsyDispatchSecuritySetLockSetting::KLtsyDispatchSecuritySetLockSettingApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSecurityHandler); + break; + case MLtsyDispatchSecurityVerifySecurityCode::KLtsyDispatchSecurityVerifySecurityCodeApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSecurityHandler); + break; + case MLtsyDispatchSecurityGetPin1DisableSupported::KLtsyDispatchSecurityGetPin1DisableSupportedApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSecurityHandler); + break; + case MLtsyDispatchSecurityCheckSecurityCode::KLtsyDispatchSecurityCheckSecurityCodeApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSecurityHandler); + break; + case MLtsyDispatchSecurityDisablePhoneLock::KLtsyDispatchSecurityDisablePhoneLockApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSecurityHandler); + break; + case MLtsyDispatchSecurityGetCipheringInfo::KLtsyDispatchSecurityGetCipheringInfoApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSecurityHandler); + break; + case MLtsyDispatchSecurityIsSecurityCodeBlocked::KLtsyDispatchSecurityIsSecurityCodeBlockedApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSecurityHandler); + break; + case MLtsyDispatchSecurityCheckSecurityCodeCancel::KLtsyDispatchSecurityCheckSecurityCodeCancelApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSecurityHandler); + break; + + // PhonebookEn Functional Unit interface handlers + + case MLtsyDispatchPhonebookEnStoreGetInfo::KLtsyDispatchPhonebookEnStoreGetInfoApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookEnHandler); + break; + case MLtsyDispatchPhonebookEnStoreReadAll::KLtsyDispatchPhonebookEnStoreReadAllApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookEnHandler); + break; + case MLtsyDispatchPhonebookEnStoreReadEntry::KLtsyDispatchPhonebookEnStoreReadEntryApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookEnHandler); + break; + + // CellBroadcast Functional Unit interface handlers + + case MLtsyDispatchCellBroadcastSetBroadcastFilterSetting::KLtsyDispatchCellBroadcastSetBroadcastFilterSettingApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCellBroadcastHandler); + break; + case MLtsyDispatchCellBroadcastActivateBroadcastReceiveMessage::KLtsyDispatchCellBroadcastActivateBroadcastReceiveMessageApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCellBroadcastHandler); + break; + case MLtsyDispatchCellBroadcastReceiveMessageCancel::KLtsyDispatchCellBroadcastReceiveMessageCancelApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCellBroadcastHandler); + break; + case MLtsyDispatchCellBroadcastStartSimCbTopicBrowsing::KLtsyDispatchCellBroadcastStartSimCbTopicBrowsingApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCellBroadcastHandler); + break; + case MLtsyDispatchCellBroadcastDeleteSimCbTopic::KLtsyDispatchCellBroadcastDeleteSimCbTopicApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCellBroadcastHandler); + break; + + // PhonebookOn Functional Unit interface handlers + + case MLtsyDispatchPhonebookOnStoreRead::KLtsyDispatchPhonebookOnStoreReadApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookOnHandler); + break; + case MLtsyDispatchPhonebookOnStoreDeleteAll::KLtsyDispatchPhonebookOnStoreDeleteAllApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookOnHandler); + break; + case MLtsyDispatchPhonebookOnStoreReadEntry::KLtsyDispatchPhonebookOnStoreReadEntryApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookOnHandler); + break; + case MLtsyDispatchPhonebookOnStoreGetInfo::KLtsyDispatchPhonebookOnStoreGetInfoApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookOnHandler); + break; + case MLtsyDispatchPhonebookOnStoreGetReadStoreSize::KLtsyDispatchPhonebookOnStoreGetReadStoreSizeApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookOnHandler); + break; + case MLtsyDispatchPhonebookOnStoreDeleteEntry::KLtsyDispatchPhonebookOnStoreDeleteEntryApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookOnHandler); + break; + case MLtsyDispatchPhonebookOnStoreWriteEntry::KLtsyDispatchPhonebookOnStoreWriteEntryApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookOnHandler); + break; + case MLtsyDispatchPhonebookOnStoreWrite::KLtsyDispatchPhonebookOnStoreWriteApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookOnHandler); + break; + case MLtsyDispatchPhonebookOnStoreGetStoreSize::KLtsyDispatchPhonebookOnStoreGetStoreSizeApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookOnHandler); + break; + + // Phonebook Functional Unit interface handlers + + case MLtsyDispatchPhonebookStoreReadEntry::KLtsyDispatchPhonebookStoreReadEntryApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookHandler); + break; + case MLtsyDispatchPhonebookStoreDeleteEntry::KLtsyDispatchPhonebookStoreDeleteEntryApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookHandler); + break; + case MLtsyDispatchPhonebookStoreCache::KLtsyDispatchPhonebookStoreCacheApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookHandler); + break; + case MLtsyDispatchPhonebookStoreGetPhonebookInfo::KLtsyDispatchPhonebookStoreGetPhonebookInfoApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookHandler); + break; + case MLtsyDispatchPhonebookStoreInitialise::KLtsyDispatchPhonebookStoreInitialiseApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookHandler); + break; + case MLtsyDispatchPhonebookStoreDeleteAll::KLtsyDispatchPhonebookStoreDeleteAllApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookHandler); + break; + case MLtsyDispatchPhonebookSmsStoreReadAll::KLtsyDispatchPhonebookSmsStoreReadAllApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookHandler); + break; + case MLtsyDispatchPhonebookStoreWriteEntry::KLtsyDispatchPhonebookStoreWriteEntryApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookHandler); + break; + case MLtsyDispatchPhonebookGetPhoneStoreInfo::KLtsyDispatchPhonebookGetPhoneStoreInfoApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookHandler); + break; + case MLtsyDispatchPhonebookSmsStoreDeleteEntry::KLtsyDispatchPhonebookSmsStoreDeleteEntryApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookHandler); + break; + case MLtsyDispatchPhonebookSmsStoreDeleteAll::KLtsyDispatchPhonebookSmsStoreDeleteAllApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookHandler); + break; + case MLtsyDispatchPhonebookSmsStoreGetInfo::KLtsyDispatchPhonebookSmsStoreGetInfoApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookHandler); + break; + case MLtsyDispatchPhonebookSmsStoreReadEntry::KLtsyDispatchPhonebookSmsStoreReadEntryApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookHandler); + break; + case MLtsyDispatchPhonebookSmsStoreWriteEntry::KLtsyDispatchPhonebookSmsStoreWriteEntryApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookHandler); + break; + case MLtsyDispatchPhonebookStoreCacheCancel::KLtsyDispatchPhonebookStoreCacheCancelApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPhonebookHandler); + break; + + // Sim Functional Unit interface handlers + + case MLtsyDispatchSimGetApnControlListServiceStatus::KLtsyDispatchSimGetApnControlListServiceStatusApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimDeleteApnName::KLtsyDispatchSimDeleteApnNameApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimEnumerateApnEntries::KLtsyDispatchSimEnumerateApnEntriesApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimChangeSecurityCode::KLtsyDispatchSimChangeSecurityCodeApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimSetFdnSetting::KLtsyDispatchSimSetFdnSettingApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimGetCustomerServiceProfile::KLtsyDispatchSimGetCustomerServiceProfileApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimGetSubscriberId::KLtsyDispatchSimGetSubscriberIdApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimAppendApnName::KLtsyDispatchSimAppendApnNameApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimGetActiveIccApplicationType::KLtsyDispatchSimGetActiveIccApplicationTypeApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimSetIccMessageWaitingIndicators::KLtsyDispatchSimSetIccMessageWaitingIndicatorsApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimSetApnControlListServiceStatus::KLtsyDispatchSimSetApnControlListServiceStatusApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimGetApnName::KLtsyDispatchSimGetApnNameApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimSimRefreshDone::KLtsyDispatchSimSimRefreshDoneApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimGetServiceTable::KLtsyDispatchSimGetServiceTableApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimGetIccMessageWaitingIndicators::KLtsyDispatchSimGetIccMessageWaitingIndicatorsApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimSimLockActivate::KLtsyDispatchSimSimLockActivateApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimSimLockDeActivate::KLtsyDispatchSimSimLockDeActivateApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimGetAnswerToReset::KLtsyDispatchSimGetAnswerToResetApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimGetSimCardReaderStatus::KLtsyDispatchSimGetSimCardReaderStatusApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimGetSimAuthenticationEapSimData::KLtsyDispatchSimGetSimAuthenticationEapSimDataApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimGetSimAuthenticationEapAkaData::KLtsyDispatchSimGetSimAuthenticationEapAkaDataApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimPowerSimOff::KLtsyDispatchSimPowerSimOffApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimPowerSimOn::KLtsyDispatchSimPowerSimOnApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimReadSimFile::KLtsyDispatchSimReadSimFileApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimSendApduRequest::KLtsyDispatchSimSendApduRequestApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimSendApduRequestV2::KLtsyDispatchSimSendApduRequestV2ApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimSimWarmReset::KLtsyDispatchSimSimWarmResetApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + case MLtsyDispatchSimSetSimMessageStatusRead::KLtsyDispatchSimSetSimMessageStatusReadApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSimHandler); + break; + + // Sms Functional Unit interface handlers + + case MLtsyDispatchSmsSendSatSms::KLtsyDispatchSmsSendSatSmsApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSmsHandler); + break; + case MLtsyDispatchSmsGetSmsStoreInfo::KLtsyDispatchSmsGetSmsStoreInfoApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSmsHandler); + break; + case MLtsyDispatchSmsGetSmspList::KLtsyDispatchSmsGetSmspListApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSmsHandler); + break; + case MLtsyDispatchSmsNackSmsStored::KLtsyDispatchSmsNackSmsStoredApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSmsHandler); + break; + case MLtsyDispatchSmsAckSmsStored::KLtsyDispatchSmsAckSmsStoredApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSmsHandler); + break; + case MLtsyDispatchSmsResumeSmsReception::KLtsyDispatchSmsResumeSmsReceptionApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSmsHandler); + break; + case MLtsyDispatchSmsSendSmsMessage::KLtsyDispatchSmsSendSmsMessageApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSmsHandler); + break; + case MLtsyDispatchSmsSendSmsMessageNoFdnCheck::KLtsyDispatchSmsSendSmsMessageNoFdnCheckApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSmsHandler); + break; + case MLtsyDispatchSmsSetMoSmsBearer::KLtsyDispatchSmsSetMoSmsBearerApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSmsHandler); + break; + case MLtsyDispatchSmsStoreSmspListEntry::KLtsyDispatchSmsStoreSmspListEntryApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSmsHandler); + break; + + // CallControlMultiparty Functional Unit interface handlers + + case MLtsyDispatchCallControlMultipartyConferenceHangUp::KLtsyDispatchCallControlMultipartyConferenceHangUpApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlMultipartyHandler); + break; + case MLtsyDispatchCallControlMultipartyConferenceAddCall::KLtsyDispatchCallControlMultipartyConferenceAddCallApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlMultipartyHandler); + break; + case MLtsyDispatchCallControlMultipartyCreateConference::KLtsyDispatchCallControlMultipartyCreateConferenceApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlMultipartyHandler); + break; + case MLtsyDispatchCallControlMultipartyConferenceSwap::KLtsyDispatchCallControlMultipartyConferenceSwapApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlMultipartyHandler); + break; + case MLtsyDispatchCallControlMultipartyConferenceGoOneToOne::KLtsyDispatchCallControlMultipartyConferenceGoOneToOneApiId: + aDispatchInterface = static_cast + (iLtsyDispatchCallControlMultipartyHandler); + break; + + // SupplementaryServices Functional Unit interface handlers + + case MLtsyDispatchSupplementaryServicesSendNetworkServiceRequestNoFdnCheck::KLtsyDispatchSupplementaryServicesSendNetworkServiceRequestNoFdnCheckApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSupplementaryServicesHandler); + break; + case MLtsyDispatchSupplementaryServicesGetCallWaitingStatus::KLtsyDispatchSupplementaryServicesGetCallWaitingStatusApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSupplementaryServicesHandler); + break; + case MLtsyDispatchSupplementaryServicesSendNetworkServiceRequest::KLtsyDispatchSupplementaryServicesSendNetworkServiceRequestApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSupplementaryServicesHandler); + break; + case MLtsyDispatchSupplementaryServicesGetCallBarringStatus::KLtsyDispatchSupplementaryServicesGetCallBarringStatusApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSupplementaryServicesHandler); + break; + case MLtsyDispatchSupplementaryServicesSetCallBarringStatus::KLtsyDispatchSupplementaryServicesSetCallBarringStatusApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSupplementaryServicesHandler); + break; + case MLtsyDispatchSupplementaryServicesSetCallForwardingStatus::KLtsyDispatchSupplementaryServicesSetCallForwardingStatusApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSupplementaryServicesHandler); + break; + case MLtsyDispatchSupplementaryServicesSetCallWaitingStatus::KLtsyDispatchSupplementaryServicesSetCallWaitingStatusApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSupplementaryServicesHandler); + break; + case MLtsyDispatchSupplementaryServicesSetSsPassword::KLtsyDispatchSupplementaryServicesSetSsPasswordApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSupplementaryServicesHandler); + break; + case MLtsyDispatchSupplementaryServicesGetCallForwardingStatus::KLtsyDispatchSupplementaryServicesGetCallForwardingStatusApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSupplementaryServicesHandler); + break; + case MLtsyDispatchSupplementaryServicesSendUssdMessage::KLtsyDispatchSupplementaryServicesSendUssdMessageApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSupplementaryServicesHandler); + break; + case MLtsyDispatchSupplementaryServicesSendUssdMessageNoFdnCheck::KLtsyDispatchSupplementaryServicesSendUssdMessageNoFdnCheckApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSupplementaryServicesHandler); + break; + case MLtsyDispatchSupplementaryServicesSendUssdRelease::KLtsyDispatchSupplementaryServicesSendUssdReleaseApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSupplementaryServicesHandler); + break; + case MLtsyDispatchSupplementaryServicesClearBlacklist::KLtsyDispatchSupplementaryServicesClearBlacklistApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSupplementaryServicesHandler); + break; + + // PacketServices Functional Unit interface handlers + + case MLtsyDispatchPacketServicesPacketAttach::KLtsyDispatchPacketServicesPacketAttachApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesGetPacketAttachMode::KLtsyDispatchPacketServicesGetPacketAttachModeApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesGetPacketNetworkRegistrationStatus::KLtsyDispatchPacketServicesGetPacketNetworkRegistrationStatusApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesPacketDetach::KLtsyDispatchPacketServicesPacketDetachApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesSetPdpContextConfig::KLtsyDispatchPacketServicesSetPdpContextConfigApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesModifyActivePdpContext::KLtsyDispatchPacketServicesModifyActivePdpContextApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesInitialisePdpContext::KLtsyDispatchPacketServicesInitialisePdpContextApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesDeletePdpContext::KLtsyDispatchPacketServicesDeletePdpContextApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesSetPacketAttachMode::KLtsyDispatchPacketServicesSetPacketAttachModeApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesNotifyPacketStatusChange::KLtsyDispatchPacketServicesNotifyPacketStatusChangeApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesSetDefaultPdpContextGprsParams::KLtsyDispatchPacketServicesSetDefaultPdpContextGprsParamsApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesSetDefaultPdpContextR99R4Params::KLtsyDispatchPacketServicesSetDefaultPdpContextR99R4ParamsApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesActivatePdpContext::KLtsyDispatchPacketServicesActivatePdpContextApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesSetPdpContextQosGprs::KLtsyDispatchPacketServicesSetPdpContextQosGprsApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesSetPdpContextQosR99R4::KLtsyDispatchPacketServicesSetPdpContextQosR99R4ApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesSetPdpContextQosR5::KLtsyDispatchPacketServicesSetPdpContextQosR5ApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesRejectNetworkInitiatedContextActivationRequest::KLtsyDispatchPacketServicesRejectNetworkInitiatedContextActivationRequestApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesDeactivatePdpContext::KLtsyDispatchPacketServicesDeactivatePdpContextApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesAddPacketFilter::KLtsyDispatchPacketServicesAddPacketFilterApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesGetStatus::KLtsyDispatchPacketServicesGetStatusApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesGetStaticCapabilities::KLtsyDispatchPacketServicesGetStaticCapabilitiesApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesGetMaxNoMonitoredServiceLists::KLtsyDispatchPacketServicesGetMaxNoMonitoredServiceListsApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesGetMaxNoActiveServices::KLtsyDispatchPacketServicesGetMaxNoActiveServicesApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesInitialiseMbmsContext::KLtsyDispatchPacketServicesInitialiseMbmsContextApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesGetMbmsNetworkServiceStatus::KLtsyDispatchPacketServicesGetMbmsNetworkServiceStatusApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesUpdateMbmsMonitorServiceList::KLtsyDispatchPacketServicesUpdateMbmsMonitorServiceListApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesUpdateMbmsSessionList::KLtsyDispatchPacketServicesUpdateMbmsSessionListApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + case MLtsyDispatchPacketServicesRemovePacketFilter::KLtsyDispatchPacketServicesRemovePacketFilterApiId: + aDispatchInterface = static_cast + (iLtsyDispatchPacketServicesHandler); + break; + + // Sat Functional Unit interface handlers + + case MLtsyDispatchSatSmsDeliverReport::KLtsyDispatchSatSmsDeliverReportApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSatHandler); + break; + case MLtsyDispatchSatGetImageInstance::KLtsyDispatchSatGetImageInstanceApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSatHandler); + break; + case MLtsyDispatchSatGetIconData::KLtsyDispatchSatGetIconDataApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSatHandler); + break; + case MLtsyDispatchSatGetClut::KLtsyDispatchSatGetClutApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSatHandler); + break; + case MLtsyDispatchSatGetDefaultBearerCapability::KLtsyDispatchSatGetDefaultBearerCapabilityApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSatHandler); + break; + case MLtsyDispatchSatGetSmsPpDownloadSupported::KLtsyDispatchSatGetSmsPpDownloadSupportedApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSatHandler); + break; + case MLtsyDispatchSatGetSmsControlActivated::KLtsyDispatchSatGetSmsControlActivatedApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSatHandler); + break; + case MLtsyDispatchSatCellBroadcastEnvelope::KLtsyDispatchSatCellBroadcastEnvelopeApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSatHandler); + break; + case MLtsyDispatchSatGetAccessTechnology::KLtsyDispatchSatGetAccessTechnologyApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSatHandler); + break; + case MLtsyDispatchSatTimingAdvance::KLtsyDispatchSatTimingAdvanceApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSatHandler); + break; + case MLtsyDispatchSatSmControlResponseData::KLtsyDispatchSatSmControlResponseDataApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSatHandler); + break; + case MLtsyDispatchSatProvideLocationInfo::KLtsyDispatchSatProvideLocationInfoApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSatHandler); + break; + case MLtsyDispatchSatSetPollingInterval::KLtsyDispatchSatSetPollingIntervalApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSatHandler); + break; + case MLtsyDispatchSatSmsPpDownloadEnvelope::KLtsyDispatchSatSmsPpDownloadEnvelopeApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSatHandler); + break; + case MLtsyDispatchSatLocalInformationNmr::KLtsyDispatchSatLocalInformationNmrApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSatHandler); + break; + case MLtsyDispatchSatCallAndSmsControlEnvelope::KLtsyDispatchSatCallAndSmsControlEnvelopeApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSatHandler); + break; + case MLtsyDispatchSatRefreshAllowed::KLtsyDispatchSatRefreshAllowedApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSatHandler); + break; + case MLtsyDispatchSatReady::KLtsyDispatchSatReadyApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSatHandler); + break; + case MLtsyDispatchSatPCmdNotification::KLtsyDispatchSatPCmdNotificationApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSatHandler); + break; + case MLtsyDispatchSatUssdControlEnvelopeError::KLtsyDispatchSatUssdControlEnvelopeErrorApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSatHandler); + break; + case MLtsyDispatchSatTimerExpirationEnvelope::KLtsyDispatchSatTimerExpirationEnvelopeApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSatHandler); + break; + case MLtsyDispatchSatTerminalRsp::KLtsyDispatchSatTerminalRspApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSatHandler); + break; + case MLtsyDispatchSatMenuSelectionEnvelope::KLtsyDispatchSatMenuSelectionEnvelopeApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSatHandler); + break; + case MLtsyDispatchSatEventDownloadEnvelope::KLtsyDispatchSatEventDownloadEnvelopeApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSatHandler); + break; + case MLtsyDispatchSatGetUssdControlSupported::KLtsyDispatchSatGetUssdControlSupportedApiId: + aDispatchInterface = static_cast + (iLtsyDispatchSatHandler); + break; + default: + return TSYLOGSETEXITERR(KErrNotFound); + } // switch (aDispatchInterfaceId) + + return TSYLOGSETEXITERR(KErrNone); + } // CLtsyFactoryV1::GetDispatchHandler + +TBool CLtsyFactoryV1::IsDispatchInterfaceSupported(TInt aFuncUnitId, TLtsyDispatchInterfaceApiId aDispatchApiId) + { + switch(aFuncUnitId) + { + case KDispatchCallControlFuncUnitId: + return iLtsyDispatchCallControlHandler->IsInterfaceSupported(aDispatchApiId); + case KDispatchPhoneFuncUnitId: + return iLtsyDispatchPhoneHandler->IsInterfaceSupported(aDispatchApiId); + case KDispatchSecurityFuncUnitId: + return iLtsyDispatchSecurityHandler->IsInterfaceSupported(aDispatchApiId); + case KDispatchPhonebookEnFuncUnitId: + return iLtsyDispatchPhonebookEnHandler->IsInterfaceSupported(aDispatchApiId); + case KDispatchCellBroadcastFuncUnitId: + return iLtsyDispatchCellBroadcastHandler->IsInterfaceSupported(aDispatchApiId); + case KDispatchPhonebookOnFuncUnitId: + return iLtsyDispatchPhonebookOnHandler->IsInterfaceSupported(aDispatchApiId); + case KDispatchPhonebookFuncUnitId: + return iLtsyDispatchPhonebookHandler->IsInterfaceSupported(aDispatchApiId); + case KDispatchSimFuncUnitId: + return iLtsyDispatchSimHandler->IsInterfaceSupported(aDispatchApiId); + case KDispatchSmsFuncUnitId: + return iLtsyDispatchSmsHandler->IsInterfaceSupported(aDispatchApiId); + case KDispatchCallControlMultipartyFuncUnitId: + return iLtsyDispatchCallControlMultipartyHandler->IsInterfaceSupported(aDispatchApiId); + case KDispatchSupplementaryServicesFuncUnitId: + return iLtsyDispatchSupplementaryServicesHandler->IsInterfaceSupported(aDispatchApiId); + case KDispatchPacketServicesFuncUnitId: + return iLtsyDispatchPacketServicesHandler->IsInterfaceSupported(aDispatchApiId); + case KDispatchSatFuncUnitId: + return iLtsyDispatchSatHandler->IsInterfaceSupported(aDispatchApiId); + default: + return EFalse; + } + } + +void CLtsyFactoryV1::IsCallbackIndicatorSupported(TInt aFuncUnitId, TLtsyDispatchIndIdGroup aIdGroup, TUint32& aIndIdBitMask) + { + switch(aFuncUnitId) + { + case KDispatchCallControlFuncUnitId: + iLtsyDispatchCallControlHandler->IsCallbackIndicatorSupported(aIdGroup, aIndIdBitMask); + break; + case KDispatchPhoneFuncUnitId: + iLtsyDispatchPhoneHandler->IsCallbackIndicatorSupported(aIdGroup, aIndIdBitMask); + break; + case KDispatchSecurityFuncUnitId: + iLtsyDispatchSecurityHandler->IsCallbackIndicatorSupported(aIdGroup, aIndIdBitMask); + break; + case KDispatchPhonebookEnFuncUnitId: + iLtsyDispatchPhonebookEnHandler->IsCallbackIndicatorSupported(aIdGroup, aIndIdBitMask); + break; + case KDispatchCellBroadcastFuncUnitId: + iLtsyDispatchCellBroadcastHandler->IsCallbackIndicatorSupported(aIdGroup, aIndIdBitMask); + break; + case KDispatchPhonebookOnFuncUnitId: + iLtsyDispatchPhonebookOnHandler->IsCallbackIndicatorSupported(aIdGroup, aIndIdBitMask); + break; + case KDispatchPhonebookFuncUnitId: + iLtsyDispatchPhonebookHandler->IsCallbackIndicatorSupported(aIdGroup, aIndIdBitMask); + break; + case KDispatchSimFuncUnitId: + iLtsyDispatchSimHandler->IsCallbackIndicatorSupported(aIdGroup, aIndIdBitMask); + break; + case KDispatchSmsFuncUnitId: + iLtsyDispatchSmsHandler->IsCallbackIndicatorSupported(aIdGroup, aIndIdBitMask); + break; + case KDispatchCallControlMultipartyFuncUnitId: + iLtsyDispatchCallControlMultipartyHandler->IsCallbackIndicatorSupported(aIdGroup, aIndIdBitMask); + break; + case KDispatchSupplementaryServicesFuncUnitId: + iLtsyDispatchSupplementaryServicesHandler->IsCallbackIndicatorSupported(aIdGroup, aIndIdBitMask); + break; + case KDispatchPacketServicesFuncUnitId: + iLtsyDispatchPacketServicesHandler->IsCallbackIndicatorSupported(aIdGroup, aIndIdBitMask); + break; + case KDispatchSatFuncUnitId: + iLtsyDispatchSatHandler->IsCallbackIndicatorSupported(aIdGroup, aIndIdBitMask); + break; + default: + aIndIdBitMask = 0;//no support + break; + } + } + +CTsySatMessagingBase* CLtsyFactoryV1::GetSatMessagingService(MCtsySatService& /*aSatMessagingService*/) + { + return NULL; + } + +/** + * Called by the CTSY Dispatcher to inform this object that it can clean itself up. + */ +void CLtsyFactoryV1::Release() + { + TSYLOGENTRYEXIT; + delete this; + } // CLtsyFactoryV1::Release + +/** + * Creates an instance of an object implementing the MLtsyFactoryBase interface. + * ConstructL() must be called on the object returned before it is used. + */ +EXPORT_C MLtsyFactoryBase* LTsyFactoryL() + { + TSYLOGENTRYEXIT; + CLtsyFactoryV1* factory = new (ELeave) CLtsyFactoryV1; + return factory; + } // LTsyFactoryL +