--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/memspyui/ui/hb/inc/viewmanager.h Fri May 14 15:53:02 2010 +0300
@@ -0,0 +1,62 @@
+/*
+ * 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,
+ ThreadDetailView,
+ KernelObjectTypeView,
+ KernelObjectView,
+ KernelObjectDetailView
+};
+
+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 ¶ms);
+
+ void showView(ViewIndex index);
+
+ void goBack();
+
+private slots:
+ void viewChanged(HbView *view);
+
+private:
+ HbMainWindow &mWindow;
+ EngineWrapper &mEngine;
+};
+
+#endif /* VIEWMANAGER_H_ */