telephonyprotocols/psdagt/src/PSDAGTBase.cpp
branchRCL_3
changeset 20 07a122eea281
parent 19 630d2f34d719
equal deleted inserted replaced
19:630d2f34d719 20:07a122eea281
     1 // Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2003-2009 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 
       
    28 #include "PSDAGTBase.h"
    22 #include "PSDAGTBase.h"
       
    23 #include "debuglogger.h"
    29 #include "psdagt.h"
    24 #include "psdagt.h"
    30 
    25 
    31 /**
    26 /**
    32 First ordinal export
    27 First ordinal export
    33 
    28 
   123 @return a new CPsdOutSM or CPsdInSM object.
   118 @return a new CPsdOutSM or CPsdInSM object.
   124 @exception Leaves if NewL() leaves, or not enough memory is available.
   119 @exception Leaves if NewL() leaves, or not enough memory is available.
   125 @exception Panics if connection direction is unknown.
   120 @exception Panics if connection direction is unknown.
   126 */
   121 */
   127 	{
   122 	{
       
   123 	__FLOG_STMT(_LIT8(logString1,"GPRS:\tCreating a new PSD state machine - %s");)
       
   124 	
   128 	if (aDirection==ECommDbConnectionDirectionOutgoing)
   125 	if (aDirection==ECommDbConnectionDirectionOutgoing)
   129 		{
   126 		{
   130 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPSDAGENT_CREATEAGENTSML_1,"GPRS:\tCreating a new PSD state machine - Outbound");
   127 		__FLOG_STMT(const TText8 direction[] = "Outbound";)
       
   128 		__FLOG_STATIC1(KPsdAgxLogFolder(),KPsdAgxLogFile(),TRefByValue<const TDesC8>(logString1()),&direction);
   131 		return CPsdOutSM::NewL(aObserver,aDlgPrc,aDb);
   129 		return CPsdOutSM::NewL(aObserver,aDlgPrc,aDb);
   132 		}
   130 		}
   133 	else 
   131 	else 
   134 		{
   132 		{
   135 #ifndef INCOMING_NOT_SUPORTED
   133 #ifndef INCOMING_NOT_SUPORTED
   136 		__ASSERT_ALWAYS(aDirection==ECommDbConnectionDirectionIncoming, PanicAgx(EPsdBadDirection));
   134 		__ASSERT_ALWAYS(aDirection==ECommDbConnectionDirectionIncoming, PanicAgx(EPsdBadDirection));
   137 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPSDAGENT_CREATEAGENTSML_2,"GPRS:\tCreating a new PSD state machine - Inbound");
   135 		__FLOG_STMT(const TText8 direction[] = "Inbound";)
       
   136 		__FLOG_STATIC1(KPsdAgxLogFolder(),KPsdAgxLogFile(),TRefByValue<const TDesC8>(logString1()),&direction);
   138 		return CPsdInSM::NewL(aObserver,aDlgPrc,aDb);
   137 		return CPsdInSM::NewL(aObserver,aDlgPrc,aDb);
   139 #else
   138 #else
   140 		User::Leave(KErrNotSupported);
   139 		User::Leave(KErrNotSupported);
   141 		return NULL;
   140 		return NULL;
   142 #endif
   141 #endif