memspyui/ui/hb/inc/viewmanager.h
changeset 17 4f2773374eff
child 19 4b22a598b890
equal deleted inserted replaced
15:e11368ed4880 17:4f2773374eff
       
     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 	ThreadDetailView,
       
    30 	KernelObjectTypeView,
       
    31 	KernelObjectView,
       
    32 	KernelObjectDetailView
       
    33 };
       
    34 
       
    35 class HbMainWindow;
       
    36 class HbView;
       
    37 class EngineWrapper;
       
    38 
       
    39 
       
    40 class ViewManager : public QObject
       
    41 {
       
    42 	Q_OBJECT
       
    43 	
       
    44 public:
       
    45 	ViewManager(HbMainWindow &window, EngineWrapper &engine, QObject *parent = 0);
       
    46 	
       
    47 public slots:
       
    48 	void showView(ViewIndex index, const QVariantMap &params);
       
    49 	
       
    50 	void showView(ViewIndex index);
       
    51 	
       
    52 	void goBack();
       
    53 	
       
    54 private slots:
       
    55 	void viewChanged(HbView *view);
       
    56 	
       
    57 private:
       
    58 	HbMainWindow &mWindow;
       
    59 	EngineWrapper &mEngine;
       
    60 };
       
    61 
       
    62 #endif /* VIEWMANAGER_H_ */