wvuing/wvuiprocess/Inc/MCAMainViewObserverManagerPC.h
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     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: Main View Observer Manager Interface
       
    15 *
       
    16 */
       
    17 #ifndef MCAMAINVIEWOBSERVERMANAGERPC_H
       
    18 #define MCAMAINVIEWOBSERVERMANAGERPC_H
       
    19 
       
    20 class MCAMainViewObserverPC;
       
    21 class MCASyncObserverPC;
       
    22 
       
    23 class MCAMainViewObserverManagerPC
       
    24     {
       
    25 
       
    26     public:
       
    27 
       
    28         //events or callbacks to UI..
       
    29 
       
    30         /**
       
    31         * Adds observer, handles errors by leaving.
       
    32         * Adds observer, observer must point to valid
       
    33         * object. If aObserver is NULL, leaves with
       
    34         * @param aObserver The observer to add.
       
    35         */
       
    36         virtual void AddObserverL( MCAMainViewObserverPC* aObserver ) = 0;
       
    37 
       
    38         /**
       
    39          * RemoveObserver, remove from call back
       
    40          */
       
    41         virtual void RemoveObserver( MCAMainViewObserverPC* aObserver ) = 0;
       
    42 
       
    43         /**
       
    44          * Adds observer, observer must point to valid
       
    45          * @param aObserver The observer to add.
       
    46          */
       
    47         virtual void AddObserver( MCASyncObserverPC* aObserver ) = 0;
       
    48 
       
    49         /**
       
    50          * RemoveObserver, remove from call back
       
    51          */
       
    52         virtual void RemoveObserver( ) = 0;
       
    53 
       
    54         /**
       
    55          * ~MCAMainViewObserverManagerPC
       
    56          */
       
    57         virtual ~MCAMainViewObserverManagerPC() {};
       
    58     };
       
    59 
       
    60 #endif //MCAMAINVIEWOBSERVERMANAGERPC_H