47 */ |
47 */ |
48 void CCamInfoListBox::ConstructL( CCamAppController& aController, |
48 void CCamInfoListBox::ConstructL( CCamAppController& aController, |
49 const CCoeControl* aParent, |
49 const CCoeControl* aParent, |
50 RPointerArray<HBufC>& aSummaryTitleTextArray, |
50 RPointerArray<HBufC>& aSummaryTitleTextArray, |
51 RPointerArray<HBufC>& aSummaryDescriptionTextArray, |
51 RPointerArray<HBufC>& aSummaryDescriptionTextArray, |
52 TInt aResourceId ) |
52 TInt aResourceId, |
|
53 TBool aSkinnedBackGround ) |
53 { |
54 { |
54 iBorder = TGulBorder::ENone; |
55 iBorder = TGulBorder::ENone; |
55 |
56 |
56 //Constructing model |
57 //Constructing model |
57 CCamInfoListBoxModel* model = |
58 CCamInfoListBoxModel* model = |
58 CCamInfoListBoxModel::NewLC( aController, aSummaryTitleTextArray, |
59 CCamInfoListBoxModel::NewLC( aController, aSummaryTitleTextArray, |
59 aSummaryDescriptionTextArray, aResourceId, Rect() ); |
60 aSummaryDescriptionTextArray, aResourceId, Rect() ); |
60 |
61 |
61 CCamCaptureSetupListItemDrawer* itemDrawer = |
62 CCamCaptureSetupListItemDrawer* itemDrawer = |
62 CCamCaptureSetupListItemDrawer::NewL( *model ); |
63 CCamCaptureSetupListItemDrawer::NewL( *model, aSkinnedBackGround ); |
63 |
64 |
64 |
65 |
65 itemDrawer->SetParentControl( aParent ); |
66 itemDrawer->SetParentControl( aParent ); |
66 |
67 |
67 // CEikListBox takes ownership before anything can leave. |
68 // CEikListBox takes ownership before anything can leave. |