telephonyserverplugins/common_tsy/commontsy/src/mmpacket/cmmpacketcontextgsmwcdmaextwithdispatcher.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/telephonyserverplugins/common_tsy/commontsy/src/mmpacket/cmmpacketcontextgsmwcdmaextwithdispatcher.cpp Tue Feb 02 01:41:59 2010 +0200
@@ -0,0 +1,67 @@
+// Copyright (c) 2008-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:
+//
+
+#ifdef USING_CTSY_DISPATCHER
+
+/**
+ * This file contains additional function definitions for the CMmPacketContextGsmWcdmaExt class
+ * in CTSY for use when the CTSY is used with the CTSY Dispatcher.
+ */
+
+// INCLUDE FILES
+
+#include "cmmpacketservicegsmwcdmaext.h"
+
+// ---------------------------------------------------------------------------
+// CMmPacketContextGsmWcdmaExt::CompleteInitialiseContextL
+// This function starts context initialisation.
+// @param aChannelId The ChannelId allocated by the LTSY.
+// @param aResult Error code from LTSY
+// ---------------------------------------------------------------------------
+//
+void CMmPacketContextGsmWcdmaExt::CompleteInitialiseContext(const TDesC& aChannelId,
+ const TInt aResult ) // Result
+ {
+TFLOGSTRING3( "TSY: CMmPacketContextGsmWcdmaExt::CompleteInitialiseContext. Status: aChannelId=%S, aResult=%d",
+ &aChannelId, aResult);
+
+ if ( KErrNone == aResult )
+ {
+ iMmPacketContextTsy->CompleteNotifyStatusChange(
+ RPacketContext::EStatusInactive );
+
+ if(iDataChannel != NULL)
+ {
+ __ASSERT_DEBUG(aChannelId.Length() <= KMaxName, User::Invariant());
+ iDataChannel->iChannelId.Copy(aChannelId.Left(KMaxName));
+ iDataChannel->iPort.Copy(iMmPacketContextTsy->ContextName());
+ iDataChannel = NULL;
+ }
+
+ iIsActivateAllowed = ETrue;
+ // Set Dynamic Caps
+ iMmPacketServiceTsy->ActivePacketServiceExtension()->
+ SetDynamicCapsFlag( RPacketService::KCapsActivate, ETrue );
+ }
+ else
+ {
+ iIsInitialiseAllowed = ETrue;
+ }
+
+ iMmPacketContextTsy->CompleteInitialiseContext( aResult );
+
+ } // CMmPacketContextGsmWcdmaExt::CompleteInitialiseContext
+
+#endif //USING_CTSY_DISPATCHER