equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2005-2007 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
287 CleanupStack::PopAndDestroy(2); // commsDb, aPUtils |
287 CleanupStack::PopAndDestroy(2); // commsDb, aPUtils |
288 #endif |
288 #endif |
289 } |
289 } |
290 |
290 |
291 // ----------------------------------------------------------------------------- |
291 // ----------------------------------------------------------------------------- |
|
292 // CXDMPluginSettinglist::IsAccessPointInUseL(TInt32 aAP) |
|
293 // ----------------------------------------------------------------------------- |
|
294 // |
|
295 TBool CXDMPluginSettinglist::IsAccessPointInUseL(TInt32 aAP) |
|
296 { |
|
297 TBool inUse( EFalse ); |
|
298 |
|
299 CCommsDatabase* commsDb = CCommsDatabase::NewL( EDatabaseTypeIAP ); |
|
300 CleanupStack::PushL(commsDb); |
|
301 CApUtils* aPUtils = CApUtils::NewLC( *commsDb ); |
|
302 TInt err(KErrNone); |
|
303 // to remove id bug |
|
304 TRAP(err, aAP = aPUtils->WapIdFromIapIdL(aAP)); |
|
305 inUse = aPUtils->IsAPInUseL( aAP ); |
|
306 // dont do anything if name not found or if some error occur |
|
307 CleanupStack::PopAndDestroy(2); // commsDb, aPUtils |
|
308 |
|
309 return inUse; |
|
310 } |
|
311 |
|
312 // ----------------------------------------------------------------------------- |
292 // CXDMPluginSettinglist::SetTitlePaneTextL( const TDesC& aTitleText ) const |
313 // CXDMPluginSettinglist::SetTitlePaneTextL( const TDesC& aTitleText ) const |
293 // ----------------------------------------------------------------------------- |
314 // ----------------------------------------------------------------------------- |
294 // |
315 // |
295 void CXDMPluginSettinglist::SetTitlePaneTextL( const TDesC& aTitleText ) const |
316 void CXDMPluginSettinglist::SetTitlePaneTextL( const TDesC& aTitleText ) const |
296 { |
317 { |