equal
deleted
inserted
replaced
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2008-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". |
521 } |
521 } |
522 |
522 |
523 iTzServer.DeleteUserTimeZoneL(aTzId); |
523 iTzServer.DeleteUserTimeZoneL(aTzId); |
524 } |
524 } |
525 |
525 |
526 |
|
527 /** |
526 /** |
528 Returns the time zone identifiers for all existing user-defined time zones. |
527 Returns the time zone identifiers for all existing user-defined time zones. |
529 |
528 |
530 @param aTzIds On return the array will be populated with the time zone |
529 @param aTzIds On return the array will be populated with the time zone |
531 identifiers for all existing user-defined time zones. If no user-defined time |
530 identifiers for all existing user-defined time zones. If no user-defined time |
532 zones exist the array will be empty. |
531 zones exist the array will be empty. |
533 */ |
532 */ |
534 EXPORT_C void CTzUserData::GetTzIdsL(RPointerArray<CTzId>& aTzIds) const |
533 EXPORT_C void CTzUserData::GetTzIdsL(RPointerArray<CTzId>& aTzIds) const |
535 { |
534 { |
|
535 CleanupStack::PushL( TCleanupItem(CleanupPointerArray, &aTzIds) ); |
536 iTzServer.GetUserTimeZoneIdsL(aTzIds); |
536 iTzServer.GetUserTimeZoneIdsL(aTzIds); |
537 } |
537 CleanupStack::Pop(); |
|
538 } |
|
539 |
|
540 void CTzUserData::CleanupPointerArray(TAny* aArray) |
|
541 { |
|
542 RPointerArray<CTzId>* array = static_cast<RPointerArray<CTzId>* >(aArray); |
|
543 if (array) |
|
544 { |
|
545 array->ResetAndDestroy(); |
|
546 array->Close(); |
|
547 } |
|
548 } |
|
549 |
|
550 |