telephonyprotocols/psdagt/src/PSDAGTBase.cpp
branchRCL_3
changeset 65 630d2f34d719
parent 0 3553901f7fa8
child 66 07a122eea281
equal deleted inserted replaced
61:17af172ffa5f 65:630d2f34d719
     1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    17 
    17 
    18 /**
    18 /**
    19  @file PSDAGTBase.cpp
    19  @file PSDAGTBase.cpp
    20 */
    20 */
    21 
    21 
       
    22 
       
    23 #include "OstTraceDefinitions.h"
       
    24 #ifdef OST_TRACE_COMPILER_IN_USE
       
    25 #include "PSDAGTBaseTraces.h"
       
    26 #endif
       
    27 
    22 #include "PSDAGTBase.h"
    28 #include "PSDAGTBase.h"
    23 #include "debuglogger.h"
       
    24 #include "psdagt.h"
    29 #include "psdagt.h"
    25 
    30 
    26 /**
    31 /**
    27 First ordinal export
    32 First ordinal export
    28 
    33 
   118 @return a new CPsdOutSM or CPsdInSM object.
   123 @return a new CPsdOutSM or CPsdInSM object.
   119 @exception Leaves if NewL() leaves, or not enough memory is available.
   124 @exception Leaves if NewL() leaves, or not enough memory is available.
   120 @exception Panics if connection direction is unknown.
   125 @exception Panics if connection direction is unknown.
   121 */
   126 */
   122 	{
   127 	{
   123 	__FLOG_STMT(_LIT8(logString1,"GPRS:\tCreating a new PSD state machine - %s");)
       
   124 	
       
   125 	if (aDirection==ECommDbConnectionDirectionOutgoing)
   128 	if (aDirection==ECommDbConnectionDirectionOutgoing)
   126 		{
   129 		{
   127 		__FLOG_STMT(const TText8 direction[] = "Outbound";)
   130 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPSDAGENT_CREATEAGENTSML_1,"GPRS:\tCreating a new PSD state machine - Outbound");
   128 		__FLOG_STATIC1(KPsdAgxLogFolder(),KPsdAgxLogFile(),TRefByValue<const TDesC8>(logString1()),&direction);
       
   129 		return CPsdOutSM::NewL(aObserver,aDlgPrc,aDb);
   131 		return CPsdOutSM::NewL(aObserver,aDlgPrc,aDb);
   130 		}
   132 		}
   131 	else 
   133 	else 
   132 		{
   134 		{
   133 #ifndef INCOMING_NOT_SUPORTED
   135 #ifndef INCOMING_NOT_SUPORTED
   134 		__ASSERT_ALWAYS(aDirection==ECommDbConnectionDirectionIncoming, PanicAgx(EPsdBadDirection));
   136 		__ASSERT_ALWAYS(aDirection==ECommDbConnectionDirectionIncoming, PanicAgx(EPsdBadDirection));
   135 		__FLOG_STMT(const TText8 direction[] = "Inbound";)
   137 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPSDAGENT_CREATEAGENTSML_2,"GPRS:\tCreating a new PSD state machine - Inbound");
   136 		__FLOG_STATIC1(KPsdAgxLogFolder(),KPsdAgxLogFile(),TRefByValue<const TDesC8>(logString1()),&direction);
       
   137 		return CPsdInSM::NewL(aObserver,aDlgPrc,aDb);
   138 		return CPsdInSM::NewL(aObserver,aDlgPrc,aDb);
   138 #else
   139 #else
   139 		User::Leave(KErrNotSupported);
   140 		User::Leave(KErrNotSupported);
   140 		return NULL;
   141 		return NULL;
   141 #endif
   142 #endif