mobilemessaging/unieditor/application/inc/UniEditorAddHeaderDialog.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2006,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:   This is used when user wants to change the additional header fields.    
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef UNIEDITORADDHEADERDIALOG_H
       
    21 #define UNIEDITORADDHEADERDIALOG_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <aknlistquerydialog.h> 
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 * CUniEditorAddHeaderDialog is when user wants to change the setting
       
    30 * of each additional header field.
       
    31 * 
       
    32 * @since 3.2
       
    33 */
       
    34 class CUniEditorAddHeaderDialog : public CAknListQueryDialog
       
    35     {
       
    36     public:  // Constructors and destructor
       
    37         
       
    38         /**
       
    39         * C++ constructor.
       
    40         */
       
    41         CUniEditorAddHeaderDialog( CListBoxView::CSelectionIndexArray* aSelectionIndexArray );
       
    42         
       
    43         /**
       
    44         * Destructor.
       
    45         */
       
    46         virtual ~CUniEditorAddHeaderDialog();
       
    47 
       
    48     public: // Functions from base classes
       
    49 
       
    50         /**
       
    51         * Loaded version to enable Send key(EKeyYes)  and Ok key(EKeyOK) handling.
       
    52         * 
       
    53         * @see CAknListQueryDialog::OfferKeyEventL.
       
    54         */
       
    55         TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
       
    56 
       
    57         /**
       
    58         * From CAknListQueryDialog 
       
    59         */
       
    60         TBool OkToExitL( TInt aButtonId );
       
    61 
       
    62         /**
       
    63         * From MEikCommandObserver
       
    64         */
       
    65         void ProcessCommandL( TInt aCommandId );
       
    66 
       
    67     private:
       
    68         
       
    69         /**
       
    70         * Updates MSK label
       
    71         */
       
    72         void UpdateMskL();
       
    73         
       
    74         /**
       
    75         * Performs toggle
       
    76         */
       
    77         void ToggleL();
       
    78         
       
    79         /**
       
    80         * Returns whether current item is selected
       
    81         */
       
    82         TBool IsCurrentSelected();
       
    83         
       
    84         /**
       
    85         * Returns pointer to listbox view.
       
    86         */
       
    87         CListBoxView* View();
       
    88     };
       
    89 
       
    90 #endif      // UNIEDITORADDHEADERDIALOG_H 
       
    91             
       
    92 // End of File