memspyui/ui/hb/inc/memspythreaddetailview.h
changeset 51 b048e15729d6
parent 44 5db69f4c3d06
child 52 36d60d12b4af
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 MEMSPYTHREADDETAILVIEW_H_
       
    19 #define MEMSPYTHREADDETAILVIEW_H_
       
    20 
       
    21 #include "memspylistview.h"
       
    22 #include "enginewrapper.h"
       
    23 
       
    24 class HbMenu;
       
    25 
       
    26 class MemSpyThreadDetailModel : public QAbstractListModel
       
    27 {
       
    28 public:
       
    29 	MemSpyThreadDetailModel(EngineWrapper &engine, ThreadId threadId, ThreadInfoType type, QObject *parent = 0);
       
    30 	
       
    31 	~MemSpyThreadDetailModel();
       
    32 	
       
    33 	int rowCount(const QModelIndex &parent = QModelIndex()) const;
       
    34 	
       
    35 	QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
       
    36 	
       
    37 private:
       
    38 	QList<MemSpyThreadInfoItem*> mThreadInfo;
       
    39 };
       
    40 
       
    41 
       
    42 class MemSpyThreadDetailView : public MemSpyListView
       
    43 {
       
    44 	Q_OBJECT
       
    45 	
       
    46 public:
       
    47 	MemSpyThreadDetailView(EngineWrapper &engine, ViewManager &viewManager) 
       
    48 		: MemSpyListView(engine, viewManager) {}
       
    49 protected:
       
    50 	virtual void initialize(const QVariantMap& params);
       
    51 	
       
    52 	virtual bool isBreadCrumbVisible() const;
       
    53 	
       
    54 	virtual QString getBreadCrumbText() const;
       
    55 	
       
    56 private:
       
    57 	ThreadId mThreadId;
       
    58 	HbMenu *mPriorityMenu;
       
    59 	QString mProcessName;
       
    60 	QString mThreadName;
       
    61 };
       
    62 
       
    63 #endif /* MEMSPYTHREADDETAILVIEW_H_ */