sysanadatacapture/piprofiler/piprofilerui/gui/inc/profiler_gui_mainview.h
changeset 1 3ff3fecb12fe
equal deleted inserted replaced
0:f0f2b8682603 1:3ff3fecb12fe
       
     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:   
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef PROFILER_GUI_VALUESVIEW_H
       
    21 #define PROFILER_GUI_VALUESVIEW_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <aknview.h>
       
    25 
       
    26 #include "profiler_gui_std.h"
       
    27 #include "profiler_gui_model.h"
       
    28 
       
    29 
       
    30 // CONSTANTS
       
    31 // UID of view
       
    32 const TUid KMainViewUID = {1};
       
    33 
       
    34 // FORWARD DECLARATIONS
       
    35 class CProfilerGuiMainContainer;
       
    36 class CProfilerGuiModel;
       
    37 class CProfilerEngineStatusChecker;
       
    38 class CAknNavigationDecorator;
       
    39 
       
    40 
       
    41 /**
       
    42 *  CProfilerGuiMainView view class.
       
    43 * 
       
    44 */
       
    45 class CProfilerGuiMainView : public CAknView
       
    46     {
       
    47     public: // Constructors and destructor
       
    48         void ConstructL();
       
    49         ~CProfilerGuiMainView();
       
    50 
       
    51     public: // Functions from base classes
       
    52         TUid Id() const;
       
    53         void HandleCommandL(TInt aCommand);
       
    54         void HandleClientRectChange();
       
    55         
       
    56         /**
       
    57          * Method for updating the Profiler engine status pane
       
    58          * Called by Model class
       
    59          * 
       
    60          * @param aStatus new status of profiler engine  
       
    61          */
       
    62         void UpdateStatusPaneL( TInt aStatus ); 
       
    63         
       
    64     private: // From MEikMenuObserver
       
    65         void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
       
    66         
       
    67     private: // From AknView
       
    68         void DoActivateL(const TVwsViewId& aPrevViewId, TUid aCustomMessageId, const TDesC8& aCustomMessage);
       
    69         void DoDeactivate();
       
    70         void HandleStatusPaneSizeChange();
       
    71         void SetupStatusPaneL();
       
    72         void CleanupStatusPaneL();
       
    73 		HBufC* GetLabelTextLC(TInt aStatus);
       
    74     private: // Data
       
    75     	CAknNavigationDecorator*			iNaviDecorator;
       
    76         CProfilerGuiMainContainer*        	iContainer;
       
    77         CProfilerGuiModel*                  iModel;
       
    78 
       
    79     };
       
    80 
       
    81 #endif
       
    82 
       
    83 // End of File