perfapps/memspyui/ui/hb/inc/viewmanager.h
changeset 48 da3ec8478e66
child 52 36d60d12b4af
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/perfapps/memspyui/ui/hb/inc/viewmanager.h	Fri Sep 17 08:29:47 2010 +0300
@@ -0,0 +1,71 @@
+/*
+ * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description:
+ *  
+ */
+
+#ifndef VIEWMANAGER_H_
+#define VIEWMANAGER_H_
+
+
+#include <QObject>
+#include <QVariantMap>
+
+enum ViewIndex {
+	MainView,
+	ProcessView,
+	ThreadView,
+	ThreadDetailIndexView,
+	ThreadDetailView,
+	KernelObjectTypeView,
+	KernelObjectView,
+	KernelObjectDetailView,
+	TrackingView,
+	SwmtView,
+	HeapDumpsView,
+	ServerView,
+	EComCategoryView,
+	EComInterfaceView,
+	EComImplementationView,
+	EComImplementationDetailView,
+};
+
+class HbMainWindow;
+class HbView;
+class EngineWrapper;
+
+
+class ViewManager : public QObject
+{
+	Q_OBJECT
+	
+public:
+	ViewManager(HbMainWindow &window, EngineWrapper &engine, QObject *parent = 0);
+	
+public slots:
+	void showView(ViewIndex index, const QVariantMap &params);
+	
+	void showView(ViewIndex index);
+	
+	void goBack();
+	
+private slots:
+	void viewChanged(HbView *view);
+	
+private:
+	HbMainWindow &mWindow;
+	EngineWrapper &mEngine;
+};
+
+#endif /* VIEWMANAGER_H_ */