browserutilities/connectionmanager/Inc/ConnManKeyAbsorber.h
changeset 0 dd21522fd290
equal deleted inserted replaced
-1:000000000000 0:dd21522fd290
       
     1 /*
       
     2 * Copyright (c) 2002 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 the License "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: 
       
    15 *
       
    16 *  CConnManKeyAbsorber class. Absorbs all the key presses.
       
    17 *
       
    18 *
       
    19 *
       
    20 */
       
    21 
       
    22 
       
    23 
       
    24 #ifndef __Conn_Man_Key_Absorber_H__
       
    25 #define __Conn_Man_Key_Absorber_H__
       
    26 
       
    27 //  INCLUDES
       
    28 #include <coecntrl.h>
       
    29 
       
    30 // Forward references
       
    31 class CEikAppUi;
       
    32 
       
    33 // CLASS DECLARATION
       
    34 /**
       
    35 * CConnManKeyAbsorber
       
    36 *   Absorbs all the key presses.
       
    37 */
       
    38 NONSHARABLE_CLASS(  CConnManKeyAbsorber ) : public CCoeControl
       
    39     {
       
    40     public:
       
    41         /**
       
    42         * Two-phased constructor.
       
    43         */
       
    44        static CConnManKeyAbsorber* NewLC();
       
    45 
       
    46         /**
       
    47         * Destructor.
       
    48         */
       
    49         virtual ~CConnManKeyAbsorber();
       
    50 	public:
       
    51 		/**
       
    52 		*
       
    53 		*/
       
    54 		void RemoveFromStack();
       
    55 
       
    56 		
       
    57 		/**
       
    58 		*
       
    59 		*/
       
    60 		void AddToStackL();
       
    61 
       
    62 		/**
       
    63 		*This is the function responsible to wrap on in a TCleanupItem and push it 
       
    64 		*/
       
    65 		static void CleanupOnLeave( TAny* aSelf );
       
    66 
       
    67     private:
       
    68         /**
       
    69         * From CCoeControl
       
    70         */
       
    71         virtual TKeyResponse OfferKeyEventL(const TKeyEvent& /*aKeyEvent*/,TEventCode /*aType*/);
       
    72 
       
    73     protected:
       
    74         /**
       
    75         * C++ default constructor.
       
    76         */
       
    77         CConnManKeyAbsorber();
       
    78 
       
    79         /**
       
    80         * Symbian OS constructor.
       
    81         */
       
    82         void ConstructL();
       
    83 
       
    84     public:
       
    85 
       
    86 		TBool iAddedToStack;
       
    87 
       
    88     private: // Data
       
    89         CEikAppUi*  iAppUi;
       
    90     };
       
    91 
       
    92 #endif //__Conn_Man_Key_Absorber_H__
       
    93 
       
    94 // End of File