|
1 /* |
|
2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Defines methods for CMceListItemArray |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #if 0 |
|
21 // INCLUDE FILES |
|
22 #include <txtetext.h> |
|
23 #include <smuthdr.h> |
|
24 #ifdef RD_MSG_LIST_IMPROVEMENT |
|
25 #include "MceMessageListItemArray.h" |
|
26 #else |
|
27 #include "MceListItemArray.h" |
|
28 #endif |
|
29 // ---------------------------------------------------- |
|
30 // CMceListItemArray::GetSmsNumberL |
|
31 // Gets phone number from SMS entry |
|
32 // ---------------------------------------------------- |
|
33 #ifdef RD_MSG_LIST_IMPROVEMENT |
|
34 void CMceMessageListItemArray::GetSmsNumberL( const TMsvEntry& aEntry, TPhCltTelephoneNumber& aNumber ) const |
|
35 #else |
|
36 void CMceListItemArray::GetSmsNumberL( const TMsvEntry& aEntry, TPhCltTelephoneNumber& aNumber ) const |
|
37 #endif |
|
38 { |
|
39 TMsvId entryId = aEntry.Id(); |
|
40 CMsvEntry* parentEntry = iSession->GetEntryL( entryId ); |
|
41 CleanupStack::PushL( parentEntry ); |
|
42 CPlainText* nullString = CPlainText::NewL(); |
|
43 CleanupStack::PushL( nullString ); |
|
44 CSmsHeader* header = CSmsHeader::NewL( CSmsPDU::ESmsDeliver, *nullString ); |
|
45 CleanupStack::PushL( header ); |
|
46 CMsvStore* store = parentEntry->ReadStoreL(); |
|
47 CleanupStack::PushL( store ); |
|
48 header->RestoreL( *store ); |
|
49 aNumber = header->FromAddress(); |
|
50 CleanupStack::PopAndDestroy( 4 ); // store, header, parentEntry, nullString |
|
51 } |
|
52 #endif |
|
53 |
|
54 // End of File |