equal
deleted
inserted
replaced
1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2009-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". |
183 buf.Append( KNqapString ); |
183 buf.Append( KNqapString ); |
184 buf.Append( *supportedAp ); |
184 buf.Append( *supportedAp ); |
185 buf.Append( KCrlfString ); |
185 buf.Append( KCrlfString ); |
186 buf.Append( KOkString ); |
186 buf.Append( KOkString ); |
187 |
187 |
|
188 delete supportedAp; |
188 aReply.Zero(); |
189 aReply.Zero(); |
189 aReply.Create( buf ); |
190 aReply.CreateL( buf ); |
190 |
191 |
191 TRACE_FUNC_EXIT |
192 TRACE_FUNC_EXIT |
192 return; |
193 return; |
193 } |
194 } |
194 |
195 |
207 iPAMEngine->ReadAccessPointTableL( aAccessPoint, apArray ); |
208 iPAMEngine->ReadAccessPointTableL( aAccessPoint, apArray ); |
208 |
209 |
209 TInt apArrayLength = apArray->Count(); |
210 TInt apArrayLength = apArray->Count(); |
210 if ( apArrayLength > 0) |
211 if ( apArrayLength > 0) |
211 { |
212 { |
212 HBufC8* buf = HBufC8::NewL( KreplyBufferLength ); |
213 HBufC8* buf = HBufC8::NewLC( KreplyBufferLength ); |
213 buf->Des().Zero(); |
214 buf->Des().Zero(); |
214 buf->Des().Append( KCrlfString ); |
215 buf->Des().Append( KCrlfString ); |
215 for (TInt i=0; i < apArrayLength; i++ ) |
216 for (TInt i=0; i < apArrayLength; i++ ) |
216 { |
217 { |
217 // AT*NQAP=<n> responce |
218 // AT*NQAP=<n> responce |
219 buf->Des().Append( (*apArray)[i] ); |
220 buf->Des().Append( (*apArray)[i] ); |
220 buf->Des().Append( KCrlfString ); |
221 buf->Des().Append( KCrlfString ); |
221 } |
222 } |
222 buf->Des().Append( KOkString ); |
223 buf->Des().Append( KOkString ); |
223 aReply.Zero(); |
224 aReply.Zero(); |
224 aReply.Create( *buf ); |
225 aReply.CreateL( *buf ); |
|
226 CleanupStack::PopAndDestroy(buf); // buf; |
225 } |
227 } |
226 else |
228 else |
227 { |
229 { |
228 aReply.Zero(); |
230 aReply.Zero(); |
229 aReply.Create( KOkString ); |
231 aReply.Create( KOkString ); |