clock2/clockui/adtupdater/inc/adtupdaterquerydialog.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 /*
       
     2 * Copyright (c) 2008 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 the header file for the CAdtUpdaterQueryDialog class.
       
    15 *
       
    16 */
       
    17  
       
    18 #ifndef __ADTUPDATER_QUERYDIALOG_H__
       
    19 #define __ADTUPDATER_QUERYDIALOG_H__
       
    20 
       
    21 // System includes
       
    22 #include <AknQueryDialog.h>
       
    23 
       
    24 // User includes
       
    25 
       
    26 // Forward declaration
       
    27 
       
    28 // Class declaration
       
    29 /** 
       
    30 * @class CAdtUpdaterQueryDialog
       
    31 * @brief An instance of this is used to display date and time queries.
       
    32 * @exe adtupdater.exe
       
    33 */
       
    34 class CAdtUpdaterQueryDialog : public CAknTimeQueryDialog
       
    35     {
       
    36     public: 			// Constructor and destructor
       
    37         
       
    38     	/**
       
    39 		* @brief Create a CAdtUpdaterQueryDialog object. C++ default constructor. 
       
    40 		* @param aDefaultTime The default time/date value that will be displayed in the dialog.
       
    41 		*/
       
    42         CAdtUpdaterQueryDialog( TTime& aDefaultTime );
       
    43 
       
    44         /**
       
    45 		* @brief Destructor.
       
    46 		*/
       
    47         virtual ~CAdtUpdaterQueryDialog();        
       
    48 
       
    49     public:				// Functions from base classes
       
    50 
       
    51         /**
       
    52         * @brief 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 TKeyResponse Indicates whether or not the key event was used by this control.
       
    58         * @see CCoeControl
       
    59         */
       
    60 	    TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType );
       
    61 
       
    62     	/**
       
    63         * @brief From CAknQueryDialog. Called by OfferkeyEventL(), gives a change to dismiss the query with
       
    64 		* 		 send/answer key.
       
    65 		* @param aKeyEvent Key event
       
    66 		* @return TBool ETrue if the dialog has to be dismissed.
       
    67 		*/
       
    68 		virtual TBool NeedToDismissQueryL( const TKeyEvent& aKeyEvent );
       
    69 		
       
    70 		/**
       
    71 		* @brief From CAknQueryDialog. Called by NeedToDismissQueryL(), gives a change to 
       
    72 		* 	     either accept or reject the query. Default implementation is to accept 
       
    73 		* 		 the query if the Left soft key is displayed and reject it otherwise.
       
    74 		* 		 Left softkey is only displayed if the query has valid data into it.
       
    75 		*/
       
    76 		virtual void DismissQueryL();
       
    77 
       
    78         /**
       
    79         * @brief From CAknQueryDialog. Returns whether the left softkey is visible
       
    80         * @return TBool ETrue Is the left softkey is visible.
       
    81         */
       
    82         TBool IsLeftSoftkeyVisible();
       
    83     };
       
    84 
       
    85 #endif // __ADTUPDATER_QUERYDIALOG_H__
       
    86 
       
    87 // End of file