email/mail/EditorSrc/MsgMailViewAttachmentsDlg.h
branchRCL_3
changeset 27 7fdbb852d323
parent 0 72b543305e3a
equal deleted inserted replaced
26:ebe688cedc25 27:7fdbb852d323
       
     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:  This dialog is used for attachment handling.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef MSGMAILVIEWATTACHMENTS_H
       
    20 #define MSGMAILVIEWATTACHMENTS_H
       
    21 
       
    22 //  INCLUDES
       
    23 #include <MsgViewAttachmentsDialog.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CMsgMailEditorDocument;
       
    27 class CMsgMailEditorAppUi;
       
    28 
       
    29 // CLASS DECLARATION
       
    30 
       
    31 /**
       
    32 *  Dialog for attachments.
       
    33 *  Mail Editor attachments are handled from this dialog.
       
    34 */
       
    35 class CMsgMailViewAttachmentsDlg :
       
    36 	public CMsgViewAttachmentsDialog
       
    37     {
       
    38     public:  // Constructors and destructor
       
    39 
       
    40         /**
       
    41         * NewL()
       
    42         * @param aTitle Dialog title text
       
    43         * @param aAttachmentModel a reference to attachment model
       
    44         * @param aAppUi a reference to MsgMailEditorAppUi
       
    45         * @param aHelpSupported ETrue if help supported 
       
    46         */
       
    47         static CMsgMailViewAttachmentsDlg* NewL(TDesC& aTitle,
       
    48             CMsgAttachmentModel& aAttachmentModel, CMsgMailEditorAppUi& aAppUi,
       
    49             TBool aHelpSupported);
       
    50         
       
    51         /**
       
    52         * Destructor.
       
    53         */
       
    54         ~CMsgMailViewAttachmentsDlg();
       
    55         
       
    56     private: // Constructor
       
    57         /**
       
    58         * Constructor.
       
    59         * @params see NewL()
       
    60         * @param aMenuId Dialog menu resource Id
       
    61         */
       
    62         CMsgMailViewAttachmentsDlg(
       
    63             TDesC& aTitle, TInt aMenuId,
       
    64             CMsgAttachmentModel& aAttachmentModel, CMsgMailEditorAppUi& aAppUi);
       
    65 
       
    66 
       
    67     private: // Functions from base classes
       
    68         /**
       
    69         * From CAknDialog
       
    70         */
       
    71         void DynInitMenuPaneL(TInt aMenuId, CEikMenuPane* aMenuPane);
       
    72 
       
    73         /**
       
    74         * From CCoeControl
       
    75         */
       
    76         TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
       
    77 
       
    78         /**
       
    79         * From CAknDialog
       
    80         */
       
    81         void ProcessCommandL(TInt aCommandId);
       
    82 
       
    83 		/**
       
    84 		* @param aContext Help context reference for returning current context
       
    85 		*/
       
    86 		void GetHelpContext( TCoeHelpContext& aContext) const;
       
    87 
       
    88         /**
       
    89         * From MEikListBoxObserver
       
    90         */
       
    91         void HandleListBoxEventL( CEikListBox* aListBox, 
       
    92             TListBoxEvent aEventType );
       
    93 
       
    94     private: // implementation
       
    95 
       
    96         void OpenAttachmentL();
       
    97         void DoShowSelectionListL();
       
    98 
       
    99     private:    // Data
       
   100         /**
       
   101         * Ref: application UI object.
       
   102         */
       
   103         CMsgMailEditorAppUi& iAppUi;
       
   104         
       
   105         /**
       
   106         * Feature flag
       
   107         */
       
   108         TBool iHelpSupported;
       
   109         
       
   110     };
       
   111 
       
   112 #endif      // MSGMAILVIEWATTACHMENTS_H
       
   113 
       
   114 // End of File