diff -r 000000000000 -r f979ecb2b13e calendarui/controller/src/calenattachmentlistbox.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/calendarui/controller/src/calenattachmentlistbox.cpp Tue Feb 02 10:12:19 2010 +0200 @@ -0,0 +1,101 @@ +/* +* Copyright (c) 2009 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: +* +*/ + +// ========== INCLUDE FILES ================================ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include // for ConeUtils::FileExists +#include +#include +#include // CAknWaitDialog +#include +#include // StringLoader +#include +#include +#include +#include +#include +#include +#include // skinned icons +#include // skinned icon ids +#include +#include + +#include "calenattachmentslistbox.h" +#include "calendarui_debug.h" +#include "calenattachmentinfo.h" +#include "calenattachmentmodel.h" +#include "calenviewattachmentsdialog.h" +#include "calenattachmentutils.h" +#include "calenattalistitemarray.h" +#include "calenattachmentitemdrawer.h" +#include +#include "calendar.hrh" +#include + + +// --------------------------------------------------------- +// CCalenAttachmentsListBox::CCalenAttachmentsListBox +// --------------------------------------------------------- +// +CCalenAttachmentsListBox::CCalenAttachmentsListBox( CCalenAttachmentModel& aAttachmentModel ) + : CAknDoubleLargeStyleListBox(), + iAttachmentModel( aAttachmentModel ) + { + TRACE_ENTRY_POINT; + TRACE_EXIT_POINT; + } + +// --------------------------------------------------------- +// void CCalenAttachmentsListBox::CreateItemDrawerL +// --------------------------------------------------------- +// +void CCalenAttachmentsListBox::CreateItemDrawerL() + { + TRACE_ENTRY_POINT; + + CFormattedCellListBoxData* cellData = CFormattedCellListBoxData::NewL(); + CleanupStack::PushL( cellData ); + iItemDrawer = new ( ELeave ) CCalenAttachmentItemDrawer( + Model(), + iEikonEnv->NormalFont(), + cellData, + iAttachmentModel, + this ); + CleanupStack::Pop(); // cellData + + TRACE_EXIT_POINT; + } + +// --------------------------------------------------------- +// CCalenAttachmentsListBox::Draw +// --------------------------------------------------------- +// +void CCalenAttachmentsListBox::Draw()const + { + TRACE_ENTRY_POINT; + TRACE_EXIT_POINT; + + } +// End of File