syncmlfw/syncmlnotifier/inc/SyncMLQueryDialog.h
branchRCL_3
changeset 25 b183ec05bd8c
parent 24 13d7c31c74e0
child 26 19bba8228ff0
equal deleted inserted replaced
24:13d7c31c74e0 25:b183ec05bd8c
     1 /*
       
     2 * Copyright (c) 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:  Query dialog.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef CSYNCMLQUERYDIALOG_H
       
    21 #define CSYNCMLQUERYDIALOG_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <AknQueryDialog.h>
       
    25 
       
    26 
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31 *  Message query with timeout.
       
    32 *
       
    33 *  @lib SyncMLNotifier
       
    34 *  @since Series 60 3.0
       
    35 */
       
    36 NONSHARABLE_CLASS ( CSyncMLQueryDialog ) : public CAknQueryDialog
       
    37                                                  
       
    38     {
       
    39     public:  // Constructors and destructor
       
    40         
       
    41         /**
       
    42         * Two-phased constructor.
       
    43         */
       
    44         static CSyncMLQueryDialog* NewL(TBool& aKeyPress);        
       
    45                   
       
    46         
       
    47         /**
       
    48         * Destructor.
       
    49         */
       
    50         virtual ~CSyncMLQueryDialog();
       
    51 
       
    52     public: // Functions from base classes
       
    53 
       
    54         
       
    55     protected:  // Functions from base classes
       
    56         
       
    57 
       
    58         /**
       
    59         * From CEikDialog: Determines if the dialog can be closed.
       
    60         * @param aButtonId Identifier of the button pressed.
       
    61         * @return whether to close the dialog or not.
       
    62         */
       
    63         TBool OkToExitL( TInt aButtonId );
       
    64 
       
    65         /**
       
    66         * Called by OfferkeyEventL(), gives a change to dismiss the query even with
       
    67         * keys different than Enter of Ok.
       
    68         * @param aKeyEvent has the key event details
       
    69         * @return whether to dismiss the dialog or not.
       
    70         */
       
    71         TBool NeedToDismissQueryL(const TKeyEvent& aKeyEvent);
       
    72         
       
    73         
       
    74     private:
       
    75 
       
    76         /**
       
    77         * C++ default constructor.
       
    78         */
       
    79         CSyncMLQueryDialog(TBool& aKeyPress  );
       
    80 
       
    81 
       
    82     private:    // Data
       
    83         
       
    84          TBool& iKeyPress;
       
    85     };
       
    86 
       
    87 #endif      // CSYNCMLQUERYDIALOG_H   
       
    88             
       
    89 // End of File