email/mail/EditorSrc/CMsgAddMailHeadersDlg.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2002-2005 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:  View for setting additional mail headers
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CMSGADDMAILHEADERSDLG_H
       
    21 #define CMSGADDMAILHEADERSDLG_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <s32std.h>
       
    26 #include <badesca.h>
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class TAdditionalHeaderStatus;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  Dialog for configuring additional mail headers
       
    35 *
       
    36 *  @since Series 3.0
       
    37  */
       
    38 NONSHARABLE_CLASS(CMsgAddMailHeadersDlg) : public CBase
       
    39 	{
       
    40 
       
    41 	public:  // Constructors and destructor
       
    42 
       
    43         /**
       
    44         * Two-phased constructor.
       
    45         * @param aHeaders headers array
       
    46         */
       
    47         static CMsgAddMailHeadersDlg* NewLC(
       
    48             RPointerArray<TAdditionalHeaderStatus>& aHeaders );
       
    49 
       
    50         /**
       
    51         * Destructor.
       
    52         */
       
    53         virtual ~CMsgAddMailHeadersDlg();
       
    54 
       
    55     public: // New functions
       
    56 
       
    57         /**
       
    58         * Launches the view for additional headers
       
    59         * @since Series 3.0
       
    60         * @return value of executed view
       
    61         */
       
    62         TBool ExecuteDialogL();
       
    63     
       
    64     private: // implementation
       
    65         
       
    66         CDesCArrayFlat* CreateItemTextArrayLC(
       
    67             CArrayFixFlat<TInt>* aVisibleItems );
       
    68         void UpdateHeadersArrayL(
       
    69             CArrayFixFlat<TInt>* aSelectedItems );    
       
    70 
       
    71     private:
       
    72 
       
    73         /**
       
    74         * C++ constructor.
       
    75         */
       
    76         CMsgAddMailHeadersDlg(
       
    77             RPointerArray<TAdditionalHeaderStatus>& aHeaders );
       
    78 
       
    79     private: //data
       
    80 
       
    81     // refs: selection data headers
       
    82     RPointerArray<TAdditionalHeaderStatus> iHeaders;
       
    83 
       
    84 	};
       
    85 #endif      //CMSGADDMAILHEADERSDLG_H
       
    86 
       
    87 // End of File