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". |
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 |