logsui/AppSrc/MLogsNaviDecoratorWrapper.h
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2002 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: 
       
    15 *      An interface for the CLogsNaviDecoratorWrapper. This is basically needed 
       
    16 *      to hide implementation from Logs Plugin wich inherits CLogsBaseControlContainer.
       
    17 *      Instead of using the singleton directly in CLogsBaseControlContainer we pass an 
       
    18 *      interface object and then we dont have to add CLogsNaviDecoratorWrapper.cpp to the
       
    19 *      Logs Plugin project file.
       
    20 *      
       
    21 *
       
    22 */
       
    23 
       
    24 
       
    25 #ifndef MLogsNaviDecoratorWrapper_H
       
    26 #define MLogsNaviDecoratorWrapper_H
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 class CAknNavigationDecorator;
       
    30 class CAknNavigationControlContainer;
       
    31 class MAknTabObserver;
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36  * An abstract interface for CLogsNaviDecoratorWrapper
       
    37  */
       
    38 class MLogsNaviDecoratorWrapper 
       
    39     {
       
    40     
       
    41     public:    
       
    42     /**
       
    43      * Returns the wrapped iNaviDecorator instance. If no instance
       
    44 	 * exists yet a new one is created. If there is an instance but it is
       
    45 	 * of wrong resource type, a new instance is created and the old deleted. 
       
    46 	 * 
       
    47 	 * Called from CLogsBaseControlContainer::NavigationTabGroupL
       
    48 	 *
       
    49 	 * @param aNaviPane, the calling views status pane's navigation pane control
       
    50 	 * @param aTabObserver, an interface to the LogsAppUi::TabChangedL
       
    51 	 * @param aResource, the resource id of the 
       
    52 	 *
       
    53 	 * @return CAknNavigationDecorator object for the view's tab group
       
    54      */
       
    55     virtual CAknNavigationDecorator* GetNaviDecoratorL(CAknNavigationControlContainer* aNaviPane,
       
    56                                                       MAknTabObserver* aTabObserver,
       
    57                                                       TInt aResource) =0;
       
    58     };
       
    59                                               
       
    60 #endif //MLogsNaviDecoratorWrapper_H
       
    61             
       
    62 
       
    63 // End of File