meetingrequest/mrgui/inc/cmrfocusstrategybase.h
branchRCL_3
changeset 12 4ce476e64c59
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
       
     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: Base class for the focus strategies
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CMRFOCUSSTRATEGYBASE_H
       
    19 #define CMRFOCUSSTRATEGYBASE_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32base.h>
       
    23 #include "mmrfocusstrategy.h"
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class CESMRField;
       
    27 class MESMRFieldStorage;
       
    28 
       
    29 // CLASS DECLARATIONS
       
    30 NONSHARABLE_CLASS( CMRFocusStrategyBase ): public CBase, public MMRFocusStrategy
       
    31     {
       
    32     protected:
       
    33         void InitializeFocus();
       
    34         void EventOccured( TFocusEventType aEventType );
       
    35         TBool IsFocusVisible() const { return iVisibleFocusOn; }
       
    36         
       
    37     protected: // Implementation
       
    38         CMRFocusStrategyBase( MESMRFieldStorage& aFactory );
       
    39         ~CMRFocusStrategyBase();
       
    40 
       
    41         void HideFocus();
       
    42         void ShowFocus();
       
    43 
       
    44     protected: // Data
       
    45         /// Flag indicating the focus state
       
    46         TBool iVisibleFocusOn;
       
    47         /// Field storage reference
       
    48         MESMRFieldStorage& iFactory;
       
    49     };
       
    50 #endif // CMRFOCUSSTRATEGYBASE_H
       
    51 
       
    52 // End of file