diff -r f8280f3bfeb7 -r 9b2cffad4b5e memspyui/ui/hb/inc/viewmanager.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/memspyui/ui/hb/inc/viewmanager.h Wed Sep 15 12:13:45 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 +#include + +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 ¶ms); + + void showView(ViewIndex index); + + void goBack(); + +private slots: + void viewChanged(HbView *view); + +private: + HbMainWindow &mWindow; + EngineWrapper &mEngine; +}; + +#endif /* VIEWMANAGER_H_ */