|
1 /* |
|
2 * Copyright (c) 2002 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 * Message list view's listbox to create object of |
|
16 * CMceMessageListBoxItemDrawer. |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 |
|
22 // INCLUDE FILES |
|
23 #include <aknlists.h> |
|
24 |
|
25 #include "MceMessageListbox.h" |
|
26 #include "MceMessageListboxItemDrawer.h" |
|
27 |
|
28 // ================= MEMBER FUNCTIONS ======================= |
|
29 |
|
30 // C++ default constructor can NOT contain any code that |
|
31 // might leave. |
|
32 // |
|
33 CMceMessageListBox::CMceMessageListBox( CMceMessageListContainer& aMessageListContainer ) |
|
34 : CAknDoubleGraphicStyleListBox(), |
|
35 iMessageListContainer( aMessageListContainer ) |
|
36 { |
|
37 } |
|
38 |
|
39 |
|
40 // Destructor |
|
41 CMceMessageListBox::~CMceMessageListBox() |
|
42 { |
|
43 } |
|
44 |
|
45 |
|
46 // --------------------------------------------------------- |
|
47 // CMceMessageListBox::CreateItemDrawerL |
|
48 // --------------------------------------------------------- |
|
49 // |
|
50 void CMceMessageListBox::CreateItemDrawerL() |
|
51 { |
|
52 CFormattedCellListBoxData* cellData = CFormattedCellListBoxData::NewL(); |
|
53 CleanupStack::PushL( cellData ); |
|
54 iItemDrawer = new( ELeave ) CMceMessageListBoxItemDrawer( |
|
55 Model(), |
|
56 iEikonEnv->NormalFont(), |
|
57 cellData, |
|
58 iMessageListContainer ); |
|
59 CleanupStack::Pop( cellData ); |
|
60 } |
|
61 |
|
62 // End of File |