memspyui/ui/hb/inc/viewmanager.h
branchRCL_3
changeset 22 fad26422216a
parent 21 b3cee849fa46
child 23 f8280f3bfeb7
equal deleted inserted replaced
21:b3cee849fa46 22:fad26422216a
     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 #ifndef VIEWMANAGER_H_
       
    19 #define VIEWMANAGER_H_
       
    20 
       
    21 
       
    22 #include <QObject>
       
    23 #include <QVariantMap>
       
    24 
       
    25 enum ViewIndex {
       
    26 	MainView,
       
    27 	ProcessView,
       
    28 	ThreadView,
       
    29 	ThreadDetailIndexView,
       
    30 	ThreadDetailView,
       
    31 	KernelObjectTypeView,
       
    32 	KernelObjectView,
       
    33 	KernelObjectDetailView,
       
    34 	TrackingView,
       
    35 	SwmtView,
       
    36 	HeapDumpsView
       
    37 };
       
    38 
       
    39 class HbMainWindow;
       
    40 class HbView;
       
    41 class EngineWrapper;
       
    42 
       
    43 
       
    44 class ViewManager : public QObject
       
    45 {
       
    46 	Q_OBJECT
       
    47 	
       
    48 public:
       
    49 	ViewManager(HbMainWindow &window, EngineWrapper &engine, QObject *parent = 0);
       
    50 	
       
    51 public slots:
       
    52 	void showView(ViewIndex index, const QVariantMap &params);
       
    53 	
       
    54 	void showView(ViewIndex index);
       
    55 	
       
    56 	void goBack();
       
    57 	
       
    58 private slots:
       
    59 	void viewChanged(HbView *view);
       
    60 	
       
    61 private:
       
    62 	HbMainWindow &mWindow;
       
    63 	EngineWrapper &mEngine;
       
    64 };
       
    65 
       
    66 #endif /* VIEWMANAGER_H_ */