perfapps/memspyui/ui/hb/inc/memspyswmtview.h
changeset 51 b048e15729d6
parent 31 e7a04a6385be
equal deleted inserted replaced
44:5db69f4c3d06 51:b048e15729d6
       
     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 MEMSPYSWMTVIEW_H_
       
    19 #define MEMSPYSWMTVIEW_H_
       
    20 
       
    21 #include "memspyview.h"
       
    22 
       
    23 class HbDataFormModel;
       
    24 class HbDataFormModelItem;
       
    25 class HbProgressDialog;
       
    26 
       
    27 class MemSpySwmtView : public MemSpyView
       
    28 {
       
    29 	Q_OBJECT
       
    30 	
       
    31 public:
       
    32 	MemSpySwmtView(EngineWrapper &engine, ViewManager &viewManager);
       
    33 	virtual ~MemSpySwmtView();
       
    34 	
       
    35 	void initialize(const QVariantMap& params);
       
    36 		
       
    37 protected:
       
    38 	HbToolBar* createToolBar();
       
    39 	
       
    40 	HbWidget* createCentralWidget();
       
    41 	
       
    42 private slots:
       
    43 	void toggleTimer();
       
    44 	void forceDump();
       
    45 	void modeChanged(int mode);
       
    46 	void asyncOperationFinished(int errorCode);
       
    47 	
       
    48 private:
       
    49 	void updateTimerAction(bool isRunning);
       
    50 	void removeCategoriesItem();
       
    51 	void createCategoriesItem();
       
    52 	void updateSettings();
       
    53 	
       
    54 private:
       
    55 	HbAction* mToggleTimerAction;
       
    56 	
       
    57 	HbDataFormModel* mModel;
       
    58 	HbDataFormModelItem* mTimerItem;
       
    59 	HbDataFormModelItem* mModeItem;
       
    60 	HbDataFormModelItem* mCategoriesItem;
       
    61 	
       
    62 	HbProgressDialog* mProgressDialog;
       
    63 };
       
    64 
       
    65 #endif /* MEMSPYSWMTVIEW_H_ */