calendarui/controller/src/calenattachmentlistbox.cpp
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 2009 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 *
       
    16 */
       
    17 
       
    18 // ========== INCLUDE FILES ================================
       
    19 #include <msvapi.h>
       
    20 #include <eikspane.h>
       
    21 #include <eikmenup.h>
       
    22 #include <AknDef.h>
       
    23 #include <aknappui.h>
       
    24 #include <akntitle.h>
       
    25 #include <aknnavi.h>
       
    26 #include <aknlists.h>
       
    27 #include <gulicon.h>
       
    28 #include <coeutils.h>               // for ConeUtils::FileExists
       
    29 #include <bautils.h>
       
    30 #include <aknnotewrappers.h>
       
    31 #include <AknWaitDialog.h>          // CAknWaitDialog
       
    32 #include <DocumentHandler.h>
       
    33 #include <StringLoader.h>           // StringLoader
       
    34 #include <AiwCommon.h>
       
    35 #include <NpdApi.h>
       
    36 #include <avkon.hrh>
       
    37 #include <aknlayout.cdl.h>
       
    38 #include <aknlayoutscalable_avkon.cdl.h>
       
    39 #include <AknUtils.h>
       
    40 #include <AknsUtils.h>          // skinned icons
       
    41 #include <AknsConstants.h>      // skinned icon ids
       
    42 #include <aknlistloadertfx.h>
       
    43 #include <aknlistboxtfxinternal.h>
       
    44 
       
    45 #include "calenattachmentslistbox.h"
       
    46 #include "calendarui_debug.h"
       
    47 #include "calenattachmentinfo.h"
       
    48 #include "calenattachmentmodel.h"
       
    49 #include "calenviewattachmentsdialog.h"
       
    50 #include "calenattachmentutils.h"
       
    51 #include "calenattalistitemarray.h"
       
    52 #include "calenattachmentitemdrawer.h"
       
    53 #include <calendar.mbg>
       
    54 #include "calendar.hrh"
       
    55 #include <calencommonui.rsg>
       
    56 
       
    57 
       
    58 // ---------------------------------------------------------
       
    59 // CCalenAttachmentsListBox::CCalenAttachmentsListBox
       
    60 // ---------------------------------------------------------
       
    61 //
       
    62 CCalenAttachmentsListBox::CCalenAttachmentsListBox( CCalenAttachmentModel& aAttachmentModel )
       
    63     : CAknDoubleLargeStyleListBox(),
       
    64       iAttachmentModel( aAttachmentModel )
       
    65     {
       
    66     TRACE_ENTRY_POINT;
       
    67     TRACE_EXIT_POINT;
       
    68     }
       
    69 
       
    70 // ---------------------------------------------------------
       
    71 // void CCalenAttachmentsListBox::CreateItemDrawerL
       
    72 // ---------------------------------------------------------
       
    73 //
       
    74 void CCalenAttachmentsListBox::CreateItemDrawerL()
       
    75     {
       
    76     TRACE_ENTRY_POINT;
       
    77     
       
    78     CFormattedCellListBoxData* cellData = CFormattedCellListBoxData::NewL();
       
    79     CleanupStack::PushL( cellData );
       
    80     iItemDrawer = new ( ELeave ) CCalenAttachmentItemDrawer(
       
    81         Model(),
       
    82         iEikonEnv->NormalFont(),
       
    83         cellData,
       
    84         iAttachmentModel,
       
    85         this );
       
    86     CleanupStack::Pop(); // cellData
       
    87     
       
    88     TRACE_EXIT_POINT;
       
    89     }
       
    90 
       
    91 // ---------------------------------------------------------
       
    92 // CCalenAttachmentsListBox::Draw
       
    93 // ---------------------------------------------------------
       
    94 //
       
    95 void CCalenAttachmentsListBox::Draw()const
       
    96     {
       
    97     TRACE_ENTRY_POINT;
       
    98     TRACE_EXIT_POINT;
       
    99     
       
   100     }
       
   101 // End of File