memspyui/ui/hb/inc/memspyview.h
changeset 17 4f2773374eff
child 31 e7a04a6385be
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 MEMSPYVIEW_H_
       
    19 #define MEMSPYVIEW_H_
       
    20 
       
    21 #include <HbView>
       
    22 #include <HbListView>
       
    23 #include <QVariantMap>
       
    24 
       
    25 class EngineWrapper;
       
    26 class ViewManager;
       
    27 
       
    28 class MemSpyView : public HbView
       
    29 {
       
    30 	Q_OBJECT
       
    31 	
       
    32 public:
       
    33 	MemSpyView(EngineWrapper &engine, ViewManager &viewManager);
       
    34 	
       
    35 	virtual ~MemSpyView();
       
    36 	
       
    37 protected:
       
    38 	
       
    39 	virtual QList<QAction*> createOutputActions();
       
    40 	
       
    41 	virtual HbMenu* createToolMenu();
       
    42 	
       
    43 	virtual HbToolBar* createToolBar();
       
    44 	
       
    45 	virtual bool isRefreshable() const;
       
    46 	
       
    47 public slots:
       
    48 
       
    49 	virtual void initialize(const QVariantMap& params);
       
    50 
       
    51 	virtual void refresh();
       
    52 	
       
    53 	void showAbout();
       
    54 	
       
    55 protected:
       
    56 	
       
    57 	HbListView mListView;
       
    58 	
       
    59 	EngineWrapper &mEngine;
       
    60 	
       
    61 	ViewManager &mViewManager;
       
    62 	
       
    63 private:
       
    64 	HbMenu* mOutputMenu;
       
    65 	HbMenu* mOutputGenInfoMenu;
       
    66 	HbMenu* mOutputHeapInfoMenu;
       
    67 	HbMenu* mOutputStackInfoMenu;
       
    68 	HbToolBar* mToolBar;
       
    69 	
       
    70 };
       
    71 
       
    72 #endif /* MEMSPYVIEW_H_ */