perfapps/memspyui/ui/hb/inc/viewmanager.h
changeset 48 da3ec8478e66
child 52 36d60d12b4af
equal deleted inserted replaced
47:11fa016241a4 48:da3ec8478e66
       
     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 	ServerView,
       
    38 	EComCategoryView,
       
    39 	EComInterfaceView,
       
    40 	EComImplementationView,
       
    41 	EComImplementationDetailView,
       
    42 };
       
    43 
       
    44 class HbMainWindow;
       
    45 class HbView;
       
    46 class EngineWrapper;
       
    47 
       
    48 
       
    49 class ViewManager : public QObject
       
    50 {
       
    51 	Q_OBJECT
       
    52 	
       
    53 public:
       
    54 	ViewManager(HbMainWindow &window, EngineWrapper &engine, QObject *parent = 0);
       
    55 	
       
    56 public slots:
       
    57 	void showView(ViewIndex index, const QVariantMap &params);
       
    58 	
       
    59 	void showView(ViewIndex index);
       
    60 	
       
    61 	void goBack();
       
    62 	
       
    63 private slots:
       
    64 	void viewChanged(HbView *view);
       
    65 	
       
    66 private:
       
    67 	HbMainWindow &mWindow;
       
    68 	EngineWrapper &mEngine;
       
    69 };
       
    70 
       
    71 #endif /* VIEWMANAGER_H_ */