memspyui/ui/hb/inc/memspykernelobjectdetailview.h
branchRCL_3
changeset 21 b3cee849fa46
equal deleted inserted replaced
20:48060abbbeaf 21:b3cee849fa46
       
     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 MEMSPYKERNELOBJECTDETAILVIEW_H_
       
    19 #define MEMSPYKERNELOBJECTDETAILVIEW_H_
       
    20 
       
    21 #include "memspylistview.h"
       
    22 
       
    23 class MemSpyKernelObjectDetailModel : public QAbstractListModel
       
    24 {
       
    25 public:
       
    26     MemSpyKernelObjectDetailModel(const QStringList& details, QObject *parent = 0);
       
    27     
       
    28     int rowCount(const QModelIndex &parent = QModelIndex()) const;
       
    29     
       
    30     QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
       
    31   
       
    32 private:
       
    33     QStringList mDetails;
       
    34 };
       
    35 
       
    36 class MemSpyKernelObjectDetailView : public MemSpyListView
       
    37 {
       
    38 	Q_OBJECT
       
    39 	
       
    40 public:
       
    41 	MemSpyKernelObjectDetailView(EngineWrapper &engine, ViewManager &viewManager) 
       
    42 		: MemSpyListView(engine, viewManager) {}
       
    43 	
       
    44 protected:
       
    45 	virtual void initialize(const QVariantMap& params);
       
    46 	
       
    47 	virtual bool isBreadCrumbVisible() const;
       
    48 	        
       
    49 	virtual QString getBreadCrumbText() const;
       
    50 	
       
    51 private:
       
    52 	QString mTypeName;
       
    53 	QString mObjectName;
       
    54 };
       
    55 
       
    56 #endif /* MEMSPYKERNELOBJECTDETAILVIEW_H_ */