messagingappbase/msgeditor/appuisrc/MsgAttachmentsListBox.cpp
branchRCL_3
changeset 60 7fdbb852d323
parent 0 72b543305e3a
equal deleted inserted replaced
57:ebe688cedc25 60:7fdbb852d323
       
     1 /*
       
     2 * Copyright (c) 2007 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:  MsgAttachmentsListBox implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // ========== INCLUDE FILES ================================
       
    21 #include <msvapi.h>
       
    22 #include <eikspane.h>
       
    23 #include <eikmenup.h>
       
    24 #include <AknDef.h>
       
    25 #include <aknappui.h>
       
    26 #include <akntitle.h>
       
    27 #include <aknnavi.h>
       
    28 #include <aknlists.h>
       
    29 #include <gulicon.h>
       
    30 #include <coeutils.h>               // for ConeUtils::FileExists
       
    31 #include <bautils.h>
       
    32 #include <aknnotewrappers.h>
       
    33 #include <AknWaitDialog.h>          // CAknWaitDialog
       
    34 #include <DocumentHandler.h>
       
    35 #include <StringLoader.h>           // StringLoader
       
    36 #include <AiwCommon.h>
       
    37 #include <NpdApi.h>
       
    38 
       
    39 #include <mmsvattachmentmanager.h>
       
    40 
       
    41 #include <avkon.hrh>
       
    42 
       
    43 #include <aknlayout.cdl.h>
       
    44 #include <aknlayoutscalable_avkon.cdl.h>
       
    45 
       
    46 #include <AknUtils.h>
       
    47 #include <AknsUtils.h>          // skinned icons
       
    48 #include <AknsConstants.h>      // skinned icon ids
       
    49 
       
    50 #include "MsgEditorCommon.h"        // for KMsgEditorMbm
       
    51 #include "MsgEditorDocument.h"
       
    52 #include "MsgAttachmentInfo.h"
       
    53 #include "MsgAttachmentModel.h"
       
    54 #include "MsgViewAttachmentsDialog.h"
       
    55 #include "MsgAttachmentUtils.h"
       
    56 #include "MsgAttaListItemArray.h"
       
    57 
       
    58 #include <msgeditor.mbg>
       
    59 #include "MsgEditorAppUi.hrh"
       
    60 #include <MsgEditorAppUi.rsg>       // resouce identifiers
       
    61 
       
    62 #include <aknlistloadertfx.h>
       
    63 #include <aknlistboxtfxinternal.h>
       
    64 
       
    65 // ========== EXTERNAL DATA STRUCTURES =====================
       
    66 
       
    67 // ========== EXTERNAL FUNCTION PROTOTYPES =================
       
    68 
       
    69 // ========== CONSTANTS ====================================
       
    70 
       
    71 // ========== MACROS =======================================
       
    72 
       
    73 // ========== LOCAL CONSTANTS AND MACROS ===================
       
    74 
       
    75 // ========== MODULE DATA STRUCTURES =======================
       
    76 
       
    77 // ========== LOCAL FUNCTION PROTOTYPES ====================
       
    78 
       
    79 // ========== LOCAL FUNCTIONS ==============================
       
    80 
       
    81 // ========== MEMBER FUNCTIONS =============================
       
    82 
       
    83 // ---------------------------------------------------------
       
    84 // CMsgAttachmentsListBox::CMsgAttachmentsListBox
       
    85 //
       
    86 //
       
    87 // ---------------------------------------------------------
       
    88 //
       
    89 CMsgAttachmentsListBox::CMsgAttachmentsListBox( CMsgAttachmentModel& aAttachmentModel )
       
    90     : CAknDoubleLargeStyleListBox(),
       
    91       iAttachmentModel( aAttachmentModel )
       
    92     {
       
    93     }
       
    94 
       
    95 // ---------------------------------------------------------
       
    96 // void CMsgAttachmentsListBox::CreateItemDrawerL
       
    97 //
       
    98 //
       
    99 // ---------------------------------------------------------
       
   100 //
       
   101 void CMsgAttachmentsListBox::CreateItemDrawerL()
       
   102     {
       
   103     CFormattedCellListBoxData* cellData = CFormattedCellListBoxData::NewL();
       
   104     CleanupStack::PushL( cellData );
       
   105     iItemDrawer = new ( ELeave ) CMsgAttachmentItemDrawer(
       
   106         Model(),
       
   107         iEikonEnv->NormalFont(),
       
   108         cellData,
       
   109         iAttachmentModel,
       
   110         this );
       
   111     CleanupStack::Pop(); // cellData
       
   112     }
       
   113 
       
   114 // End of File