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