memspyui/ui/hb/inc/memspyprocessview.h
changeset 17 4f2773374eff
child 31 e7a04a6385be
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/memspyui/ui/hb/inc/memspyprocessview.h	Fri May 14 15:53:02 2010 +0300
@@ -0,0 +1,60 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:
+* 
+*/
+
+#ifndef MEMSPYPROCESSVIEW_H_
+#define MEMSPYPROCESSVIEW_H_
+
+#include <QAbstractListModel>
+
+#include "memspyview.h"
+#include "enginewrapper.h"
+
+
+class MemSpyProcessModel : public QAbstractListModel
+{
+public:
+	MemSpyProcessModel(EngineWrapper &engine, QObject *parent = 0);
+	
+	~MemSpyProcessModel();
+	
+	int rowCount(const QModelIndex &parent = QModelIndex()) const;
+	
+	QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
+	
+private:
+	QList<MemSpyProcess*> mProcesses;
+};
+
+class MemSpyProcessView : public MemSpyView
+{
+    Q_OBJECT
+    
+public:
+	MemSpyProcessView(EngineWrapper &engine, ViewManager &viewManager) 
+			: MemSpyView(engine, viewManager) {}
+	
+protected:
+	void initialize(const QVariantMap& params);
+	
+protected:
+	virtual bool isRefreshable() const { return true; }
+	
+private slots:
+	void itemClicked(const QModelIndex& index);
+};
+
+#endif /* MEMSPYPROCESSVIEW_H_ */