perfapps/memspyui/ui/hb/inc/memspywindowgroupsdetailview.h
changeset 54 9347c563e054
equal deleted inserted replaced
48:da3ec8478e66 54:9347c563e054
       
     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 MEMSPYWINDOWGROUPSDETAILVIEW_H_
       
    19 #define MEMSPYWINDOWGROUPSDETAILVIEW_H_
       
    20 
       
    21 #include <QAbstractListModel>
       
    22 
       
    23 #include "memspylistview.h"
       
    24 #include "enginewrapper.h"
       
    25 
       
    26 
       
    27 class MemSpyWindowGroupsDetailModel : public QAbstractListModel
       
    28 {
       
    29 public:
       
    30     MemSpyWindowGroupsDetailModel(MemSpyWindowGroup* group, QObject *parent = 0);
       
    31     
       
    32     int rowCount(const QModelIndex &parent = QModelIndex()) const;
       
    33     
       
    34     QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
       
    35     
       
    36 private:
       
    37     QVariantList mData;
       
    38 };
       
    39 
       
    40 class MemSpyWindowGroupsDetailView : public MemSpyListView
       
    41 {
       
    42     
       
    43     Q_OBJECT
       
    44     
       
    45 public:
       
    46     MemSpyWindowGroupsDetailView(EngineWrapper &engine, ViewManager &viewManager) : 
       
    47             MemSpyListView(engine, viewManager),
       
    48             mModel(0)
       
    49         {}
       
    50     
       
    51 protected:
       
    52     void initialize(const QVariantMap& params);
       
    53     
       
    54 private:
       
    55     MemSpyWindowGroupsDetailModel* mModel;
       
    56 };
       
    57 
       
    58 #endif /* MEMSPYWINDOWGROUPSDETAILVIEW_H_ */