memspyui/ui/hb/inc/memspyview.h
branchRCL_3
changeset 22 fad26422216a
parent 21 b3cee849fa46
child 23 f8280f3bfeb7
equal deleted inserted replaced
21:b3cee849fa46 22:fad26422216a
     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 HbLabel;
       
    26 class HbProgressDialog;
       
    27 class EngineWrapper;
       
    28 class ViewManager;
       
    29 
       
    30 
       
    31 class MemSpyView : public HbView
       
    32 {
       
    33 	Q_OBJECT
       
    34 	
       
    35 public:
       
    36 	MemSpyView(EngineWrapper &engine, ViewManager &viewManager);
       
    37 	
       
    38 	virtual ~MemSpyView();
       
    39 	
       
    40 protected:
       
    41 	
       
    42 	virtual QList<QAction*> createOutputActions();
       
    43 	
       
    44 	virtual HbMenu* createToolMenu();
       
    45 	
       
    46 	virtual HbToolBar* createToolBar();
       
    47 	
       
    48 	virtual bool isRefreshable() const;
       
    49 	
       
    50 	virtual bool isBreadCrumbVisible() const;
       
    51 	
       
    52 	virtual QString getBreadCrumbText() const;
       
    53 	
       
    54 	virtual HbWidget* createCentralWidget() = 0;
       
    55 	
       
    56 public slots:
       
    57 
       
    58 	virtual void initialize(const QVariantMap& params);
       
    59 
       
    60 	virtual void refresh();
       
    61 	
       
    62 	void showSettings();
       
    63 	
       
    64 	void showAbout();
       
    65 	
       
    66 private slots:
       
    67 	
       
    68 	void closeSettings();
       
    69 		
       
    70 protected:
       
    71 	
       
    72 	EngineWrapper &mEngine;
       
    73 	
       
    74 	ViewManager &mViewManager;
       
    75 	
       
    76 	
       
    77 private:
       
    78 	HbMenu* mOutputMenu;
       
    79 	HbMenu* mOutputGenInfoMenu;
       
    80 	HbMenu* mOutputHeapInfoMenu;
       
    81 	HbMenu* mOutputStackInfoMenu;
       
    82 	HbToolBar* mToolBar;
       
    83 	
       
    84 	HbLabel* mBreadCrumb;
       
    85 };
       
    86 
       
    87 #endif /* MEMSPYVIEW_H_ */