connectionutilities/ConnectionDialogs/ConnectionUiUtilities/NotifInc/wlanpowersavetest.h
branchRCL_3
changeset 15 4dc3bb0099b0
parent 13 68f0c7cd80ec
child 17 c14618f9de99
equal deleted inserted replaced
13:68f0c7cd80ec 15:4dc3bb0099b0
     1 /*
       
     2 * Copyright (c) 2009 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:  Dialog that implements WLAN Power Save Testing notification
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __POWERSAVETEST_QUERY_H__
       
    20 #define __POWERSAVETEST_QUERY_H__
       
    21 
       
    22 // INCLUDES
       
    23 #include <aknmessagequerydialog.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CWlanPowerSaveQueryNotif;
       
    27 
       
    28 
       
    29 // CLASS DECLARATIONS
       
    30 
       
    31 /**
       
    32  * Class implements a query dialog.
       
    33  */
       
    34 NONSHARABLE_CLASS( CWlanPowerSaveQuery ) : public CAknMessageQueryDialog 
       
    35     {
       
    36     public:
       
    37         /**
       
    38         * Constructor the CWlanPowerSaveQuery class
       
    39         * @param aNotif notifier pointer  
       
    40         * @return -
       
    41         */
       
    42         CWlanPowerSaveQuery( CWlanPowerSaveQueryNotif* aNotif );
       
    43 
       
    44         /**
       
    45         * Exit function the CWlanPowerSaveQuery
       
    46         * @param aButtonId 
       
    47         * @return TBool exit or no
       
    48         */
       
    49         virtual TBool OkToExitL( TInt aButtonId );
       
    50     
       
    51         /**
       
    52         * Destructor
       
    53         */
       
    54         virtual ~CWlanPowerSaveQuery();     
       
    55 
       
    56         /** 
       
    57         * From @c CCoeControl.
       
    58         *
       
    59         * Handles key events.
       
    60         * 
       
    61         * If a control wishes to process key events, it should implement this
       
    62         * function. The implementation must ensure that the function returns 
       
    63         * @c EKeyWasNotConsumed if it does not do anything in response to a 
       
    64         * key event, otherwise, other controls or dialogs may be prevented 
       
    65         * from receiving the key event. If it is able to process the event it 
       
    66         * should return @c EKeyWasConsumed.
       
    67         * 
       
    68         * @param aKeyEvent The key event. 
       
    69         * @param aType The type of key event: @c EEventKey, @c EEventKeyUp or 
       
    70         *        @c EEventKeyDown. 
       
    71         * @return Indicates whether or not the key event was used
       
    72         *         by this control. 
       
    73         */
       
    74         TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode );
       
    75 
       
    76         /**
       
    77         * Tries to exit the dialog when the specified button is pressed, if this 
       
    78         * button should exit the dialog.
       
    79         *
       
    80         * See @c OkToExitL() to determine which buttons can exit the dialog.
       
    81         * 
       
    82         * This will fail if user exit is prevented by the 
       
    83         * @c EEikDialogFlagNoUserExit flag. If the @c EEikDialogFlagNotifyEsc flag
       
    84         * is not set and the dialog has been cancelled it immediately deletes 
       
    85         * itself.
       
    86         * 
       
    87         * @param aButtonId The id of the pressed button.
       
    88         */
       
    89         void TryExitL( TInt aButtonId );
       
    90 
       
    91     private:
       
    92         /**
       
    93         * PreLayoutDynInitL
       
    94         * @param    -
       
    95         */
       
    96         virtual void PreLayoutDynInitL();    
       
    97 
       
    98     private:
       
    99         CWlanPowerSaveQueryNotif* iNotif;      // Pointer to the Notifier, not owned
       
   100         TBool iButtonGroupPreviouslyChanged;   // Was ButtonGroup modified?
       
   101     };
       
   102 
       
   103 
       
   104 #endif  // __POWERSAVETEST_QUERY_H__
       
   105 
       
   106 // End of File