meetingrequest/mrgui/inc/mmrfocusstrategy.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: Interface class for the focus strategy
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MMRFOCUSSTRATEGY_H
       
    19 #define MMRFOCUSSTRATEGY_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32base.h>
       
    23 
       
    24 // FORWARD DECLARATIONS
       
    25 class CESMRField;
       
    26 class MESMRFieldStorage;
       
    27 
       
    28 // CLASS DECLARATIONS
       
    29 
       
    30 class MMRFocusStrategy
       
    31     {
       
    32     public: // Types
       
    33         /**
       
    34          * Event types where the strategy will react on.
       
    35          */
       
    36         enum TFocusEventType
       
    37             {
       
    38             EFocusPointerEvent,
       
    39             EFocusKeyEvent
       
    40             };
       
    41 
       
    42     public: // Destructor
       
    43         virtual ~MMRFocusStrategy() { }
       
    44         
       
    45     public: // Interface
       
    46         
       
    47         /**
       
    48          * Called to initialize the focus
       
    49          */
       
    50         virtual void InitializeFocus() = 0;
       
    51         
       
    52         /**
       
    53          * Called when the event occurs
       
    54          *
       
    55          * @param aEventType Type of the event e.g. key, pointer
       
    56          */
       
    57         virtual void EventOccured( TFocusEventType aEventType ) = 0;
       
    58 
       
    59         /**
       
    60          * Returns either the focus is on or off
       
    61          * 
       
    62          * @return ETrue if the focus is visible
       
    63          */
       
    64         virtual TBool IsFocusVisible() const = 0;
       
    65     };
       
    66 #endif // MMRFOCUSSTRATEGY_H
       
    67 
       
    68 // End of file