meetingrequest/mrgui/inc/mesmrfieldeventnotifier.h
branchRCL_3
changeset 25 3533d4323edc
equal deleted inserted replaced
24:d189ee25cf9d 25:3533d4323edc
       
     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:  Definition of the class MESMRFieldEventNotifier
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MESMRFIELDEVENTNOTIFIER_H
       
    19 #define MESMRFIELDEVENTNOTIFIER_H
       
    20 
       
    21 
       
    22 #include <e32std.h>
       
    23 
       
    24 class MESMRFieldEventQueue;
       
    25 class MESMRFieldEventObserver;
       
    26 
       
    27 /**
       
    28  *  MESMRFieldEventObserver defines an interface for observing events
       
    29  *  from fields.
       
    30  *
       
    31  *  @lib esmrfieldbuildercommon.lib
       
    32  */
       
    33 class MESMRFieldEventNotifier
       
    34     {
       
    35 
       
    36 public:
       
    37 
       
    38     /**
       
    39      * Sets event queue to use by this notifier
       
    40      *
       
    41      * @param aEvent the event from field
       
    42      */
       
    43     virtual void SetEventQueueL( MESMRFieldEventQueue* aEventQueue ) = 0;
       
    44     
       
    45     /**
       
    46      * Gets the observer interface of the notifier or NULL.
       
    47      */
       
    48     virtual MESMRFieldEventObserver* EventObserver() const = 0;
       
    49 
       
    50 protected:
       
    51 
       
    52     virtual ~MESMRFieldEventNotifier() {}
       
    53 
       
    54     };
       
    55 
       
    56 
       
    57 #endif // MESMRFIELDEVENTNOTIFIER_H