gssettingsuis/Gs/GSAutoKeyguardPlugin/Inc/GSAutoKeyguardPluginAutoKeyguardTimeQuery.h
branchRCL_3
changeset 54 7e0eff37aedb
parent 0 8c5d936e5675
equal deleted inserted replaced
53:8ee96d21d9bf 54:7e0eff37aedb
       
     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:  Time query for setting Autokeyguard period.
       
    15 *           
       
    16 *           
       
    17 *          
       
    18 *
       
    19 */
       
    20 
       
    21 
       
    22 #ifndef AUTOKEYGUARDTIMEQUERYDIALOG_H
       
    23 #define AUTOKEYGUARDTIMEQUERYDIALOG_H
       
    24 
       
    25 // INCLUDES
       
    26 #include <AknQueryDialog.h>       //used for Time and Date query
       
    27 
       
    28 //  FORWARD DECLARATIONS
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 // CONSTANTS
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37 * CAutoKeyguardTimeQuery class.
       
    38 */
       
    39 class CAutoKeyguardTimeQuery : public CAknTimeQueryDialog
       
    40     {
       
    41     public://construction and destruction
       
    42         /**
       
    43          * C++ Constructor.
       
    44          */
       
    45         CAutoKeyguardTimeQuery(TTime& aTime,const TTone aTone = ENoTone);
       
    46         
       
    47         /**
       
    48          * C++ Destructor.
       
    49          */
       
    50         virtual ~CAutoKeyguardTimeQuery();
       
    51         
       
    52     public:// from CCoeControl
       
    53 
       
    54         /**
       
    55         * From CCoeControl  Handle key events. When a key event occurs, 
       
    56         *                   CONE calls this function for each control on the control stack, 
       
    57         *                   until one of them returns EKeyWasConsumed to indicate that it processed the key event.  
       
    58         * @param aKeyEvent  The key event.
       
    59         * @param aType      The type of the event: EEventKey, EEventKeyUp or EEventKeyDown.
       
    60         * @return           Indicates whether or not the key event was used by this control.
       
    61         */
       
    62 	    TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);
       
    63 
       
    64     public://from MAknQueryControlObeserver
       
    65 
       
    66 		/**
       
    67 		* Called by OfferkeyEventL(), gives a change to dismiss the query with
       
    68 		* send/answer key.
       
    69 		*/
       
    70 		virtual TBool NeedToDismissQueryL(const TKeyEvent& aKeyEvent);
       
    71 		
       
    72 		/**
       
    73 		* Called by NeedToDismissQueryL(), gives a change to either accept or reject
       
    74 		* the query. Default implementation is to accept the query if the Left soft
       
    75 		* key is displayed and reject it otherwise. Left softkey is only displayed if
       
    76 		* the query has valid data into it.
       
    77 		*/
       
    78 		virtual void DismissQueryL();
       
    79 
       
    80         /**
       
    81         * Returns whether the left softkey is visible
       
    82         * @return ETrue is the left softkey is visible
       
    83         */
       
    84         TBool IsLeftSoftkeyVisible();
       
    85     private: //data
       
    86         TInt iMaximumValue;
       
    87     };
       
    88 
       
    89 #endif // AUTOKEYGUARDTIMEQUERYDIALOG_H
       
    90 
       
    91 // End of file