photosgallery/viewframework/uiutilities/inc/mglxsimpleobservable.h
changeset 0 4e91876724a2
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2008-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:    Provides a simple observable interface.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef M_GLXSIMPLEOBSERVABLE_H
       
    22 #define M_GLXSIMPLEOBSERVABLE_H
       
    23 
       
    24 #include <e32base.h>
       
    25 #include "glxsimpleobserverevents.h"
       
    26 
       
    27 class MGlxSimpleObserver;
       
    28 
       
    29 /**
       
    30  *  MGlxSimpleObservable
       
    31  *
       
    32  *  Provides a simple observable interface.
       
    33  *
       
    34  *  @lib glxhuiutils.lib
       
    35  */
       
    36 class MGlxSimpleObservable
       
    37     {
       
    38 public:
       
    39     /**
       
    40     * Registers an observer if not previously registered
       
    41     * @param aObserver The observer concerned
       
    42     */
       
    43     virtual void RegisterObserverL( MGlxSimpleObserver* aObserver ) = 0;
       
    44 
       
    45     /**
       
    46     * Deregisters an observer if previously registered
       
    47     * @param aObserver The observer concerned
       
    48     */
       
    49     virtual void DeregisterObserver( MGlxSimpleObserver* aObserver ) = 0;
       
    50     };
       
    51     
       
    52 #endif // M_GLXSIMPLEOBSERVABLE_H