diff -r ebe688cedc25 -r 7fdbb852d323 messagingappbase/mce/src/MceListItemArrayGetSmsNumberGSM.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/messagingappbase/mce/src/MceListItemArrayGetSmsNumberGSM.cpp Wed Sep 01 12:31:54 2010 +0100 @@ -0,0 +1,54 @@ +/* +* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* Defines methods for CMceListItemArray +* +*/ + + +#if 0 +// INCLUDE FILES +#include +#include +#ifdef RD_MSG_LIST_IMPROVEMENT +#include "MceMessageListItemArray.h" +#else +#include "MceListItemArray.h" +#endif +// ---------------------------------------------------- +// CMceListItemArray::GetSmsNumberL +// Gets phone number from SMS entry +// ---------------------------------------------------- +#ifdef RD_MSG_LIST_IMPROVEMENT +void CMceMessageListItemArray::GetSmsNumberL( const TMsvEntry& aEntry, TPhCltTelephoneNumber& aNumber ) const +#else +void CMceListItemArray::GetSmsNumberL( const TMsvEntry& aEntry, TPhCltTelephoneNumber& aNumber ) const +#endif + { + TMsvId entryId = aEntry.Id(); + CMsvEntry* parentEntry = iSession->GetEntryL( entryId ); + CleanupStack::PushL( parentEntry ); + CPlainText* nullString = CPlainText::NewL(); + CleanupStack::PushL( nullString ); + CSmsHeader* header = CSmsHeader::NewL( CSmsPDU::ESmsDeliver, *nullString ); + CleanupStack::PushL( header ); + CMsvStore* store = parentEntry->ReadStoreL(); + CleanupStack::PushL( store ); + header->RestoreL( *store ); + aNumber = header->FromAddress(); + CleanupStack::PopAndDestroy( 4 ); // store, header, parentEntry, nullString + } +#endif + +// End of File