cellular/psetnotesui/inc/psuiquerydialog.h
changeset 51 12bc758d6a02
parent 48 78df25012fda
child 53 25b8d29b7c59
equal deleted inserted replaced
48:78df25012fda 51:12bc758d6a02
     1 /*
       
     2 * Copyright (c) 2006 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:  Query dialog for handling key events.
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 */
       
    20 
       
    21 #ifndef CPSUIQUERYDIALOG_H
       
    22 #define CPSUIQUERYDIALOG_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <AknQueryDialog.h> 
       
    26 
       
    27 NONSHARABLE_CLASS ( CPsuiQueryDialog ) : public CAknQueryDialog
       
    28     {
       
    29     public:  // Constructors and destructor
       
    30 
       
    31         /**
       
    32         * Symbian OS two-phased constructor.
       
    33         * 
       
    34         * @return Returns CPsuiQueryDialog -pointer.
       
    35         */
       
    36         static CPsuiQueryDialog* NewL( CAknQueryDialog::TTone aTone );
       
    37 
       
    38         /**
       
    39         * Constructor
       
    40         */
       
    41         CPsuiQueryDialog( CAknQueryDialog::TTone aTone );  
       
    42         
       
    43         /**
       
    44         * Destructor.
       
    45         */
       
    46         virtual ~CPsuiQueryDialog();  
       
    47 
       
    48         
       
    49     protected:
       
    50 
       
    51         /**
       
    52         * From CCoeControl  Handle key events. When a key event occurs, 
       
    53         *                   CONE calls this function for each control on the control stack, 
       
    54         *                   until one of them returns EKeyWasConsumed to indicate that it processed the key event.  
       
    55         * @param aKeyEvent  The key event.
       
    56         * @param aType      The type of the event: EEventKey, EEventKeyUp or EEventKeyDown.
       
    57         * @return           Indicates whether or not the key event was used by this control.
       
    58         */
       
    59         TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
       
    60 
       
    61         /**
       
    62         * From CEikdialog   This function is called by the EIKON framework 
       
    63         *                   if the user activates a button in the button panel. 
       
    64         *                   It is not called if the Cancel button is activated, 
       
    65         *                   unless the EEikDialogFlagNotifyEsc flag is set.
       
    66         * @param aButtonId  The ID of the button that was activated
       
    67         * @return           Should return ETrue if the dialog should exit, and EFalse if it should not.
       
    68         */
       
    69         TBool OkToExitL( TInt aCommand );        
       
    70     };
       
    71 
       
    72 #endif // CPSUIQUERYDIALOG_H   
       
    73             
       
    74 // End of File